CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-144334

CVE-2026-144334: Local Denial of Service via Drive-Relative Path Interception in Python filelock on Windows

Alon Barad
Alon Barad
Software Engineer

Dec 5, 2026·11 min read·2 visits

Executive Summary (TL;DR)

In filelock prior to 4.3.0 on Windows, an unconditional probe of /proc/self/ns/pid resolves to the current drive root (such as C:\proc\self\ns\pid). An unprivileged local user can create this path to corrupt the host identity recorded in SoftFileLock and MarkerSoftFileLock marker files, preventing stale lock reclamation after process termination and causing persistent local denial of service.

CVE-2026-144334 is a local denial-of-service vulnerability affecting the Python filelock package prior to version 4.3.0 on Microsoft Windows systems. The host_name() function unconditionally probes the POSIX path /proc/self/ns/pid to retrieve the Linux PID namespace inode. On Windows, a path beginning with a single leading slash resolves relative to the root of the current working drive (e.g., C:\proc\self\ns\pid). Because default Windows NTFS permissions allow unprivileged local users to create directories at the drive root, a local attacker can plant this file structure to inject an arbitrary NTFS file index into the host identity string recorded by SoftFileLock and MarkerSoftFileLock. If the lock-holding process terminates abnormally and the planted path is subsequently altered, removed, or evaluated from a different working drive, contending processes observe a hostname mismatch and fail closed, permanently blocking stale lock recovery.

Vulnerability Overview

The Python filelock library provides a platform-independent file locking interface used across build tools, package managers, and multi-process Python applications. In addition to native operating system locking primitives (fcntl, flock, and Windows LockFileEx), filelock implements SoftFileLock and MarkerSoftFileLock. These classes provide portable existence-based locking by creating a lock marker file on disk using exclusive creation flags (O_CREAT | O_EXCL) and recording metadata about the holding process inside the file.

To prevent permanent deadlocks when a process terminates abnormally (for example, via SIGKILL, taskkill, or an unhandled crash), SoftFileLock and MarkerSoftFileLock implement an automated stale lock recovery mechanism. When a contending process encounters an existing lock file, it reads the recorded process identifier (PID), host identity string, and process start token from the marker file. It then evaluates whether the recorded owner is still alive on the local system before unlinking and reclaiming the stale lock.

In filelock versions prior to 4.3.0, the host identity computation function host_name() in src/filelock/_identity.py contains an uncontrolled search path defect classified as CWE-427 (Uncontrolled Search Path Element). To differentiate between isolated Linux containers sharing a common hostname within a Kubernetes pod, host_name() unconditionally calls Path("/proc/self/ns/pid").stat().st_ino without first verifying that the underlying operating system is Linux or Android.

On Microsoft Windows, a POSIX-style path starting with a single forward slash does not refer to a restricted kernel filesystem; instead, the Windows path resolver interprets /proc/self/ns/pid as a drive-relative path anchored to the root of the current working drive (typically C:\proc\self\ns\pid). Because default Windows NTFS permissions allow standard unprivileged local users to create directories at the root of system drives, a local attacker can plant a file at C:\proc\self\ns\pid. This causes filelock to incorporate the planted file's NTFS 64-bit file index into the recorded hostname, corrupting stale lock evaluation and enabling a persistent local denial of service even for lock files stored inside private, access-controlled directories.

Root Cause Analysis

The root cause of CVE-2026-144334 lies in the interaction between filelock's fail-closed stale lock validation model, cross-platform differences in path resolution between POSIX and Windows, and default Windows drive-root ACLs. When SoftFileLock or MarkerSoftFileLock acquires a lock, it writes a three-line ownership marker containing <PID>, <HOSTNAME>, and <START_TOKEN>. When a subsequent contender encounters the lock and invokes _try_break_stale_lock(), it parses these three fields via parse_lock_holder() and passes them to owner_is_stale(pid, hostname, start_token) in src/filelock/_identity.py.

The first check performed by owner_is_stale() compares the recorded hostname against the contending process's current host_name() output (if hostname != host_name(): return False). This comparison is designed to be fail-closed for shared network filesystems such as NFS, SMB, or CIFS. If the recorded hostname differs from the local hostname, filelock assumes the lock is held by a process executing on a remote host. Because the local kernel cannot query process liveness on a remote machine, owner_is_stale() immediately returns False and refuses to break the lock.

To prevent container collisions on Linux—where two containers in the same pod share a utsname/hostname so that PID numbers overlap across distinct PID namespaces—host_name() probes /proc/self/ns/pid. If the resulting inode (st_ino) differs from the hard-coded initial namespace constant _INITIAL_PID_NAMESPACE (0xEFFFFFFC), host_name() appends the suffix ?pidns-<inode_in_hex> to the sanitized hostname string. The developer assumed that on non-Linux platforms, calling .stat() on /proc/self/ns/pid would raise an OSError (FileNotFoundError), causing execution to fall back to _INITIAL_PID_NAMESPACE.

However, under Microsoft Windows, a path starting with / or \ without a drive letter or double-slash UNC prefix is resolved relative to the drive of the process's current working directory (C:\proc\self\ns\pid when executing on C:). In CPython on Windows, os.stat() populates the st_ino field using the 64-bit NTFS file index (nFileIndexHigh and nFileIndexLow from BY_HANDLE_FILE_INFORMATION). When a local user creates C:\proc\self\ns\pid, the .stat() call succeeds and returns an NTFS file index that does not equal 0xEFFFFFFC. Consequently, host_name() appends ?pidns-<ntfs_file_index> on Windows, placing the process's computed host identity under the direct control of any local user who can create or modify C:\proc\self\ns\pid.

Code Analysis

The vulnerable logic resides in src/filelock/_identity.py within the host_name() function. Prior to version 4.3.0, the function attempted to query the inode of /proc/self/ns/pid inside an unconditional try...except OSError block across all operating systems.

# Vulnerable implementation in src/filelock/_identity.py (prior to 4.3.0)
_INITIAL_PID_NAMESPACE: Final[int] = 0xEFFFFFFC
_NAMESPACE_MARK: Final[str] = "?pidns-"
 
def host_name() -> str:
    # Unconditional probe executes on Windows, macOS, BSD, and Linux.
    # On Windows, Path("/proc/self/ns/pid") resolves to <CurrentDrive>:\proc\self\ns\pid.
    try:
        namespace = Path("/proc/self/ns/pid").stat().st_ino
    except OSError:  # only Linux 3.8+ has the file, and a sandbox may hide it; nothing else tells namespaces apart
        namespace = _INITIAL_PID_NAMESPACE
    name = "".join(
        chr(byte) if byte in _HOST_NAME_VERBATIM else f"?{byte:02x}"
        for byte in socket.gethostname().encode("utf-8", "surrogateescape")
    ) + ("" if namespace == _INITIAL_PID_NAMESPACE else f"{_NAMESPACE_MARK}{namespace:x}")
    return name

In commit 4f7a3d72f74157a638fa0a79dac45865f0cb8358 (PR #1036), the maintainer resolved the vulnerability by gating the /proc/self/ns/pid filesystem probe behind an explicit sys.platform check restricted to "linux" and "android". On all other platforms, namespace remains initialized to _INITIAL_PID_NAMESPACE without performing any filesystem I/O.

# Patched implementation in src/filelock/_identity.py (version 4.3.0)
_INITIAL_PID_NAMESPACE: Final[int] = 0xEFFFFFFC
_NAMESPACE_MARK: Final[str] = "?pidns-"
 
def host_name() -> str:
    # Initialize to the default namespace constant.
    namespace = _INITIAL_PID_NAMESPACE
    # Restrict the /proc probe strictly to Linux and Android kernels.
    if sys.platform in {"linux", "android"}:  # pragma: linux cover
        # Kernels before Linux 3.8 lack this file, and sandboxes can hide it.
        with suppress(OSError):
            namespace = Path("/proc/self/ns/pid").stat().st_ino
    name = "".join(
        chr(byte) if byte in _HOST_NAME_VERBATIM else f"?{byte:02x}"
        for byte in socket.gethostname().encode("utf-8", "surrogateescape")
    ) + ("" if namespace == _INITIAL_PID_NAMESPACE else f"{_NAMESPACE_MARK}{namespace:x}")
    return name

The patch also added a Windows-specific regression test, test_host_name_ignores_drive_root_proc_path, in tests/test_process_identity.py. This test mocks Path.stat on win32 to return a simulated os.stat_result with st_ino = 0xF0000001 and verifies that host_name() returns the unadorned hostname "build-01" without calling Path.stat.

> [!NOTE] > Fix Completeness Assessment: The fix completely eliminates the CWE-427 vector in host_name() on Windows and other non-Linux platforms (such as macOS or FreeBSD where /proc is either absent or mounted differently). However, if a Windows system already has stale lock files created on disk while a planted C:\proc\self\ns\pid file was present prior to upgrading, upgrading to 4.3.0 will cause the newly patched process to compute a clean host_name() (without ?pidns-...), which will not match the poisoned marker still on disk. Administrators must remove any pre-existing poisoned lock markers during remediation.

Exploitation Methodology

Exploiting CVE-2026-144334 requires local access to a multi-user Windows environment—such as a shared CI/CD build runner, Windows Server terminal host, or shared workstation—where a privileged or separate user account runs a Python application utilizing SoftFileLock or MarkerSoftFileLock. The attacker does not need read or write access to the directory housing the target lock file; the lock file can reside inside a private user profile directory (C:\Users\ServiceAccount\AppData\Local\...) protected by restrictive NTFS ACLs.

There are two primary methods for inducing a permanent hostname mismatch between the dead lock holder and the recovering contender process:

  1. Post-Acquisition Path Modification (Temporal Desynchronization):

    • The attacker creates the planted path on the active drive root:
      mkdir C:\proc\self\ns
      echo dummy > C:\proc\self\ns\pid
    • The victim application (executing with a working directory on C:) acquires a SoftFileLock. When creating the marker file, host_name() stats C:\proc\self\ns\pid, retrieves its NTFS file index (for example, 0x100000000021A), and writes the marker:
      4812
      BUILD-SERVER-01?pidns-100000000021a
      133748291000
    • The victim process crashes, is terminated by a timeout, or is killed during a service restart, leaving the marker file on disk.
    • The attacker deletes C:\proc\self\ns\pid (or deletes and recreates it so that NTFS assigns a different 64-bit file index).
    • Alternatively, the attacker waits until a clean lock marker (BUILD-SERVER-01) is left behind by a crashed process, and then plants C:\proc\self\ns\pid before the recovery process starts.
  2. Cross-Drive Execution Context (Spatial Desynchronization):

    • The attacker plants C:\proc\self\ns\pid and leaves it in place permanently.
    • Process A (with working directory C:\App) acquires the lock at D:\SharedData\cache.lock, writing BUILD-SERVER-01?pidns-100000000021a, and subsequently terminates abnormally.
    • Process B starts with a current working directory on drive D: (D:\Worker) and attempts to acquire D:\SharedData\cache.lock. Because Process B's current drive is D:, Path("/proc/self/ns/pid") resolves to D:\proc\self\ns\pid, which does not exist. Process B computes host_name() as BUILD-SERVER-01.

In all scenarios, when the new contender process calls lock.acquire(), exclusive file creation fails with FileExistsError (EEXIST), triggering _try_break_stale_lock(). Inside owner_is_stale(), the string recorded in the marker (BUILD-SERVER-01?pidns-100000000021a) does not match the contender's host_name() (BUILD-SERVER-01). owner_is_stale() returns False, and the contender never proceeds to check process_alive(pid). The application either blocks indefinitely or raises a filelock.Timeout exception on every subsequent execution.

Impact Assessment

CVE-2026-144334 is rated Medium severity with a CVSS v3.1 base score of 4.7 (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H). The exploitability subscore is 1.0 and the impact subscore is 3.6. The Attack Vector is Local (AV:L) and Privileges Required is Low (PR:L), reflecting that any standard local user account on a default Windows installation possesses the FILE_ADD_SUBDIRECTORY right on the root of the system drive (C:\) via the Authenticated Users group ACL.

The Attack Complexity is rated High (AC:H) because triggering the denial of service requires specific operational conditions: the target application must explicitly use SoftFileLock or MarkerSoftFileLock (rather than the default WindowsFileLock which uses OS-managed LockFileEx), and a lock-holding process must terminate abnormally without executing its release() cleanup block while a discrepancy exists between the holder's and contender's evaluation of \proc\self\ns\pid.

There is no direct impact to Confidentiality (C:N) or Integrity (I:N), as the attacker cannot read protected application data or overwrite files inside the victim's private directories. However, the Availability impact is High (A:H). Because SoftFileLock relies on file existence on disk, a stale lock that fails the owner_is_stale() check persists across application restarts and system reboots. Until an administrator manually identifies and deletes the orphaned lock marker file, the affected service or build pipeline remains completely inoperable.

As of this writing, the Exploit Prediction Scoring System (EPSS) assigns CVE-2026-144334 a score of 0.00212 (0.21% probability of exploitation within 30 days, placing it in the 12.13th percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.

Remediation and Mitigation

The primary remediation is to upgrade the filelock package to version 4.3.0 or later on all affected Windows deployments. Version 4.3.0 restricts the /proc/self/ns/pid stat probe exclusively to linux and android platforms, ensuring Windows systems never resolve drive-relative paths during host identity generation.

pip install --upgrade "filelock>=4.3.0"

Before or during the upgrade, administrators on multi-user Windows hosts and shared CI/CD runners should audit all local volume roots (C:\, D:\, etc.) for planted \proc directories and inspect existing lock files for anomalous ?pidns- markers:

# Check for and remove planted \proc directories at drive roots
if (Test-Path -Path "C:\proc") {
    Get-ChildItem -Path "C:\proc" -Recurse -Force
    Remove-Item -Path "C:\proc" -Recurse -Force
}

> [!WARNING] > If any active or stale lock marker files on a Windows host currently contain the ?pidns- substring in their second line, upgrading to filelock 4.3.0 will cause newly launched processes to compute a clean hostname without ?pidns-. If a process holding such a lock crashes, 4.3.0 contenders will still fail to reclaim that specific pre-existing marker until the poisoned lock file is manually deleted.

In environments where upgrading filelock cannot be performed immediately, apply the following compensating controls:

  1. Use Native OS File Locks: Replace SoftFileLock or MarkerSoftFileLock with the default FileLock (WindowsFileLock on Windows) where shared network filesystem compatibility is not required. WindowsFileLock uses the Win32 LockFileEx API, which is automatically released by the Windows kernel the moment the holding process terminates.
  2. Harden Drive-Root NTFS ACLs: Restrict the default Authenticated Users permissions on the root of Windows volumes (C:\) to prevent unprivileged local accounts from creating arbitrary top-level directories, or pre-create an empty, read-only C:\proc directory owned by SYSTEM and Administrators with inheritance disabled so unprivileged users cannot create self\ns\pid beneath it.

Official Patches

tox-devGitHub Security Advisory GHSA-fmp2-7mgr-gp5h
tox-devPull Request #1036: fix(identity): limit PID probe to Linux
tox-devGitHub Fix Commit 4f7a3d72f74157a638fa0a79dac45865f0cb8358
tox-devfilelock 4.3.0 Release Notes

Fix Analysis (1)

Technical Appendix

CVSS Score
4.7/ 10
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS Probability
0.21%
Top 88% most exploited

Affected Systems

tox-dev/filelock (PyPI: filelock) on Microsoft Windows

Affected Versions Detail

Product
Affected Versions
Fixed Version
filelock
tox-dev
< 4.3.04.3.0
AttributeDetail
CVE IDCVE-2026-144334 (GHSA-fmp2-7mgr-gp5h)
Weakness ClassCWE-427: Uncontrolled Search Path Element
Affected Componentfilelock (src/filelock/_identity.py: host_name())
Affected PlatformMicrosoft Windows (filelock < 4.3.0)
CVSS v3.1 Score4.7 Medium (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H)
EPSS Score0.21% (12.13th Percentile)
Security ImpactLocal Denial of Service via unrecoverable stale SoftFileLock / MarkerSoftFileLock
CISA KEV StatusNot Listed

MITRE ATT&CK Mapping

T1574Hijack Execution Flow
Persistence
T1499.003Endpoint Denial of Service: Application Exhaustion Flood
Impact
CWE-427
Uncontrolled Search Path Element

The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.

Vulnerability Timeline

Fix commit 4f7a3d72f74157a638fa0a79dac45865f0cb8358 authored by Bernát Gábor and merged via PR #1036.
2026-11-20
filelock version 4.3.0 released on PyPI and GitHub.
2026-12-03
GitHub Security Advisory GHSA-fmp2-7mgr-gp5h and CVE-2026-144334 formally published.
2026-12-03
NVD completes initial analysis, assigning CVSS v3.1 score 4.7 and CWE-427 classification.
2026-12-04

References & Sources

  • [1]GitHub Security Advisory: GHSA-fmp2-7mgr-gp5h
  • [2]Pull Request #1036: fix(identity): limit PID probe to Linux
  • [3]GitHub Commit 4f7a3d72f74157a638fa0a79dac45865f0cb8358
  • [4]filelock Release 4.3.0
  • [5]NVD Vulnerability Detail: CVE-2026-144334
  • [6]CVE.org Record: CVE-2026-144334
  • [7]cvelistV5 Repository Record for CVE-2026-144334

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 2 hours ago•CVE-2026-144338
3.3

CVE-2026-144338: Unbounded Directory Enumeration Denial of Service in Python filelock ReadWriteLock

CVE-2026-144338 is a local denial-of-service vulnerability affecting the Python filelock library prior to version 4.3.0. On POSIX systems, when ReadWriteLock or AsyncReadWriteLock operates within a shared parent directory, an unprivileged local user can flood the directory with entries matching the .filelock-* prefix. Because connection initialization executes an unbounded synchronous directory sweep before evaluating user-supplied lock timeouts, this flooding stalls calling threads and starves the asyncio event loop.

Amit Schendel
Amit Schendel
3 views•10 min read
•about 3 hours ago•CVE-2026-144342
2.5

CVE-2026-144342: Windows Opportunistic Lock Denial of Service in Python filelock StrictSoftFileLock

CVE-2026-144342 (GHSA-jcqr-c9r9-vgjh) is an uncontrolled resource consumption vulnerability in the Python filelock package affecting Windows environments. When applications utilize the StrictSoftFileLock locking protocol in directories shared across multiple local accounts, a low-privileged user with read-only access can exploit Windows NTFS opportunistic locking (oplock) semantics on aged, abandoned private claim records. By holding an unacknowledged read oplock on a stale temporary file, an attacker forces subsequent lock claimants attempting to unlink the record during directory reclamation scans into an indefinite kernel-level I/O wait, bypassing configured acquisition timeout limits.

Alon Barad
Alon Barad
3 views•10 min read
•about 4 hours ago•CVE-2026-145370
7.7

CVE-2026-145370: Control-Plane Denial of Service via Unbounded JWKS Fetch in Istio

CVE-2026-145370 (GHSA-7vw6-2xxx-fch6) is a resource allocation vulnerability in the Istio control plane (istiod). Prior to versions 1.30.9, 1.31.5, and 1.32.1, the JWKS resolver routine getRemoteContentWithRetry used an unbounded io.ReadAll call to retrieve remote JWKS and OpenID discovery documents. An authenticated Kubernetes user with permissions to create or modify a RequestAuthentication custom resource can specify an endpoint that returns an arbitrarily large or infinite stream, exhausting control-plane memory and placing istiod into a persistent CrashLoopBackOff state.

Alon Barad
Alon Barad
4 views•9 min read
•about 5 hours ago•CVE-2026-145369
6.4

CVE-2026-145369: Strict Gateway Merging Bypass via Internal Annotations in Istio

A cross-namespace isolation bypass vulnerability exists in the Istio control plane (istiod) affecting versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0. The strict gateway merging protection mechanism relies solely on user-modifiable Kubernetes resource annotations to identify internal configurations synthesized by the Kubernetes Gateway API controller. Because the admission validation webhook fails to block unprivileged users from specifying the internal.istio.io/gateway-semantics and internal.istio.io/service-account-name annotations on Istio Gateway custom resources, an attacker with permissions to create or update Gateway objects in a single tenant namespace can bypass namespace isolation. This allows the attacker to merge arbitrary listeners and host definitions into managed Gateway API proxy workloads operating in foreign namespaces.

Amit Schendel
Amit Schendel
2 views•11 min read
•about 6 hours ago•CVE-2026-145372
7.7

CVE-2026-145372: Control Plane Denial of Service via NULL Pointer Dereference in Istio Pilot

CVE-2026-145372 is a denial of service vulnerability affecting the Istio service mesh control plane (istiod) across the 1.30.x, 1.31.x, and 1.32.x branches. When Kubernetes Gateway API support is explicitly disabled via the PILOT_ENABLE_GATEWAY_API=false flag, two distinct code paths in Pilot invoke methods on the uninitialized GatewayAPIController structure without checking for a nil receiver. An authenticated Kubernetes user with standard namespace-scoped permissions can trigger an unhandled Go runtime panic by applying the gateway.networking.k8s.io/gateway-name label to a sidecar-injected pod or creating an Istio Gateway custom resource containing a cross-namespace TLS secret reference. Because istiod continuously reconciles cluster state upon restart, the control plane enters a persistent CrashLoopBackOff state, halting mesh-wide xDS configuration distribution, mTLS certificate rotation, and admission webhook operations.

Amit Schendel
Amit Schendel
4 views•11 min read
•about 7 hours ago•CVE-2026-145368
7.7

CVE-2026-145368: Denial of Service via xDS NACK NULL Pointer Dereference in Istio Control Plane (istiod)

CVE-2026-145368 (GHSA-r567-vfff-9c27) is a NULL pointer dereference vulnerability (CWE-476) in the Istio service mesh control plane daemon (istiod). When an xDS client transmits a configuration rejection (NACK) containing an error_detail field for a resource type URL to which the gRPC stream was never subscribed, istiod invokes an internal resource update closure with a nil WatchedResource pointer. Both State-of-the-World (SotW) and Delta Aggregated Discovery Service (ADS) implementations unconditionally dereference this pointer, triggering an unhandled Go runtime panic that terminates the istiod process.

Alon Barad
Alon Barad
5 views•9 min read