LOW 3.3 PyPI

filelock: SoftReadWriteLock timeout overrun on growing generation log

GHSA-j77v-qg7h-37qr · CVE-2026-144387

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

An account with write access to a SoftReadWriteLock generation directory can keep an acquisition scanning beyond its timeout and consume CPU. The overrun was confirmed during write acquisition.

Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. Each generation scan now has a work limit so acquisition can check its deadline between scans. A scan already in progress can still delay the timeout. PR #981

Workaround

Restrict write access to the lock's generation directory and its parent to trusted participants.

Credits

Reported by OSS Scanner (ANT-2026-9RZ0TW4O).

Ready to move

Start Securing

Free, no credit card | First findings in minutes