CVE-2026-79824
Directory traversal in HPE NonStop Python 3.x lets attackers overwrite files via “..” in TAR names.
- CVSS 8.0
- CWE-30
- Input Validation and Sanitization
- Remote
A directory traversal vulnerability in HPE NonStop Python 3.x could allow attackers to overwrite arbitrary files via a .. (dot dot) sequence in filenames in a TAR archive.
- CWE
- CWE-30
- CVSS base score
- 8.0
- Published
- 2026-10-15
- OWASP
- A04 Insecure Design
- Orthogonal defect classification
- Checking
- Code defect classification
- Missing Check
- Category
- Input Validation and Sanitization
- Subcategory
- Path Traversal
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- Python
- Fixed by upgrading
- Yes
Solution
Upgrade HPE NonStop Python to the latest released version (e.g., 3.x ≥ 3.9.2), which includes the fix for the directory‑traversal issue.
Vulnerable code sample
import tarfile
import os
def extract_archive(archive_path: str, dest_dir: str) -> None:
# VULNERABLE: extracts files without sanitizing member names, allowing path traversal
with tarfile.open(archive_path, "r:*") as tar:
tar.extractall(path=dest_dir)Patched code sample
import tarfile
import os
def extract_archive(archive_path: str, dest_dir: str) -> None:
# FIX: sanitize member names to prevent directory traversal
with tarfile.open(archive_path, "r:*") as tar:
for member in tar.getmembers():
member_path = os.path.normpath(os.path.join(dest_dir, member.name))
if not member_path.startswith(os.path.abspath(dest_dir) + os.sep):
continue
tar.extract(member, path=dest_dir)Cite this entry
@misc{vaitp:cve202679824,
title = {{Directory traversal in HPE NonStop Python 3.x lets attackers overwrite files via “..” in TAR names.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-79824},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-79824/}}
}
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 ::
