filelock: SoftFileLock recovery can admit two holders through a foreign-owned recordGHSA-69rv-9gxw-r2jh
LOWFix: tox-dev/filelock#975GHSA-69rv-9gxw-r2jh is a low-severity (CVSS 3.6) CWE-367 vulnerability in filelock. A fix is available for filelock — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-69rv-9gxw-r2jh.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
filelockReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
Impact
During stale-marker recovery, SoftFileLock can admit two holders if another account can create entries in a shared sticky lock directory. This requires a POSIX filesystem that supports atomic name exchange. An affected caller can enter a critical section while its peer still holds the lock.
Affected versions and fix
Versions 4.2.1 through 4.2.12 are affected. Upgrade to filelock 4.3.0 or later. Recovery keeps foreign-owned records away from the public lock path. PR #975
Workaround
Keep the lock in a directory writable only by trusted participants.
Credits
Reported by OSS Scanner (ANT-2026-5VU02NND).
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | filelock | ≥ 4.2.1&&< 4.3.0 | 4.3.0pip install --upgrade 'filelock==4.3.0' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for filelock, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update filelock to 4.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-69rv-9gxw-r2jh is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is rated as Low severity because successful exploitation requires local system access, high timing synchronization, and write access by an untrusted account within a shared lock directory. In standard Red Hat deployments, SoftFileLock is rarely configured to use shared sticky directories accessible…
To mitigate this flaw, ensure that applications using filelock store lock files in dedicated, non-shared directories accessible only by the application user, rather than public shared directories. For applications run as systemd services, enable private temporary directory isolation by configuring `PrivateTmp=true` within the service unit file. Warning: Modifying systemd service unit configurations requires running `systemctl daemon-reload` and restarting the impacted service with `systemctl restart <service_name>`, which will cause a temporary service disruption.Source: Red Hat security advisory for GHSA-69rv-9gxw-r2jh (CC BY 4.0)
Frequently Asked Questions
Is GHSA-69rv-9gxw-r2jh in your dependencies?
Find it across PyPI, including transitive dependencies.