NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
🐍
🐍 PyPI
Not in CISA KEV
LOW severity

CVE-2026-144386 — filelock

LOWFix: tox-dev/filelock@184931a

CVE-2026-144386 is a low-severity (CVSS 2.5) CWE-367 vulnerability in filelock. A fix is available for filelock — see the affected versions and patch details below.

filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse

Also known asGHSA-x3f4-g3q6-f985
Published
Updated
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Dec 4, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
0.2%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs6th percentile — riskier than 6% of all scored CVEsHighest risk

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

1 pkg affected
🐍filelock

Real-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

A SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4.

Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The heartbeat verifies the holder token on the open descriptor before writing. A mismatch marks the hold as lost. The fix does not protect a lock directory that another account can replace. PR #982

Workaround

Keep the lock and its records in a directory where only trusted accounts can rename entries.

Credits

Reported by OSS Scanner (ANT-2026-CC0VMGLC).

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
🐍PyPIfilelockall versions4.3.0pip install --upgrade 'filelock==4.3.0'

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

  2. Fix

    Update filelock to 4.3.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-144386 is resolved across your whole dependency graph.

  3. 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.

Red HatLow

This flaw is rated as Low severity because exploitation requires local access alongside a high-complexity race condition involving shared directory manipulation by an untrusted local user and inode recycling. Standard Red Hat product deployments typically execute Python workloads with restricted file permissions or…

Workaround published by Red Hat
To mitigate this vulnerability, ensure Python applications utilizing `filelock` create lock files within dedicated, user-private directories with restricted file permissions (e.g., directory mode 0700) rather than shared or world-writable locations such as `/tmp`. Where feasible, configure applications to avoid using `SoftReadWriteLock` heartbeats in multi-user shared directory environments. Caveats: Restricting lock file directories requires application path configuration and may require restarting affected application processes for environment variable or configuration changes to take effect.
Source: Red Hat security advisory for CVE-2026-144386 (CC BY 4.0)

Frequently Asked Questions

## Impact A `SoftReadWriteLock` heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. ## Affected versions and fix The confirmed affected version is 4.2.12. Upgrade to filelock `4.3.0` or later. The heartbeat verifies the holder token on the open descriptor before writing. A mismatch marks the hold as lost. The fix does not protect a lock directory that another account can replace. [PR #982](https://github.co
O3 Security · Impact-Aware SCA

Is CVE-2026-144386 in your dependencies?

Find it across PyPI, including transitive dependencies.

CVE-2026-144386: filelock — Fixed in 4.3.0