Skip to main content

python-tuf CVE-2026-123806

| EUVDEUVD-2026-120403 MEDIUM
Improper Handling of Case Sensitivity (CWE-178)
2026-11-09 GitHub_M
4.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Control case-colliding delegated role in repo
  2. Exploit
    Order malicious delegation before legitimate one
  3. Execution
    Windows ngclient case-folds requested target path
  4. Impact
    Client accepts attacker's wrong-delegation target

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Case sensitivity handling
Exploitation Conditions

Exploitation requires ALL of: (1) a TUF repository configured with two or more path-based delegations whose glob patterns differ only by case (e.g. 'Foo/*' and 'foo/*'); (2) the attacker controls one of those case-colliding delegated roles; (3) the attacker-controlled role is visited BEFORE the legitimate role in the delegation pre-order walk; and (4) the victim runs python-tuf ngclient on Windows, where os.path.normcase (ntpath) lowercases input and makes delegation path matching case-insensitive. Limiting factors that reduce real-world risk: Linux and macOS clients are completely unaffected (POSIX normcase is identity); the required case-colliding delegation configuration is non-default and must be present in the repository; and the attacker must already hold a delegated role. The only complete fix is upgrading to python-tuf 7.0.0, which replaces fnmatch.fnmatch with fnmatch.fnmatchcase.

Impact

This is a genuinely low-priority issue despite being a real authorization flaw. The vuln.today decision label is 'this_month' (not act_now/emergency), it is NOT in CISA KEV (no confirmed active exploitation), and no EPSS score was supplied. The provided CVSS is 4.0 (Medium) with vector AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - note the local attack vector and integrity-only impact. The 'low real risk' reading is reinforced by narrow preconditions: the flaw (CWE-178, improper case handling via fnmatch.fnmatch → os.path.normcase) only manifests on Windows clients, only when a TUF repository is configured with path-based delegations that collide only by case, and only when the attacker already controls one of those delegated roles and it is ordered first in the delegation walk. Linux and macOS clients are explicitly unaffected. One signal to verify: the official vector asserts AV:L, but target delivery in TUF occurs over the network from a repository, so network reachability is plausible - this is reflected in my independent assessment below. No EPSS/KEV data was provided, consistent with a low-probability, configuration-dependent weakness rather than a mass-exploitable bug.

Exploit ScenarioDerived

On a Windows host, a victim's python-tuf ngclient updates targets from a TUF repository in which the attacker controls a delegated role whose glob path pattern differs from a legitimate role only by case (e.g. 'Foo/*' vs 'foo/*') and is visited first in the pre-order delegation walk. When the client requests 'foo/something', Windows path normalization (ntpath.normcase lowercases) causes the attacker's 'Foo/something' delegation to match, and the client accepts the attacker-provided target from the wrong delegation. The GHSA advisory documents the conceptual attack steps, but no verified working exploit code is published; Linux and macOS clients are not affected.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 09, 2026

Delegation path authorization in python-tuf's ngclient (all versions through 6.0.0) becomes case-insensitive on Windows, so a repository whose path-based delegations differ only by case can hand a requested target to the wrong, attacker-controlled role. Only Windows clients are exposed, and only when the repository contains case-colliding delegation patterns such as 'Foo/*' and 'foo/*', the attacker already controls one of those delegated roles, and that role is visited before the legitimate one in the delegation pre-order walk. Impact is limited to a low-severity integrity error in target selection: Linux and macOS clients normalize nothing and are unaffected, and no public exploit code or CISA KEV entry was identified at time of analysis; the priority label is this_month, and our independent assessment rates it AV:N/AC:H rather than the CNA's AV:L, with the same integrity-only impact.

RemediationAI

Upgrade python-tuf to 7.0.0 (pip install -U tuf==7.0.0), which replaces fnmatch.fnmatch with fnmatch.fnmatchcase in DelegatedRole._is_target_in_pathpattern and makes delegation path matching case-sensitive on every platform; the release is published at https://github.com/theupdateframework/python-tuf/releases/tag/v7.0.0, the code change is commit 8ed4414946041030b264871ac41b929cf15774a5, and the advisory is https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-qp9x-wp8f-qgjj. The assessment is explicit that upgrading is the only complete fix, so no partial workaround restores correct authorization while staying on versions <= 6.0.0. For teams that cannot upgrade immediately, the practical compensating controls act on the repository configuration rather than the client: audit delegation metadata and eliminate any path patterns that collide case-insensitively (for example 'Foo/*' versus 'foo/*'), since the attack has no effect without such a pair - the trade-off is reduced delegation granularity - and, where the delegation set cannot be changed, restrict or block updates of the delegation/targets metadata to trusted publication paths so a controlled delegated role cannot be reordered ahead of the legitimate one, accepting that this is a publication-process control and not a client-side guarantee. Windows clients carry the risk while Linux and macOS clients are unaffected, so upgrade priority can be sequenced accordingly, but the fixed library version should still be rolled out everywhere.

Affected VersionsENISA

python-tuf < 7.0.0

Affected Packages

pypi tuf fix: 7.0.0
euvd python_tuf fix: 7.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi, euvd

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

Technical ContextAI · show details

TUF (The Update Framework) delegates trust for subsets of a repository's targets to named roles, and each path-based delegation carries a glob pattern that bounds which target paths it may sign. python-tuf implements that check in DelegatedRole._is_target_in_pathpattern in tuf/api/_payload.py: it splits both the requested target path and the delegation pattern on '/', requires the two to have the same number of segments, and then matches each segment with fnmatch.fnmatch. fnmatch.fnmatch is not a pure glob matcher - it first calls os.path.normcase on both the name and the pattern and only then calls fnmatchcase. On POSIX, os.path is posixpath and normcase is the identity function, so matching is case-sensitive. On Windows, os.path is ntpath, whose normcase lowercases its argument and converts '/' to '\\', so the per-segment matching silently becomes case-insensitive. The root-cause class is CWE-178 (Improper Handling of Case Sensitivity): an authorization decision whose result depends on the client host's filesystem semantics violates the TUF specification's case-sensitive path pattern semantics. The upstream fix in commit 8ed4414946041030b264871ac41b929cf15774a5 swaps fnmatch.fnmatch for fnmatch.fnmatchcase, which is documented as performing no case normalization, and adds regression cases such as ('FOO.tgz','foo.tgz') and ('foo/bar','Foo/*') to tests/test_api.py. The CNA scored the flaw 4.0 with AV:L; the independent assessment instead treats the vector as AV:N/AC:H, reflecting that the malicious content arrives over the network but that four narrow preconditions must all hold, and keeps the impact at integrity-only (I:L) with no confidentiality or availability effect.

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_M) PRIMARY 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
vuln.today AI 3.7 LOW

Targets are delivered over the network from a repository (AV:N), but exploitation needs a Windows client plus case-colliding attacker-controlled delegations ordered first (AC:H); integrity-only impact, no confidentiality or availability loss.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Nov 09, 2026 - 21:02 EUVD
CVE Published
Nov 09, 2026 - 20:18 cve.org
MEDIUM 4.0

DescriptionCVE.org

python-tuf is a Python reference implementation of The Update Framework (TUF). Prior to 7.0.0, DelegatedRole._is_target_in_pathpattern in tuf/api/_payload.py uses fnmatch.fnmatch, which applies os.path.normcase before matching and makes delegation path authorization case-insensitive on Windows. When a TUF repository has path-based delegations that differ only by case and an attacker-controlled role is visited before the legitimate role, ngclient can accept an attacker-provided target from the wrong delegation for a requested path. Linux and macOS clients are not affected because their path normalization does not change case. This issue is fixed in 7.0.0.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
niche TUF reference library, limited production deployment footprint
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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

Vendor StatusVendor

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