# CVE-2026-112937: filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link directory name

- Severity: Medium 6.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:L`
- 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.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T14:36:28.129Z
- Modified: 2026-10-23T22:45:03.444Z
- Also known as: GHSA-jqc4-5cvw-7w85
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, ReadWriteLock can remove a randomized .filelock-* private-hard-link directory during cleanup, allowing another local user with rename access in a non-sticky parent to observe a live name or forge a dead-owner sweep name and rename a sibling directory onto it for deletion. This issue is fixed in version 4.2.1.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-jqc4-5cvw-7w85> (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-112937> (advisory)
- <https://github.com/tox-dev/filelock> (package)

## Sources

- CVE List: [CVE-2026-112937](https://www.cve.org/CVERecord?id=CVE-2026-112937), CVE Terms of Use, modified 2026-10-21
- GitHub Advisory Database: [GHSA-jqc4-5cvw-7w85](https://github.com/advisories/GHSA-jqc4-5cvw-7w85), CC-BY-4.0, modified 2026-10-23
- NVD: [CVE-2026-112937](https://nvd.nist.gov/vuln/detail/CVE-2026-112937), Public domain, modified 2026-10-21

---

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