# 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

- Priority: **Routine**
- Reason: Not severe (CVSS 3.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-20 · Modified: 2026-10-28
- Aliases: DEBIAN-CVE-2026-112941, UBUNTU-CVE-2026-112941, GHSA-wfhq-q4j2-c37m, CGA-pwr5-rv79-29r5, CGA-4v65-5pjh-m3j3, CGA-8cq5-m4pp-932m, CGA-5g57-hqg9-gvv2, CGA-34pj-x96x-xvh2, CGA-9h7q-qjp2-f53w, CGA-8vcp-9vhm-g8xf
- Record: https://cvemate.com/vulnerability/CVE-2026-112941 · JSON: https://cvemate.com/vulnerability/CVE-2026-112941/json

## Description

```text
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.
```

## Signals

- CVSS: 3.3 low (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
- EPSS: 0.16%, percentile 5.372%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- chainguard dagster (Chainguard): All versions (No fix recorded) \| \< 1.13.28-r1
- chainguard dagster-fips (Chainguard): All versions (No fix recorded) \| \< 1.13.28-r1
- chainguard py3.10-filelock (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.0 (Chainguard): All versions (No fix recorded)
- chainguard py3.10-pytorch-cuda-13.2 (Chainguard): All versions (No fix recorded)
- wolfi py3.10-filelock (Wolfi): All versions (No fix recorded)
- debian python-filelock (Debian): All versions (No fix recorded) \| \< 4.2.8-1
- ubuntu python-filelock (Ubuntu): All versions (No fix recorded)
- PyPI filelock (PyPI): ≥ 4.1.0, \< 4.2.1
- tox-dev filelock: ≥ 4.1.0, \< 4.2.1

## References

- <https://github.com/tox-dev/filelock/security/advisories/GHSA-wfhq-q4j2-c37m>
- <https://github.com/tox-dev/filelock/pull/842>
- <https://github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03>
- <https://github.com/tox-dev/filelock/releases/tag/4.2.1>
- <https://security-tracker.debian.org/tracker/CVE-2026-112941>
- <https://ubuntu.com/security/CVE-2026-112941>
- <https://www.cve.org/CVERecord?id=CVE-2026-112941>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112941>
- <https://github.com/tox-dev/filelock>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112941.json>

---

Data as of 2026-12-05T14:17:23.222Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
