filelock: Strict soft lock can chmod unrelated directoryGHSA-gqj6-5294-r46r
LOWFix: tox-dev/filelock@f028e2bGHSA-gqj6-5294-r46r is a low-severity (CVSS 3.6) CWE-732 vulnerability. A fix is available — 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-gqj6-5294-r46r.
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
Description
filelock is a platform-independent file lock for Python. Prior to 4.3.0, in a group-writable directory without the sticky bit, StrictSoftFileLock can mistake an unrelated directory owned by the locking account for its coordination directory. It can change that directory's permissions and create a claims directory inside it, disrupting access for other users. This issue is fixed in version 4.3.0.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Fix
Upgrade the affected component to the fixed release for GHSA-gqj6-5294-r46r, or apply your distribution's backported patch — distro builds are often patched at an older version number, so check your vendor's advisory rather than the upstream version alone.
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 exploitation requires local system access and specific directory configurations where group-writable locations lack the sticky bit. In Red Hat Enterprise Linux, standard shared system locations such as /tmp and /var/tmp have the sticky bit set by default, mitigating…
To mitigate this issue, ensure that any shared or group-writable directory used for file locking has the sticky bit set, or restrict write permissions to the directory owner. 1. Enable the sticky bit on the target directory: # chmod +t /path/to/shared_directory 2. Alternatively, remove group-write permissions from the directory: # chmod g-w /path/to/shared_directory Caveats: Altering directory permissions may affect applications or workflows that rely on shared group write access.Source: Red Hat security advisory for GHSA-gqj6-5294-r46r (CC BY 4.0)
Frequently Asked Questions
Is GHSA-gqj6-5294-r46r in your dependencies?
Find it across your dependency tree, including transitive dependencies.