# CVE-2026-112909: filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path

- 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:L/I:H/A:N`
- 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.24%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-20T14:16:02.317Z
- Modified: 2026-10-28T21:15:04.974Z
- Also known as: GHSA-69hj-f68j-2879
- Weaknesses: CWE-706
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

filelock is a platform-independent file lock for Python. Prior to 4.2.1, UnixFileLock can truncate a regular file renamed onto the lock path when another local user has actual rename permission, or hard-linked there under a permissive hard-link policy; when an explicit mode is requested, affected versions from 3.10.2 can also change that file's mode. This issue is fixed in version 4.2.1.

(As written by CVE List.)

## Affected

- tox-dev filelock: < 4.2.1; before 4.2.1
- filelock (PyPI): 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:L/I:H/A:N`
- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N`

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-69hj-f68j-2879> (exploit, mitigation, patch, vendor-advisory, web)
- <https://github.com/tox-dev/filelock/pull/835> (patch, web)
- <https://github.com/tox-dev/filelock/commit/e1e825b1992f69fb6b346dc395d5ae4893536c0a> (patch, web)
- <https://github.com/tox-dev/filelock/releases/tag/4.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112909> (advisory)
- <https://github.com/tox-dev/filelock> (package)

## Sources

- CVE List: [CVE-2026-112909](https://www.cve.org/CVERecord?id=CVE-2026-112909), CVE Terms of Use, modified 2026-10-22
- GitHub Advisory Database: [GHSA-69hj-f68j-2879](https://github.com/advisories/GHSA-69hj-f68j-2879), CC-BY-4.0, modified 2026-10-28
- NVD: [CVE-2026-112909](https://nvd.nist.gov/vuln/detail/CVE-2026-112909), Public domain, modified 2026-10-27

---

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