CVE-2026-123806
Case‑insensitive path delegation on Windows allows wrong target acceptance.
- CVSS 4.0
- CWE-178
- Input Validation and Sanitization
- Remote
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.
- CWE
- CWE-178
- CVSS base score
- 4.0
- Published
- 2026-11-09
- OWASP
- A01 Broken Access Control
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Input Validation and Sanitization
- Subcategory
- Insecure Direct Object References (IDOR)
- Accessibility scope
- Remote
- Impact
- Unauthorized Access
- Affected component
- python-tuf
- Fixed by upgrading
- Yes
Solution
Upgrade python‑tuf to version 7.0.0 or newer.
Vulnerable code sample
import fnmatch
class DelegatedRole:
def __init__(self, path_pattern):
self.path_pattern = path_pattern
def _is_target_in_pathpattern(self, target_path):
# VULNERABLE: case‑insensitive match on Windows via fnmatch
return fnmatch.fnmatch(target_path, self.path_pattern)Patched code sample
import fnmatch
class DelegatedRole:
def __init__(self, path_pattern):
self.path_pattern = path_pattern
def _is_target_in_pathpattern(self, target_path):
# FIX: enforce case‑sensitive match using fnmatchcase
return fnmatch.fnmatchcase(target_path, self.path_pattern)Published fix
Public sources link this CVE to the changes below. The code samples above were generated to illustrate the defect; these links lead to the code the project actually changed.
- Fix incorrect targetpath comparison on Windows (theupdateframework/python-tuf)
tuf/api/_payload.py · DelegatedRole._is_target_in_pathpattern
Cite this entry
@misc{vaitp:cve2026123806,
title = {{Case‑insensitive path delegation on Windows allows wrong target acceptance.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-123806},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-123806/}}
}
Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.
The supreme art of war is to subdue the enemy without fighting.
Sun Tzu – “The Art of War”
:: Shaping the future through research and ingenuity ::
