MEDIUM 4.7 PyPI

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes