CVE-2026-19672
python: Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · August 20, 2026
Updated · September 27, 2026
Description
A flaw was found in the Python tarfile module. This vulnerability allows an attacker to create empty directories outside of the intended extraction destination on POSIX (Portable Operating System Interface) platforms. This occurs when processing a specially crafted archive containing member names that use directory traversal sequences (e.g., ../) to leave and then re-enter the target directory. While only empty directories are created outside the destination, this can lead to unintended file system modifications.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
CVSS / CWE
CVSS 3.1 · 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')