CVE-2026-82049
8.4Python Software Foundation · CPython
CPython is vulnerable to a directory traversal flaw in the tarfile module, where crafted archives allow modification of files or exposure of sensitive data outside the intended destination directory.
Executive summary
A high-severity directory traversal vulnerability in the CPython tarfile module allows attackers to manipulate files outside the extraction path, posing a significant risk to system integrity.
Vulnerability
The vulnerability exists within the tarfile module where improper handling of hard links pointing to symbolic links allows for unauthorized file access or modification. This flaw can be triggered by an unauthenticated user if they can convince a user or system process to extract a malicious archive.
Business impact
Successful exploitation of this vulnerability could lead to unauthorized modification of system permissions or the exposure of sensitive files, potentially resulting in complete compromise of the affected application environment. With a CVSS score of 8.4, this issue represents a significant risk to data confidentiality and integrity, particularly in automated build pipelines or data processing systems that ingest untrusted archives.
Remediation
Immediate Action: Update CPython to version 3.14.0b1 or later to incorporate the necessary security patches.
Proactive Monitoring: Monitor system logs for unexpected file modification activity or errors related to the tarfile module during archive extraction processes.
Compensating Controls: Implement strict input validation on all ingested archives and run extraction processes within isolated containers or sandboxed environments with minimal file system privileges.
Exploitation status
Public Exploit Available: Unknown
Analyst recommendation
Given the potential for arbitrary file modification, organizations should prioritize updating their Python environments to the patched version. Because this flaw affects a core library, it is critical to audit applications that process external data to ensure they are not inadvertently exposing sensitive file paths to untrusted archive content.
More Python Software Foundation CVEs
History
- Disclosed CVE record published
- Collected by CVE Brief via github
- Analyst report written
- Published in the daily brief high section
Sources
Originally found and disclosed by Jing Qian (https://github.com/Civitasmass), with Stan Ulbrych (https://github.com/StanFromIreland) (coordinator), Petr Viktorin (https://github.com/encukou) (remediation reviewer), per the CVE Program record.