Skip to content

CVE-2025-8194 Tarfile infinite loop during parsing with negative member offset

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

Description

There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives.

This vulnerability can be mitigated by including the following patch after importing the “tarfile” module:  https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1

Upgrade path

12 packages: 9 fixed, 1 partially fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
debian/pypy3(Debian 12) = 7.3.11+dfsg-2; = 7.3.11+dfsg-2+deb12u1; = 7.3.11+dfsg-2+deb12u2; = 7.3.11+dfsg-2+deb12u3 +29 more 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
cbl-mariner python3(CBL-Mariner 2.0) < 3.9.19-15; All versions 3.9.19-15 Partially fixed
azure linux python3(Azure Linux 3.0) < 3.12.9-4 3.12.9-4 Fixed
debian/pypy3(Debian 14) < 7.3.21+dfsg-1; = 7.3.19+dfsg-2; = 7.3.20+dfsg-1; = 7.3.20+dfsg-2 +2 more 7.3.21+dfsg-1 Fixed
debian/python3.11(Debian 12) < 3.11.2-6+deb12u7; = 3.11.2-6; = 3.11.2-6+deb12u1; = 3.11.2-6+deb12u2 +4 more 3.11.2-6+deb12u7 Fixed
debian/python3.13(Debian 13) < 3.13.5-2+deb13u1; = 3.13.5-2 3.13.5-2+deb13u1 Fixed
Python Software Foundation CPython < 3.9.24; >= 3.10.0, < 3.10.19; >= 3.11.0, < 3.11.14; >= 3.12.0, < 3.12.12 +2 more 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6, 3.14.0rc2 Fixed
ubuntu/python2.7(Ubuntu 22.04) < 2.7.18-13ubuntu1.5+esm7 2.7.18-13ubuntu1.5+esm7 Fixed
ubuntu/python3.10(Ubuntu 22.04) < 3.10.12-1~22.04.11 3.10.12-1~22.04.11 Fixed
ubuntu/python3.11(Ubuntu 22.04) < 3.11.0~rc1-1~22.04.1~esm5 3.11.0~rc1-1~22.04.1~esm5 Fixed
ubuntu/python3.12(Ubuntu 24.04) < 3.12.3-1ubuntu0.8 3.12.3-1ubuntu0.8 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) < 3.12.9-4 3.12.9-4
cbl-mariner python3(CBL-Mariner:2.0) < 3.9.19-15 3.9.19-15
debian/pypy3(Debian:12) All versions No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u1 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u2 No fix listed
debian/pypy3(Debian:12) = 7.3.11+dfsg-2+deb12u3 No fix listed
debian/pypy3(Debian:12) = 7.3.12+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc1+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.12~rc2+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.13+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.14+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.15+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.16+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.17+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.18+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.19+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-2 No fix listed
Show 52 more
ProductAffected versionsFixed in
debian/pypy3(Debian:12) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.20+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-3 No fix listed
debian/pypy3(Debian:12) = 7.3.21+dfsg-4 No fix listed
debian/pypy3(Debian:12) = 7.3.22+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 7.3.23+dfsg-2 No fix listed
debian/pypy3(Debian:12) = 8.0.0+dfsg-1 No fix listed
debian/pypy3(Debian:12) = 8.0.1+dfsg-1 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.21+dfsg-1 7.3.21+dfsg-1
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/pypy3(Debian:14) = 7.3.20+dfsg-2 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-3 No fix listed
debian/pypy3(Debian:14) = 7.3.20+dfsg-4 No fix listed
debian/python3.11(Debian:12) < 3.11.2-6+deb12u7 3.11.2-6+deb12u7
debian/python3.11(Debian:12) = 3.11.2-6 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u1 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u2 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u3 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u4 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u5 No fix listed
debian/python3.11(Debian:12) = 3.11.2-6+deb12u6 No fix listed
debian/python3.13(Debian:13) < 3.13.5-2+deb13u1 3.13.5-2+deb13u1
debian/python3.13(Debian:13) = 3.13.5-2 No fix listed
Python Software Foundation CPython < 3.9.24 3.9.24
Python Software Foundation CPython >= 3.10.0, < 3.10.19 3.10.19
Python Software Foundation CPython >= 3.11.0, < 3.11.14 3.11.14
Python Software Foundation CPython >= 3.12.0, < 3.12.12 3.12.12
Python Software Foundation CPython >= 3.13.0, < 3.13.6 3.13.6
Python Software Foundation CPython >= 3.14.0a1, < 3.14.0rc2 3.14.0rc2
ubuntu/python3.10(Ubuntu:22.04) < 3.10.12-1~22.04.11 3.10.12-1~22.04.11
ubuntu/python2.7(Ubuntu:22.04) < 2.7.18-13ubuntu1.5+esm7 2.7.18-13ubuntu1.5+esm7
ubuntu/python3.11(Ubuntu:22.04) < 3.11.0~rc1-1~22.04.1~esm5 3.11.0~rc1-1~22.04.1~esm5
ubuntu/python3.12(Ubuntu:24.04) < 3.12.3-1ubuntu0.8 3.12.3-1ubuntu0.8

References