MEDIUM 4.7 PyPI

filelock: Untrusted lock waits can stall release of private async locks

GHSA-c7vg-7rqj-fjhq · CVE-2026-144340

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

Concurrent AsyncSoftReadWriteLock waits could occupy every worker in the default executor and delay the release of an unrelated private lock in the same process. This requires enough simultaneous waits and a workload that uses lock paths another account can influence, such as a group-writable, non-sticky directory.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

Each soft reader/writer wrapper now has a worker of its own by default. If the application supplies a shared executor, keep a worker available for releases. Limit concurrent waits and keep lock directories private or use appropriately protected sticky directories. Fix in PR #1073

Credits

Scan filelock-20261116-009; finding ANT-2026-O69ASZD0.

Ready to move

Start Securing

Free, no credit card | First findings in minutes