filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lock
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| tox-devfilelock | — | Not listed |
| pipfilelock |
< 4.2.1→ 4.2.1 |
4.2.1 |
| PyPIfilelock |
≥ 4.1.0, < 4.2.1→ 4.2.1 |
4.2.1 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-112941 python-filelock Fix available
- Ubuntu UBUNTU-CVE-2026-112941 python-filelock No fixed version in this record
Original description The description as published by the source.
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 .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.
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com