Skip to content

CVE-2025-4435 Tarfile extracts filtered members when errorlevel=0

HighCVSS 7.5 EPSS 0.62%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial
Technology
UbuntuDebian

Description

When using a TarFile.errorlevel = 0 and extracting with a filter the documented behavior is that any filtered members would be skipped and not extracted. However the actual behavior of TarFile.errorlevel = 0 in affected versions is that the member would still be extracted and not skipped.

Upgrade path

8 packages: 4 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
azure linux python3(Azure Linux 3.0) All versions No fix listed No fix yet
cbl-mariner python3(CBL-Mariner 2.0) All versions No fix listed No fix yet
debian/pypy3(Debian 13) = 7.3.19+dfsg-2; = 7.3.20+dfsg-1; = 7.3.20+dfsg-2; = 7.3.20+dfsg-3 +11 more No fix listed No fix yet
Microsoft cbl2 python3 3.9.19-19 All versions No fix listed No fix yet
debian/pypy3(Debian 14) < 7.3.20+dfsg-2; = 7.3.19+dfsg-2; = 7.3.20+dfsg-1 7.3.20+dfsg-2 Fixed
debian/python3.13(Debian 13) < 3.13.4-1 3.13.4-1 Fixed
Python Software Foundation CPython < 3.9.23; >= 3.10.0, < 3.10.18; >= 3.11.0, < 3.11.13; >= 3.12.0, < 3.12.11 +2 more 3.9.23, 3.10.18, 3.11.13, 3.12.11, 3.13.4, 3.14.0b3 Fixed
ubuntu/python3.12(Ubuntu 24.04) < 3.12.3-1ubuntu0.7 3.12.3-1ubuntu0.7 Fixed

Affected products

ProductAffected versionsFixed in
cbl-mariner python3(CBL-Mariner:2.0) All versions No fix listed
azure linux python3(Azure Linux:3.0) All versions No fix listed
Microsoft cbl2 python3 3.9.19-19 All versions No fix listed
debian/pypy3(Debian:13) All versions No fix listed
debian/pypy3(Debian:13) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:13) = 7.3.20+dfsg-4 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-3 No fix listed
debian/pypy3(Debian:13) = 7.3.21+dfsg-4 No fix listed
debian/pypy3(Debian:13) = 7.3.22+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.23+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 7.3.23+dfsg-2 No fix listed
debian/pypy3(Debian:13) = 8.0.0+dfsg-1 No fix listed
debian/pypy3(Debian:13) = 8.0.1+dfsg-1 No fix listed
debian/pypy3(Debian:14) < 7.3.20+dfsg-2 7.3.20+dfsg-2
debian/pypy3(Debian:14) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-1 No fix listed
debian/python3.13(Debian:13) < 3.13.4-1 3.13.4-1
Python Software Foundation CPython < 3.9.23 3.9.23
Python Software Foundation CPython >= 3.10.0, < 3.10.18 3.10.18
Python Software Foundation CPython >= 3.11.0, < 3.11.13 3.11.13
Show 4 more
ProductAffected versionsFixed in
Python Software Foundation CPython >= 3.12.0, < 3.12.11 3.12.11
Python Software Foundation CPython >= 3.13.0, < 3.13.4 3.13.4
Python Software Foundation CPython >= 3.14.0a1, < 3.14.0b3 3.14.0b3
ubuntu/python3.12(Ubuntu:24.04) < 3.12.3-1ubuntu0.7 3.12.3-1ubuntu0.7

References