Independent & educational platform Not a government body. No link or affiliation with any government organisation. Made for learning only. Test only systems you own or are authorised to test. Become a Partner or Sponsor → Full disclaimer

CVE-2026-112940

high

filelock is a platform-independent file lock for Python.

Vendor / product: Tox-dev — filelock

filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.

CVSS
7.1
7.1 (CVSS v3.1)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Severity source: NVD CVSS v3.1 (security-advisories@github.com)
Timeline (UTC)
Published: 2026-10-20 15:17
Modified: 2026-10-22 22:18
NVD status: Modified
Last synced 2 days ago
Verified against the source API 2026-10-27 07:04 UTC
Exploitation
Not listed in CISA KEV (as of last catalog sync)
Absence from KEV does not mean a CVE is not exploited. Exploitation status: unknown (no authoritative evidence in our sources).

Affected products

tox-dev / filelock ≥3.20.4 <4.2.1

Weakness classification (CWE)

Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.

Mitigation & advisories

Vendor advisory: https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8
Vendor advisory: https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8
Patch / mitigation: https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d
Patch / mitigation: https://github.com/tox-dev/filelock/pull/834
Patch / mitigation: https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8
Patch / mitigation: https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8

References

Data sources

NVD CVE API 2.0 — fetched 2026-10-27 07:04 UTC · record ↗

Learn the basics

Understanding CVEs and CVSS Scores

Related CVEs