filelock: Failed async lock construction disables fork resets for other locks
GHSA-cx2x-xp53-fq3w · CVE-2026-144335
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
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
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-cx2x-xp53-fq3w
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144335
- WEB https://github.com/tox-dev/filelock/pull/1031
- WEB https://github.com/tox-dev/filelock/commit/c427c56c6df5f95f5cf0ff9c075f76a775df1a0d
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes