# CVE-2026-112940: filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T14:41:49.555Z
- Modified: 2026-10-23T22:15:04.432Z
- Also known as: GHSA-v4x8-3wr5-3wq8
- Weaknesses: CWE-59, CWE-363
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- tox-dev filelock: >= 3.20.4, < 4.2.1; from 3.20.4 before 4.2.1
- filelock (PyPI): from 3.20.4 before 4.2.1

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8> (exploit, mitigation, patch, vendor-advisory, web)
- <https://github.com/tox-dev/filelock/pull/834> (patch, web)
- <https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d> (patch, web)
- <https://github.com/tox-dev/filelock/releases/tag/4.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112940> (advisory)
- <https://github.com/tox-dev/filelock> (package)

## Sources

- CVE List: [CVE-2026-112940](https://www.cve.org/CVERecord?id=CVE-2026-112940), CVE Terms of Use, modified 2026-10-22
- GitHub Advisory Database: [GHSA-v4x8-3wr5-3wq8](https://github.com/advisories/GHSA-v4x8-3wr5-3wq8), CC-BY-4.0, modified 2026-10-23
- NVD: [CVE-2026-112940](https://nvd.nist.gov/vuln/detail/CVE-2026-112940), Public domain, modified 2026-10-22

---

Page: https://cve.day/CVE-2026-112940 · Whole record: https://cve.day/CVE-2026-112940.json · Rebuilt by cve.day 2026-11-25T22:59:46.047Z
