filelock: Linux overflow UID can admit attacker-owned lock treesGHSA-7mx6-8qvh-pvc4
LOWFix: tox-dev/filelock#977GHSA-7mx6-8qvh-pvc4 is a low-severity (CVSS 3.6) CWE-283 vulnerability. A fix is available — see the affected versions and patch details below.
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, a Linux user namespace can report the same overflow UID for unrelated host accounts. When the namespace shares a sticky lock directory with the host, SoftReadWriteLock can accept another account's protocol tree as trusted and admit a reader while a writer holds the lock. 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-7mx6-8qvh-pvc4, 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
Constrain what reaches the vulnerable code: limit the size and shape of untrusted input, isolate the affected component in a sandboxed or least-privileged process, and enable the platform's memory-safety mitigations (ASLR, stack protector, hardened allocator) so an out-of-bounds access is more likely to fail closed than to be exploitable.
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 flaw is evaluated with Low severity because exploitation requires local system access under complex preconditions, specifically when a Linux user namespace shares a sticky lock directory with the host environment. The risk is further constrained as the vulnerability only allows bypassing read-write file lock…
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.Source: Red Hat security advisory for GHSA-7mx6-8qvh-pvc4 (CC BY 4.0)
Frequently Asked Questions
Is GHSA-7mx6-8qvh-pvc4 in your dependencies?
Find it across your dependency tree, including transitive dependencies.