Skip to main content
EPSS 0.5%top 58%

CVE-2026-19672: Vulnerability in Python Software Foundation CPython

0
Medium
Published: 08/19/2026 (08/19/2026, 15:24:08 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N

Affected software

Python Software Foundation

CPython

Affected versions
>=0 <3.16.0
GitHub Actionsmore threats →cve
CPython
pkg:github/CPython
Affected versions
>=0 <3.16.0

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

AILast updated: 09/11/2026, 08:04:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses