CVE-2026-19672: Vulnerability in Python Software Foundation CPython
CVE-2026-19672 is a directory traversal vulnerability in the Python tarfile module affecting POSIX platforms. The issue allows creation of empty directories outside the intended extraction destination when member names contain path components that leave and then return to the destination directory. This does not affect Windows due to path normalization. Only empty directories are created outside the destination; file contents remain inside. The vulnerability affects CPython versions before 3.16.0 and has a medium severity rating with a CVSS score of 6.3.
AI Analysis
Technical Summary
The tarfile module in CPython versions prior to 3.16.0 on POSIX systems improperly handles directory creation during extraction of tar archives. Specifically, the containment check uses the resolved path to verify extraction safety, but intermediate directories are created from the original member name without resolution. This allows crafted member names containing sequences like '../evil/../dest/sub/file' to cause empty directories to be created outside the intended extraction destination. File contents are still extracted inside the destination directory. Windows platforms are not affected due to path component collapsing before filesystem access.
Potential Impact
An attacker can cause the creation of empty directories outside the intended extraction destination on POSIX systems when extracting tar archives using the vulnerable tarfile module. This could potentially be used to influence filesystem structure or confuse security controls, but no file content is extracted outside the destination. Windows systems are not affected. The impact is limited to directory creation and does not include arbitrary file write or code execution.
Mitigation Recommendations
No official patch information is provided in the input data. Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Users should avoid extracting untrusted tar archives with vulnerable CPython versions on POSIX systems or use alternative extraction methods until a fix is available.
CVE-2026-19672: Vulnerability in Python Software Foundation CPython
Description
CVE-2026-19672 is a directory traversal vulnerability in the Python tarfile module affecting POSIX platforms. The issue allows creation of empty directories outside the intended extraction destination when member names contain path components that leave and then return to the destination directory. This does not affect Windows due to path normalization. Only empty directories are created outside the destination; file contents remain inside. The vulnerability affects CPython versions before 3.16.0 and has a medium severity rating with a CVSS score of 6.3.
CVSS v4.0
Score 6.3medium
Affected software
Python Software Foundation
CPython
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The tarfile module in CPython versions prior to 3.16.0 on POSIX systems improperly handles directory creation during extraction of tar archives. Specifically, the containment check uses the resolved path to verify extraction safety, but intermediate directories are created from the original member name without resolution. This allows crafted member names containing sequences like '../evil/../dest/sub/file' to cause empty directories to be created outside the intended extraction destination. File contents are still extracted inside the destination directory. Windows platforms are not affected due to path component collapsing before filesystem access.
Potential Impact
An attacker can cause the creation of empty directories outside the intended extraction destination on POSIX systems when extracting tar archives using the vulnerable tarfile module. This could potentially be used to influence filesystem structure or confuse security controls, but no file content is extracted outside the destination. Windows systems are not affected. The impact is limited to directory creation and does not include arbitrary file write or code execution.
Mitigation Recommendations
No official patch information is provided in the input data. Patch status is not yet confirmed — check the Python Software Foundation advisory for current remediation guidance. Users should avoid extracting untrusted tar archives with vulnerable CPython versions on POSIX systems or use alternative extraction methods until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-08-12T21:17:15.148Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a85cdc8acd9273b49443576
Added to database: 08/19/2026, 15:37:44 UTC
Last enriched: 09/11/2026, 08:04:58 UTC
Last updated: 10/02/2026, 14:46:06 UTC
Views: 65
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.