filelock: Failed async lock construction disables fork resets for other locks
Package Affected versions Patched versions Description Impact On POSIX, an AsyncReadWriteLock constructor failure could prevent a forked child from resetting unrelated locks, including locks in privat
Package
filelock (pip)Affected versions
< 4.3.0Patched versions
4.3.0Description
Impact
On POSIX, an AsyncReadWriteLock constructor failure could prevent a forked child from resetting unrelated locks, including locks in private directories. The process had to retain the failed construction and then fork. A local account able to populate an optional lock path could cause the initial failure. Overlapping holds were demonstrated only when the child reused an active SQLite lock before exec, an unsupported operation.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
The wrapper now registers for fork cleanup after construction succeeds. Keep optional lock paths in trusted directories. On the affected release, restart the process before forking after a retained constructor failure. Children must still exec or exit before using an inherited active SQLite lock. Fix in PR #1031
Credits
Scan filelock-20261116-009; finding ANT-2026-M5X2RGHK.
References
- GHSA-cx2x-xp53-fq3w
- https://nvd.nist.gov/vuln/detail/CVE-2026-144335
- tox-dev/filelock#1031
- tox-dev/filelock@c427c56
- https://github.com/tox-dev/filelock/releases/tag/4.3.0
Severity
Moderate CVSS overall score This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS). / 10CVSS v3 base metrics
Attack vector Local Attack complexity High Privileges required Low User interaction None Scope Unchanged Confidentiality None Integrity None Availability High CVSS v3 base metrics Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability. Attack complexity: More severe for the least complex attacks. Privileges required: More severe if no privileges are required. User interaction: More severe when no user interaction is required. Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope. Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user. Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user. Availability: More severe when the loss of impacted component availability is highest. CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HEPSS score
Weaknesses
Weakness CWE-665Improper Initialization
The product does not initialize or incorrectly initializes a resource. Learn more on MITRE.CVE ID
CVE-2026-144335GHSA ID
GHSA-cx2x-xp53-fq3wSource code
tox-dev/filelock Loading Checking historyUh oh!
There was an error while loading. Please reload this page.
See something to contribute? Suggest improvements for this vulnerability.