Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-79824 Overview
CVE-2026-79824 is a directory traversal vulnerability affecting HPE NonStop Python 3.x. The flaw allows attackers to overwrite arbitrary files on the target system by placing .. (dot-dot) sequences in filenames contained within a TAR archive. When Python extracts a malicious archive, path components traverse outside the intended extraction directory and write to attacker-chosen locations.
The weakness maps to CWE-30: Path Traversal: '\dir\..\filename'. Exploitation requires user interaction (opening or extracting an archive) and adjacent network access, making it well suited for supply-chain style delivery of weaponized archives.
Critical Impact
An attacker who convinces a user to extract a crafted TAR archive can overwrite arbitrary files, enabling code execution, privilege escalation, or denial of service on HPE NonStop systems.
Affected Products
- HPE NonStop Python 3.x
- HPE NonStop systems running vulnerable Python 3 distributions
- Applications and scripts on NonStop that process untrusted TAR archives via Python 3
Discovery Timeline
- 2026-10-15 - CVE CVE-2026-79824 published to NVD
- 2026-10-15 - Last updated in NVD database
- Reference - HPE Security Bulletin
Technical Details for CVE-2026-79824
Vulnerability Analysis
The vulnerability resides in TAR archive extraction logic within HPE NonStop Python 3.x. TAR entries store filenames as plain strings, and Python's extraction routines write files using those names relative to a target directory. When filenames include .. segments, the resulting path escapes the intended directory and resolves to arbitrary locations on the filesystem.
An attacker crafts a TAR archive containing an entry such as ../../etc/profile or ../../usr/local/bin/script. On extraction, Python writes the embedded content to that absolute location, overwriting the original file. Depending on the targeted path, this leads to arbitrary code execution the next time the overwritten binary or script runs, or to configuration tampering that weakens system controls.
The issue is a known class of weakness in Python's tarfile module historically tracked as the "tarslip" problem. Extraction functions prior to filter-based hardening do not validate that resolved member paths stay inside the destination directory.
Root Cause
The root cause is insufficient validation of archive member paths during TAR extraction. The extraction routine concatenates the destination directory with the archive-supplied filename and writes to the resolved path without checking whether that path remains inside the destination. The .. sequence is treated as a normal path component rather than a traversal attempt.
Attack Vector
The attack vector is adjacent network with required user interaction. An attacker delivers a malicious TAR archive through email, file share, update channel, or software supply chain. A user or automated process on an HPE NonStop system then extracts the archive using Python 3.x tarfile APIs such as TarFile.extract() or TarFile.extractall(). The crafted entries overwrite files anywhere the extracting user has write permission.
The vulnerability is described in prose rather than code because no verified public exploit is published. Consult the HPE Security Bulletin for vendor technical details.
Detection Methods for CVE-2026-79824
Indicators of Compromise
- TAR archive members whose names contain .. sequences, absolute paths, or symbolic links pointing outside the intended extraction directory.
- Unexpected modifications to system binaries, startup scripts, or configuration files following archive extraction by a Python 3 process on HPE NonStop.
- Python processes writing to paths well outside the working directory of the invoking user or job.
Detection Strategies
- Inspect TAR archives at ingress points (mail gateways, file transfer services) and flag entries with traversal sequences or absolute paths.
- Correlate Python 3 process execution on NonStop with filesystem write events to sensitive directories such as /etc, /usr/local/bin, or NonStop system subvolumes.
- Alert on checksum changes to known-good binaries and scripts outside of patch windows.
Monitoring Recommendations
- Enable filesystem auditing on sensitive directories and ship events to a central analytics platform for correlation.
- Monitor invocations of tarfile.extract and tarfile.extractall via application logging in in-house Python code.
- Track installation and update workflows that extract third-party archives on NonStop hosts.
How to Mitigate CVE-2026-79824
Immediate Actions Required
- Apply the patched HPE NonStop Python 3.x release referenced in the HPE Security Bulletin as soon as it is available for your platform.
- Inventory all NonStop hosts running Python 3.x and all applications that call tarfile to extract externally sourced archives.
- Restrict delivery of untrusted TAR archives to NonStop systems and quarantine any archive flagged with traversal indicators.
Patch Information
HPE has published guidance in HPE Security Bulletin hpesbns05148en_us. Install the fixed HPE NonStop Python 3.x package distributed through HPE support channels and validate the installed version matches the patched release. See the HPE Security Bulletin for exact fixed versions and distribution details.
Workarounds
- Use Python's tarfile extraction filter (filter='data' or filter='tar') when calling extract() or extractall() to reject members with traversal paths.
- Validate every archive member name before extraction and reject entries whose resolved absolute path is not a child of the destination directory.
- Run archive extraction under a least-privileged account that cannot write to system directories or production binaries.
# Configuration example: safer extraction pattern in Python 3
python3 -c "import tarfile; \
t = tarfile.open('archive.tar'); \
t.extractall(path='/tmp/safe', filter='data'); \
t.close()"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

