CVE-2026-19672: Vulnerability in Python Software Foundation CPython
CVE-2026-19672 is a medium severity vulnerability in the Python Software Foundation's CPython implementation affecting the tarfile module on POSIX platforms. The issue involves the creation of empty directories outside the intended extraction destination when extracting tar archives with member names that traverse directories (e.g., using ../ sequences). Although the actual file contents remain inside the destination, the directory creation bypasses containment checks. This behavior does not affect Windows due to path normalization. No official patch or remediation guidance is currently provided.
AI Analysis
Technical Summary
The tarfile module in CPython versions prior to 3.16.0 contains a directory traversal vulnerability on POSIX systems. When extracting tar archives, the containment check uses the resolved path to prevent directory traversal, but intermediate directories are created from the original member name without normalization. This allows empty directories to be created outside the intended extraction destination if the member name includes sequences like ../evil/../dest/sub/file. The actual file contents remain inside the destination directory. On Windows, path normalization prevents this issue. This vulnerability does not affect extraction into secure randomized directories that do not share the final component of the destination path.
Potential Impact
An attacker can cause the creation of empty directories outside the intended extraction directory on POSIX systems when extracting crafted tar archives. This may lead to confusion or potential misuse of filesystem structure but does not allow extraction of file contents outside the destination. There is no indication of direct code execution or data compromise from this vulnerability alone.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid extracting untrusted tar archives on POSIX systems using vulnerable CPython versions or use extraction into secure randomized directories that do not share the final component of the destination path.
CVE-2026-19672: Vulnerability in Python Software Foundation CPython
Description
CVE-2026-19672 is a medium severity vulnerability in the Python Software Foundation's CPython implementation affecting the tarfile module on POSIX platforms. The issue involves the creation of empty directories outside the intended extraction destination when extracting tar archives with member names that traverse directories (e.g., using ../ sequences). Although the actual file contents remain inside the destination, the directory creation bypasses containment checks. This behavior does not affect Windows due to path normalization. No official patch or remediation guidance is currently provided.
CVSS v4.0
Score 6.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The tarfile module in CPython versions prior to 3.16.0 contains a directory traversal vulnerability on POSIX systems. When extracting tar archives, the containment check uses the resolved path to prevent directory traversal, but intermediate directories are created from the original member name without normalization. This allows empty directories to be created outside the intended extraction destination if the member name includes sequences like ../evil/../dest/sub/file. The actual file contents remain inside the destination directory. On Windows, path normalization prevents this issue. This vulnerability does not affect extraction into secure randomized directories that do not share the final component of the destination path.
Potential Impact
An attacker can cause the creation of empty directories outside the intended extraction directory on POSIX systems when extracting crafted tar archives. This may lead to confusion or potential misuse of filesystem structure but does not allow extraction of file contents outside the destination. There is no indication of direct code execution or data compromise from this vulnerability alone.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid extracting untrusted tar archives on POSIX systems using vulnerable CPython versions or use extraction into secure randomized directories that do not share the final component of the destination path.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-08-12T21:17:15.148Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a85cdc8acd9273b49443576
Added to database: 08/19/2026, 15:37:44 UTC
Last enriched: 08/19/2026, 16:13:25 UTC
Last updated: 08/19/2026, 16:13:25 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.