CVE-2026-19672

NameCVE-2026-19672
DescriptionThe 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypy3 (PTS)bookworm7.3.11+dfsg-2+deb12u3vulnerable
trixie7.3.19+dfsg-2vulnerable
forky, sid7.3.23+dfsg-1vulnerable
python3.11 (PTS)bookworm3.11.2-6+deb12u8vulnerable
bookworm (security)3.11.2-6+deb12u3vulnerable
python3.13 (PTS)trixie3.13.5-2+deb13u3vulnerable
forky, sid3.13.15-1vulnerable
python3.14 (PTS)forky3.14.7-1vulnerable
sid3.14.7-3fixed
python3.15 (PTS)forky3.15.0~rc1-1vulnerable
sid3.15.0~rc2-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypy3source(unstable)(unfixed)
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)3.14.7-3
python3.15source(unstable)3.15.0~rc2-1
python3.9source(unstable)(unfixed)

Notes

[trixie] - python3.13 <no-dsa> (Minor issue)
[trixie] - pypy3 <no-dsa> (Minor issue)
[bookworm] - pypy3 <postponed> (Minor issue)
https://mail.python.org/archives/list/security-announce@python.org/thread/J2WT2ALRWEXQJOB3C7Q2HYWUXP3CINWO/
https://github.com/python/cpython/issues/155999
https://github.com/python/cpython/pull/156000
https://github.com/python/cpython/commit/038a0915fdbb872f8064c37e67e527a8a7c5236c (v3.15.0rc2)
https://github.com/python/cpython/commit/16dea1e887ec7dfbed735beedd476b21dcc91a79 (3.14 branch)
https://github.com/python/cpython/commit/c7979f3a819011a3222bd16e671264b1e34282cb (3.13 branch)
https://github.com/python/cpython/commit/a5bfd964c71de4e8dfec59d28060bff1402baa21 (3.12 branch)

Search for package or bug name: Reporting problems