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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 3.10.19, 3.11.14, 3.12.12, 3.13.6, 3.14.0rc2, 3.9.24 (CNA); fix release not confirmed
- Status: published
- Published: 2025-07-28 · Modified: 2026-07-31
- Aliases: SUSE-SU-2025:02701-1, SUSE-SU-2025:02787-1, SUSE-SU-2025:02982-1, SUSE-SU-2025:02983-1, SUSE-SU-2025:02984-1, SUSE-SU-2025:03032-1, SUSE-SU-2025:20631-1, SUSE-SU-2025:20749-1, RHSA-2025:14546, RHSA-2025:14560, RHSA-2025:14841, RHSA-2025:14984, RHSA-2025:15007, RHSA-2025:15010, RHSA-2025:15019, RHSA-2025:15348, RHSA-2025:15724, RHSA-2025:15800, RHSA-2025:15968, RHSA-2025:16012, RHSA-2025:16016, RHSA-2025:16031, RHSA-2025:16062, RHSA-2025:16078, RHSA-2025:16117, RHSA-2025:16118, RHSA-2025:16151, RHSA-2025:16152, RHSA-2025:16153, RHSA-2025:16262, UBUNTU-CVE-2025-8194, USN-7710-2, DEBIAN-CVE-2025-8194, CGA-68p7-mpw5-jv6r, CGA-8685-g7pq-mm2g, CGA-8mhj-vvxg-49q9, CGA-g96r-56xg-qjrh, CGA-gpx3-xp28-32xw, CGA-h5mr-vfp3-hqw6, CGA-j3w5-3rfq-jx9c, CGA-j7fg-3gp6-qq35, SUSE-SU-2025:02700-1, SUSE-SU-2025:02948-1, openSUSE-SU-2025:15402-1, openSUSE-SU-2025:15403-1, openSUSE-SU-2025:15404-1, openSUSE-SU-2025:15407-1, openSUSE-SU-2025:15408-1, openSUSE-SU-2025:15409-1, CGA-5p29-vw55-3g6w, CGA-q4cj-38h5-5hhw
- Record: https://cvemate.com/vulnerability/CVE-2025-8194 · JSON: https://cvemate.com/vulnerability/CVE-2025-8194/json

## Description

```text
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
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.761%, percentile 56.685%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 170)

- chainguard python-3.10 (Chainguard): \< 3.10.19-r0
- chainguard python-3.11 (Chainguard): \< 3.11.13-r4
- chainguard python-3.12 (Chainguard): \< 3.12.11-r6
- chainguard python-3.13 (Chainguard): \< 3.13.6-r0
- chainguard python-3.9 (Chainguard): \< 3.9.25-r0
- wolfi python-3.10 (Wolfi): \< 3.10.19-r0
- wolfi python-3.11 (Wolfi): \< 3.11.13-r4
- wolfi python-3.12 (Wolfi): \< 3.12.11-r6
- wolfi python-3.13 (Wolfi): \< 3.13.6-r0
- debian pypy3 (Debian): All versions (No fix recorded) \| \< 7.3.21+dfsg-1
- debian python3.11 (Debian): \< 3.11.2-6+deb12u7
- debian python3.13 (Debian): \< 3.13.6-1 \| \< 3.13.5-2+deb13u1
- ubuntu python2.7 (Ubuntu): \< 2.7.18-1~20.04.7+esm8 \| \< 2.7.6-8ubuntu0.6+esm26 \| \< 2.7.12-1ubuntu0~16.04.18+esm17 \| \< 2.7.17-1~18.04ubuntu1.13+esm12 \| \< 2.7.18-13ubuntu1.5+esm7
- ubuntu python3.10 (Ubuntu): \< 3.10.12-1~22.04.11
- ubuntu python3.11 (Ubuntu): \< 3.11.0~rc1-1~22.04.1~esm5
- ubuntu python3.12 (Ubuntu): \< 3.12.3-1ubuntu0.8
- ubuntu python3.13 (Ubuntu): \< 3.13.6-1
- ubuntu python3.4 (Ubuntu): \< 3.4.3-1ubuntu1~14.04.7+esm16
- ubuntu python3.5 (Ubuntu): \< 3.5.2-2ubuntu0~16.04.4~14.04.1+esm7 \| \< 3.5.2-2ubuntu0~16.04.13+esm19
- ubuntu python3.6 (Ubuntu): \< 3.6.9-1~18.04ubuntu1.13+esm6

## References (first 20 of 80)

- <https://github.com/python/cpython/issues/130577>
- <https://github.com/python/cpython/pull/137027>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/ZULLF3IZ726XP5EY7XJ7YIN3K5MDYR2D/>
- <https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38>
- <https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe>
- <https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1>
- <https://github.com/python/cpython/commit/c9d9f78feb1467e73fd29356c040bde1c104f29f>
- <https://github.com/python/cpython/commit/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227>
- <https://github.com/python/cpython/commit/57f5981d6260ed21266e0c26951b8564cc252bc2>
- <https://github.com/python/cpython/commit/73f03e4808206f71eb6b92c579505a220942ef19>
- <https://github.com/python/cpython/commit/b4ec17488eedec36d3c05fec127df71c0071f6cb>
- <http://www.openwall.com/lists/oss-security/2025/07/28/1>
- <http://www.openwall.com/lists/oss-security/2025/07/28/2>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502701-1/>
- <https://bugzilla.suse.com/1247249>
- <https://www.suse.com/security/cve/CVE-2025-8194>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502787-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502982-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502983-1/>
- <https://www.suse.com/support/update/announcement/2025/suse-su-202502984-1/>

---

Data as of 2026-12-05T05:06:17.357Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
