Vulnerability · Published Aug 19, 2026 · Assigned by PSF
CVE-2026-19672tarfile extraction filter bypass allows creation of directories outside the destination
Medium 6.3
In plain English
A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-19672 |
| Alpine:v3.22 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-19672 |
| Alpine:v3.23 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-19672 |
| Alpine:v3.24 | python3 | 3.14.8-r0 | ALPINE-CVE-2026-19672 |
| Debian:13 | python3.13 | no fix listed | DEBIAN-CVE-2026-19672 |
| Debian:14 | python3.14 | 3.14.7-3 | DEBIAN-CVE-2026-19672 |
| Debian:14 | python3.15 | 3.15.0~rc2-1 | DEBIAN-CVE-2026-19672 |
| Ubuntu:22.04:LTS | python3.10 | no fix listed | UBUNTU-CVE-2026-19672 |
| Ubuntu:24.04:LTS | python3.12 | no fix listed | UBUNTU-CVE-2026-19672 |
| Ubuntu:26.04:LTS | python3.14 | no fix listed | UBUNTU-CVE-2026-19672 |
| Ubuntu:26.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-19672 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.16.0 |
Weakness: CWE-22 · 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