CVE-2026-90959
Path traversal via crafted file: URL bypass lets low‑priv repo users read arbitrary server files.
- CVSS 8.1
- CWE-22
- Input Validation and Sanitization
- Remote
A path traversal vulnerability was found in pulpcore. The content upload API accepts a 'file_url' parameter that allows users with file repository privileges to specify a local file URL for Pulp to download and store. A URL scheme validation check uses a string prefix comparison that only rejects URLs beginning with 'file://', but Python's URL parser recognizes the 'file:' scheme without double slashes, creating a mismatch between what is validated and what is dispatched to the file downloader. An authenticated user with low-privilege repository permissions can supply a specially crafted URL using relative path traversal sequences to read any file accessible to the Pulp server process. In deployments that include Pulp Container, successful exploitation allows an attacker to read the container registry token signing private key and forge bearer tokens, granting unauthorized access to all private container repositories in the affected registry.
- CWE
- CWE-22
- CVSS base score
- 8.1
- Published
- 2026-09-24
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Input Validation and Sanitization
- Subcategory
- Path Traversal
- Accessibility scope
- Remote
- Impact
- Information Disclosure
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade pulpcore to version 3.30.0 or later, which contains the fix for the path‑traversal issue.
Vulnerable code sample
import urllib.request
def upload_content(file_url: str):
"""
Accepts a file_url from the API and downloads the content.
"""
# VULNERABLE: only rejects URLs starting with 'file://', allowing 'file:/...' traversal
if file_url.startswith('file://'):
raise ValueError("Local file URLs are not allowed")
# Dispatcher trusts the URL and uses urllib to fetch it
destination = "/var/lib/pulp/content/tmp.bin"
urllib.request.urlretrieve(file_url, destination)
# Further processing omittedPatched code sample
import urllib.request
import urllib.parse
def upload_content(file_url: str):
"""
Accepts a file_url from the API and downloads the content.
"""
# FIX: properly validate scheme using urlparse to reject any file scheme
parsed = urllib.parse.urlparse(file_url)
if parsed.scheme == "file":
raise ValueError("Local file URLs are not allowed")
destination = "/var/lib/pulp/content/tmp.bin"
urllib.request.urlretrieve(file_url, destination)
# Further processing omittedCite this entry
@misc{vaitp:cve202690959,
title = {{Path traversal via crafted file: URL bypass lets low‑priv repo users read arbitrary server files.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-90959},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-90959/}}
}
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 ::
