# CVE-2026-112941: filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock

- Severity: Low 3.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/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.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:43:18.060Z
- Modified: 2026-10-28T21:30:05.900Z
- Also known as: GHSA-wfhq-q4j2-c37m
- Weaknesses: CWE-367
- 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 4.1.0 until 4.2.1, SoftReadWriteLock and AsyncSoftReadWriteLock cache a successful check of the <path>.rw lock tree and resolve its names again during later record operations, allowing another local user who can replace that tree after the first acquisition to redirect lock-record writes into directories writable by the lock user. 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 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-wfhq-q4j2-c37m> (exploit, mitigation, patch, vendor-advisory, web)
- <https://github.com/tox-dev/filelock/pull/842> (patch, web)
- <https://github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03> (patch, web)
- <https://github.com/tox-dev/filelock/releases/tag/4.2.1> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112941> (advisory)
- <https://github.com/tox-dev/filelock> (package)

## Sources

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

---

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