CVE-2026-19672
published 2026-08-19CVE-2026-19672: The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to…
PriorityP337medium6.3CVSS 4.0
AVNACLATPPRNUINVCNVINVANSCNSILSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.47%
39.8th percentile
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.
Affected
1 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| python_software_foundation | cpython | < 3.16.0 | 3.16.0 |
CVSS provenance
nvdv4.06.3MEDIUMCVSS: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
vendor_redhat6.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
VulDB
Python tarfile up to 3.15.x path traversal (EUVD-2026-62536 / Nessus ID 364204)
vuldb·2026-10-09·CVSS 6.3
CVE-2026-19672 [MEDIUM] Python tarfile up to 3.15.x path traversal (EUVD-2026-62536 / Nessus ID 364204)
A vulnerability was found in Python tarfile up to 3.15.x and classified as problematic. The impacted element is an unknown function. The manipulation results in path traversal.
This vulnerability is known as CVE-2026-19672. Attacking locally is a requirement. No exploit is available.
It is suggested to upgrade the affected component.
GHSA
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.
ghsa_unreviewed·2026-08-19
CVE-2026-19672 [MEDIUM] 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 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.
Red Hat
python: Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination
vendor_redhat·2026-08-19·CVSS 6.3
CVE-2026-19672 [MEDIUM] CWE-22 python: Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination
python: Python tarfile module: Directory traversal allows creation of empty directories outside extraction destination
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
No detection rules found.
No public exploits indexed.
https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://github.com/python/cpython/pull/156000https://mail.python.org/archives/list/[email protected]/thread/J2WT2ALRWEXQJOB3C7Q2HYWUXP3CINWO/http://www.openwall.com/lists/oss-security/2026/08/25/10
2026-08-19
Published