Skip to main content

filelock CVE-2026-144384

| EUVDEUVD-2026-143599 LOW
Improper Locking (CWE-667)
2026-12-03 security-advisories@github.com
2.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain local account in misconfigured PID namespace
  2. Delivery
    Observe soft-lock holder's numeric PID
  3. Exploit
    Control unrelated task reusing that PID via foreign procfs
  4. Execution
    Alter its start token so holder appears stale
  5. Persist
    Live holder's marker removed, enter protected section concurrently
  6. Impact
    Corrupt lock-protected resource

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Proper locking
Exploitation Conditions

Exploitation requires a narrow, non-default Linux configuration: the application must use filelock's soft-lock classes (SoftFileLock, MarkerSoftFileLock, or SoftFileLease) rather than the default OS-level lock, and the cooperating processes must run in a PID namespace that sees a /proc mounted for a different PID namespace - specifically 'unshare --pid' without '--mount-proc', or 'nsenter --pid' without '--mount', so that /proc/<pid> resolves to an unrelated task. An attacker must have a local account (PR:L) and be able to run/control that unrelated process which happens to reuse the holder's numeric PID and replace its start token. Limiting factors that reduce real-world risk: it is Linux-only, requires soft locks specifically, requires the foreign-procfs namespace misconfiguration (default container/namespace setups that mount /proc per-namespace are unaffected), requires a numeric PID collision, and is rated AC:H with no network vector (AV:L). Simply matching each process's /proc mount to its PID namespace, or upgrading to 4.3.0, removes the condition.

Impact

All severity signals agree that this is a low-priority issue. The supplied CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N) scores 2.5 and describes a local, high-complexity, low-privilege flaw with only a low integrity impact and no confidentiality or availability impact; the vuln.today Decision label is 'monitor', the weakest urgency tier. This is not in CISA KEV (no confirmed active exploitation), no EPSS probability was provided in the input, and no exploit reference is present - only the fix commit, pull request, release and GitHub advisory. SSVC-style signals beyond the 'monitor' label (automatable, exploitation status) were not supplied, so a full SSVC comparison cannot be made. The one caveat worth flagging is a tag/impact mismatch: the input Tags include 'Information Disclosure', yet the CVSS vector sets C:N - the actual defect is a locking-integrity failure (CWE-667) that lets two holders into a protected section, so the real impact is integrity, not disclosure. Overall this is a genuinely low-real-risk, high-CVSS-it-is-not case: a low-severity correctness bug that only matters under an unusual Linux PID-namespace misconfiguration, not an urgent priority.

Exploit ScenarioDerived

On a Linux host where processes share a filelock SoftFileLock but run under a PID namespace that still sees an outer /proc (e.g. 'unshare --pid' without '--mount-proc', or 'nsenter --pid' without '--mount'), a local low-privileged user controls an unrelated task that happens to reuse the lock holder's numeric PID and alters its start token so the holder looks like a recycled, stale PID. The soft lock then removes the live holder's marker, letting a second process enter the protected section concurrently and corrupt whatever the lock guards. No public exploit code was identified at time of analysis, and exploitation is high-complexity (AC:H) and requires a local account.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 03, 2026

On Linux, filelock releases prior to 4.3.0 can admit two holders into a protected critical section at the same time because the soft-lock classes (SoftFileLock, MarkerSoftFileLock, SoftFileLease) may treat a live holder as stale. The flaw only appears in a narrow configuration: locking processes that see a /proc mount belonging to a different PID namespace, where /proc/<pid> resolves to an unrelated task whose start token can be replaced. Exploitation needs a local account and control of that unrelated process (CVSS 3.1: AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N, 2.5), and no public exploit has been identified at time of analysis; the vendor-released fix is 4.3.0.

RemediationAI

Upgrade every process that shares a given lock to filelock 4.3.0 or later (https://github.com/tox-dev/filelock/releases/tag/4.3.0), which contains the fix from PR #983 (https://github.com/tox-dev/filelock/pull/983, commit 245f523d3414792c5e6640f0483c2d8cff9704ed) and is described in advisory GHSA-h4mc-mqxc-5vrm. In parallel, correct the deployment so each process's /proc mount matches its own PID namespace - avoid 'unshare --pid' without '--mount-proc' and 'nsenter --pid' without '--mount' for workloads that use filelock soft locks - since matching the mount to the namespace removes the condition entirely. Be aware of the trade-off introduced by the fix: when the mount cannot supply a reliable start token, filelock records and compares no token and falls back to PID-only liveness, so PID reuse may leave a dead holder's marker in place until its configured lifetime expires or an operator verifies the lock is abandoned and clears it; sizing marker lifetimes accordingly is the compensating control for that residual behavior.

Affected VersionsENISA

filelock < 4.3.0

Affected Packages

euvd filelock fix: 4.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

filelock is a Python library offering both OS-level locks and "soft" advisory locks implemented with marker files. To detect a stale marker, the soft-lock implementation reads a process start token from procfs (the starttime field in /proc/<pid>/stat) and compares it against the recorded token, so a recycled PID can be distinguished from the original holder. That reasoning assumes /proc numbers tasks according to the reader's own PID namespace. A procfs is numbered by the namespace of the process that mounted it, so a process running under 'unshare --pid' without '--mount-proc', or 'nsenter --pid' without '--mount', can read /proc/<pid> and find a completely unrelated task - possibly belonging to another user - occupying that numeric PID. Replacing that unrelated task's start token then makes the live holder look like a recycled PID, the stale check passes, and two processes enter the protected section, which is the improper-locking weakness described by CWE-667. The upstream fix in commit 245f523d3414792c5e6640f0483c2d8cff9704ed adds a _proc_numbers_tasks_as_here check that compares the /proc/self symlink against os.getpid() and inspects the NSpid lines in /proc/self/status; when the procfs belongs to a different PID namespace, no start token is recorded or compared and the stale check falls back to the PID alone. As the advisory documents, that fallback has its own consequence: PID reuse can leave a dead holder's marker in place until its configured lifetime expires or an operator clears it.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 2.5 LOW
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 2.5 LOW

Local only and dependent on a foreign-procfs misconfiguration plus PID collision (AV:L, AC:H); attacker needs a local account to control the colliding task (PR:L); impact is concurrent protected-section access, so I:L with C:N/A:N.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None

Lifecycle Timeline

2
Patch available
Dec 03, 2026 - 20:05 EUVD
CVE Published
Dec 03, 2026 - 19:17 cve.org
LOW 2.5

DescriptionCVE.org

filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Linux, a soft lock can mistake a live holder for a stale one when the locking processes see a /proc mount from a different PID namespace. If the same numeric PID identifies an unrelated process in that namespace, changes to that process can allow two holders into the protected section at the same time. This issue is fixed in version 4.3.0.

Threat Intelligence Overview

Prevalence
High
filelock is a hugely-downloaded transitive dependency across Python environments
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy