Vulnerability DatabaseCVE-2026-144387

CVE-2026-144387: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-144387 is a resource exhaustion vulnerability in the filelock Python library (maintained by tox-dev) affecting the SoftReadWriteLock component. An account with write access to a SoftReadWriteLock generation directory can cause lock acquisition scanning to continue beyond its configured timeout, consuming excessive CPU. The confirmed affected version is 4.2.12 and all prior versions before 4.3.0. It was disclosed on November 22, 2026 via a GitHub Security Advisory and assigned a CVSS v3.1 base score of 3.3 (Low) (GitHub Advisory).

Technical details

The root cause is classified as CWE-835 (Loop with Unreachable Exit Condition / Infinite Loop). The GenerationLog._probe() method followed every contiguous successor in the generation log without any upper bound on iterations. Because _wait_for() only checks the acquisition timeout after advance() returns, a local attacker with write access to the shared lock directory could continuously add records to the generation log, keeping the probe loop running indefinitely and preventing the timeout check from being reached. In the reporter's two-account reproducer, a one-second acquire_write(timeout=1) call remained inside the scan for approximately 15 seconds before the fix was applied. The fix (PR #981) introduces a scan limit of two retained windows (limit = generation + 2 * _RETAINED_GENERATIONS), ensuring the caller can check its deadline between scans (GitHub Advisory, Fix PR).

Impact

Successful exploitation results in a limited denial-of-service condition through CPU exhaustion on the affected host. There is no impact on confidentiality or data integrity — the vulnerability is purely an availability concern scoped to the local system. The attack is constrained to processes sharing the same SoftReadWriteLock generation directory, limiting lateral movement potential, but could degrade performance of applications relying on filelock for synchronization (GitHub Advisory).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported. The vulnerability requires local access and low privileges (write access to the lock's generation directory), making it non-automatable and limiting its attack surface. The EPSS score is 0.0, and it is not listed in the CISA Known Exploited Vulnerabilities catalog. The issue was originally reported by OSS Scanner (ANT-2026-9RZ0TW4O) (GitHub Advisory, Feedly).

Exploitation steps

  1. Identify target: Confirm the target system uses filelock version 4.2.12 or earlier and that a SoftReadWriteLock is in use with a shared generation directory accessible to the attacker's account.
  2. Gain write access: Obtain or confirm write access to the SoftReadWriteLock generation directory (e.g., a shared /tmp or application-specific lock directory).
  3. Continuously add generation records: Using a second account or process, continuously write new valid generation records to the shared generation log directory, keeping the log growing without pause.
  4. Trigger timeout overrun: When a victim process calls acquire_write(timeout=N), the unbounded _probe() loop follows each new record without checking the deadline, causing the acquisition to remain inside the scan well beyond the configured timeout and consuming CPU.
  5. Sustain the attack: Continue adding records to maintain the CPU exhaustion condition for as long as desired (Fix PR, GitHub Advisory).

Indicators of compromise

  • Process: Sustained high CPU usage by Python processes using filelock, particularly those blocked in acquire_write() calls far beyond their configured timeout.
  • File System: Unusually large number of generation record files accumulating rapidly in a SoftReadWriteLock generation directory (e.g., under a .rw/gen/ subdirectory of the lock path); files being created by a different user account than the lock owner.
  • Logs: Application log entries showing acquire_write calls taking significantly longer than the configured timeout (e.g., 15+ seconds for a 1-second timeout); repeated or unexpected SoftFileLockProtocolError exceptions in application logs after upgrading.

Mitigation and workarounds

Upgrade filelock to version 4.3.0 or later, which bounds each generation log scan so acquisition can check its deadline between scans (Release 4.3.0). As a workaround for environments that cannot immediately upgrade, restrict write access to the SoftReadWriteLock generation directory and its parent to only trusted participants, preventing untrusted accounts from adding records to the generation log (GitHub Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

OpenShift

Not Affected

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-143791HIGH7.5
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026
CVE-2026-143790LOW3.7
  • Python logoPython
  • pydantic-ai
NoYesDec 04, 2026
CVE-2026-136643NONEN/A
  • Python logoPython
  • pydantic-evals
NoYesDec 04, 2026
CVE-2026-136640NONEN/A
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026
CVE-2026-136639NONEN/A
  • Python logoPython
  • pydantic-ai-harness
NoYesDec 04, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management