CVE-2026-19672
What it is
The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name as given. Only empty directories are created outside the destination. Member contents are still extracted inside it. To return to the destination the member's name must contain the destination directory's own final component, so extraction into a secure randomised directory is not affected. This affects POSIX platforms only. On Windows, .. components are collapsed before the path reaches the filesystem, so the directories outside the destination are never created.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 0.5% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Details
- Published
- Last modified
- Exploit probability
- 0.5% · EPSS, next 30 days
- Weakness
- CWE-22 · Path traversal
- Record status
- Awaiting Analysis
Attack profile CVSS 4.0 · 6.3
- Attack vector
- Network
- Complexity
- Low
- Attack requirements
- Present
- Privileges needed
- None
- User interaction
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- None
Raw vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix and advisories
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
References
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://github.com/python/cpython/pull/156000
- https://mail.python.org/archives/list/[email protected]/thread/J2WT2ALRWEXQJOB3C7Q2HYWUXP3CINWO/
- http://www.openwall.com/lists/oss-security/2026/08/25/10