Skip to content
Fencer Vulns
high 7.5

CVE-2025-8194 json

Tarfile infinite loop during parsing with negative member offset

published 2025-07-28 15 mo ago modified 2026-07-31 3 mo ago also BIT-libpython-2025-8194 , BIT-python-2025-8194 , BIT-python-min-2025-8194 , EUVD-2025-22999

cvss
7.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 55%
public exploits
0
none known

Summary

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

Patch / fix

  • bitnami libpython 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6
  • bitnami python 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6
  • bitnami python-min 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6
  • Python Software Foundation CPython 3.9.24, 3.10.19, 3.11.14, 3.12.12, 3.13.6, 3.14.0rc2
  • pypy3 Debian 14 7.3.21+dfsg-1
  • python3.11 Debian 12 3.11.2-6+deb12u7
  • python3.13 Debian 13 3.13.5-2+deb13u1

debian advisories DEBIAN-CVE-2025-8194

  • python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.11
  • python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.8
  • python3.13 Ubuntu 25.10 3.13.6-1
  • python2.7 Ubuntu Pro 14.04 LTS 2.7.6-8ubuntu0.6+esm26
  • python2.7 Ubuntu Pro 16.04 LTS 2.7.12-1ubuntu0~16.04.18+esm17
  • python2.7 Ubuntu Pro 18.04 LTS 2.7.17-1~18.04ubuntu1.13+esm12
  • python2.7 Ubuntu Pro 22.04 LTS 2.7.18-13ubuntu1.5+esm7
  • python3.4 Ubuntu Pro 14.04 LTS 3.4.3-1ubuntu1~14.04.7+esm16

ubuntu advisories UBUNTU-CVE-2025-8194

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3.9 RHEL 9 3.9.21-2.el9_6.2
  • python3 RHEL 9 3.9.21-2.el9_6.2
  • python3-idle RHEL 9 3.9.21-2.el9_6.2
  • python3-libs RHEL 9 3.9.21-2.el9_6.2
  • python3-test RHEL 9 3.9.21-2.el9_6.2
  • python3-tkinter RHEL 9 3.9.21-2.el9_6.2
  • python-unversioned-command RHEL 9 3.9.21-2.el9_6.2
  • python3.11 RHEL 9 3.11.11-2.el9_6.2

red hat advisories RHSA-2025:16262RHSA-2025:16152RHSA-2025:16153RHSA-2025:16151RHSA-2025:16118RHSA-2025:16117

  • python313 SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.13.11-160000.1.1
  • python313-core SLES 16.0, Linux Micro 6.2, SLES for SAP applications 16.0 3.13.11-160000.1.1
  • python313-documentation SLES for SAP applications 16.0, SLES 16.0 3.13.11-160000.1.1
  • python313 SLE Module for Python 3 15 SP7 3.13.7-150700.4.23.1
  • python313-core SLE Module for Python 3 15 SP7 3.13.7-150700.4.23.1
  • python311 Linux Micro 6.1 3.11.13-slfo.1.1_2.1
  • python311-core Linux Micro 6.1 3.11.13-slfo.1.1_2.1
  • python311 Linux Micro 6.0 3.11.13-2.1

suse advisories SUSE-SU-2026:20125-1SUSE-SU-2026:20154-1SUSE-SU-2025:3706-1SUSE-SU-2025:20749-1SUSE-SU-2025:03032-1SUSE-SU-2025:20631-1

  • python313 openSUSE Leap 16.0 3.13.11-160000.1.1
  • python313-core openSUSE Leap 16.0 3.13.11-160000.1.1
  • python313-nogil openSUSE Leap 16.0 3.13.11-160000.1.1
  • python313-documentation openSUSE Leap 16.0 3.13.11-160000.1.1
  • python313-nogil-nogil-core openSUSE Leap 16.0 3.13.11-160000.1.1
  • python315 openSUSE Tumbleweed 3.15.0~a1-1.1
  • python311 openSUSE Tumbleweed 3.11.13-4.1
  • python312 openSUSE Tumbleweed 3.12.11-4.1

opensuse advisories openSUSE-SU-2026:20081-1openSUSE-SU-2025:15713-1openSUSE-SU-2025:15407-1openSUSE-SU-2025:15408-1openSUSE-SU-2025:15409-1openSUSE-SU-2025:15402-1

  • python-unversioned-command AlmaLinux 10 3.12.9-2.el10_0.3
  • python3.12 AlmaLinux 9 3.12.9-1.el9_6.2
  • python3.12-idle AlmaLinux 9 3.12.9-1.el9_6.2
  • python3.12-libs AlmaLinux 9 3.12.9-1.el9_6.2
  • python3.12-test AlmaLinux 9 3.12.9-1.el9_6.2
  • python3.12-tkinter AlmaLinux 9 3.12.9-1.el9_6.2
  • python3.11 AlmaLinux 9 3.11.11-2.el9_6.2
  • python3.11-idle AlmaLinux 9 3.11.11-2.el9_6.2

almalinux advisories ALSA-2025:14984ALSA-2025:15007ALSA-2025:15010ALSA-2025:15019ALSA-2025:14841ALSA-2025:14900

  • python3 Rocky Linux 8 3.6.8-71.el8_10.rocky.0
  • python3.12 Rocky Linux 9 3.12.9-1.el9_6.2
  • python3.11 Rocky Linux 9 3.11.11-2.el9_6.2
  • python3.9 Rocky Linux 9 3.9.21-2.el9_6.2
  • python3.12 Rocky Linux 10 3.12.9-2.el10_0.3
  • python3.12 Rocky Linux 8 3.12.11-2.el8_10
  • python3.11 Rocky Linux 8 3.11.13-2.el8_10
  • numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71

rocky linux advisories RLSA-2025:14560RLSA-2025:15007RLSA-2025:15010RLSA-2025:15019RLSA-2025:14984RLSA-2025:14546

  • python3 CBL-Mariner 2.0 3.9.19-15
  • python3 Azure Linux 3.0 3.12.9-4

azure linux advisories AZL-65984AZL-65987

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-8194 updated cvss 7.5

cpython: Cpython infinite loop when parsing a tarfile

  • Red Hat Enterprise Linux 8 scipy, python36, python-nose, python-wheel, python3-bson, python3-nose, +19 more
    affected: workaround, no fix available
  • Red Hat Enterprise Linux AI (RHEL AI) rhelai1/granite-3.1-8b-lab-v2.1, rhelai1/granite-3.1-8b-starter-v2.1, rhelai1/modelcar-granite-3-1-8b-lab-v2-1, rhelai1/modelcar-granite-3-1-8b-starter-v2-1
    affected: workaround, no fix planned “Will not fix”
  • Red Hat CodeReady Linux Builder EUS (v.9.4) python3 3.9.18-3.el9_4.9, python3.11 3.11.7-1.el9_4.9, python3.12 3.12.1-4.el9_4.7, python3-idle 3.9.18-3.el9_4.9, python3-test 3.9.18-3.el9_4.9, python3-tkinter 3.9.18-3.el9_4.9, +6 more
    fixed: vendor fix RHSA-2025:15800
  • Red Hat Discovery 2 discovery 2.2.1-1758555934
    fixed: vendor fix RHSA-2025:16524
  • Red Hat Enterprise Linux AI 1.5 rhelai1 1.5.4-1761043227, rhelai1 1.5.4-1761050413, rhelai1 1.5.4-1761060689, rhelai1 1.5.4-1761064179, rhelai1 1.5.4-1761073793, rhelai1 1.5.4-1761220254, +4 more
    fixed: vendor fix RHSA-2025:19427
  • Red Hat Enterprise Linux AppStream (v. 8) python3.11 3.11.13-2.el8_10, python3.12 3.12.11-2.el8_10, python3-idle 3.6.8-71.el8_10, python3-test 3.6.8-71.el8_10, platform-python 3.6.8-71.el8_10, python3-tkinter 3.6.8-71.el8_10, +61 more
    fixed: vendor fix RHSA-2025:14900
  • Red Hat Enterprise Linux AppStream (v. 9) python3.12 3.12.9-1.el9_6.2, python3.11 3.11.11-2.el9_6.2, python3-tkinter 3.9.21-2.el9_6.2, python3.12-libs 3.12.9-1.el9_6.2, python3.11-libs 3.11.11-2.el9_6.2, python3.12-tkinter 3.12.9-1.el9_6.2, +2 more
    fixed: vendor fix RHSA-2025:15019
  • Red Hat Enterprise Linux AppStream (v. 10) python3-tkinter 3.12.9-2.el10_0.3, python-unversioned-command 3.12.9-2.el10_0.3
    fixed: vendor fix RHSA-2025:14984
show 29 more
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) python3-idle 3.6.8-24.el8_2.4, python3-test 3.6.8-24.el8_2.4, platform-python 3.6.8-24.el8_2.4, python3-tkinter 3.6.8-24.el8_2.4
    fixed: vendor fix RHSA-2025:16262
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) python3-idle 3.6.8-39.el8_4.7, python3-test 3.6.8-39.el8_4.7, platform-python 3.6.8-39.el8_4.7, python3-tkinter 3.6.8-39.el8_4.7, scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, PyYAML 5.4.1-1.module+el8.4.0+10484+27ce8e03, +53 more
    fixed: vendor fix RHSA-2025:16078
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) python3-idle 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9, python3-tkinter 3.6.8-47.el8_6.9, scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, +53 more Red Hat Enterprise Linux AppStream E4S (v.8.6) python3-idle 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9, python3-tkinter 3.6.8-47.el8_6.9, scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, +53 more
    fixed: vendor fix RHSA-2025:16118
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) python3.11 3.11.2-2.el8_8.5, python3-idle 3.6.8-51.el8_8.11, python3-test 3.6.8-51.el8_8.11, python3.11-libs 3.11.2-2.el8_8.5, platform-python 3.6.8-51.el8_8.11, python3-tkinter 3.6.8-51.el8_8.11, +57 more
    fixed: vendor fix RHSA-2025:16062
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) python3-tkinter 3.9.10-4.el9_0.7, python-unversioned-command 3.9.10-4.el9_0.7
    fixed: vendor fix RHSA-2025:15724
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) python3.11 3.11.2-2.el9_2.7, python3.11-libs 3.11.2-2.el9_2.7, python3-tkinter 3.9.16-1.el9_2.10, python3.11-tkinter 3.11.2-2.el9_2.7, python-unversioned-command 3.9.16-1.el9_2.10
    fixed: vendor fix RHSA-2025:16152
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) python3.11 3.11.7-1.el9_4.9, python3.12 3.12.1-4.el9_4.7, python3-tkinter 3.9.18-3.el9_4.9, python3.11-libs 3.11.7-1.el9_4.9, python3.12-libs 3.12.1-4.el9_4.7, python3.11-tkinter 3.11.7-1.el9_4.9, +2 more
    fixed: vendor fix RHSA-2025:15800
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) python3-idle 3.6.8-39.el8_4.7, python3-test 3.6.8-39.el8_4.7, platform-python 3.6.8-39.el8_4.7, python3-tkinter 3.6.8-39.el8_4.7, scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, PyYAML 5.4.1-1.module+el8.4.0+10484+27ce8e03, +53 more
    fixed: vendor fix RHSA-2025:16078
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) python3-idle 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9, python3-tkinter 3.6.8-47.el8_6.9, scipy 1.5.4-3.module+el8.4.0+9822+20bf1249, numpy 1.19.4-3.module+el8.5.0+12204+54860423, +53 more
    fixed: vendor fix RHSA-2025:16118
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) python3.11 3.11.2-2.el8_8.5, python3-idle 3.6.8-51.el8_8.11, python3-test 3.6.8-51.el8_8.11, python3.11-libs 3.11.2-2.el8_8.5, platform-python 3.6.8-51.el8_8.11, python3-tkinter 3.6.8-51.el8_8.11, +57 more
    fixed: vendor fix RHSA-2025:16062
  • Red Hat Enterprise Linux BaseOS (v. 8) python3 3.6.8-71.el8_10, python3-libs 3.6.8-71.el8_10, python3-test 3.6.8-71.el8_10, platform-python 3.6.8-71.el8_10
    fixed: vendor fix RHSA-2025:14560
  • Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.21-2.el9_6.2, python3.9 3.9.21-2.el9_6.2, python3-libs 3.9.21-2.el9_6.2
    fixed: vendor fix RHSA-2025:15019
  • Red Hat Enterprise Linux BaseOS (v. 10) python3 3.12.9-2.el10_0.3, python3.12 3.12.9-2.el10_0.3, python3-libs 3.12.9-2.el10_0.3
    fixed: vendor fix RHSA-2025:14984
  • Red Hat Enterprise Linux BaseOS AUS (v. 8.2) python3 3.6.8-24.el8_2.4, python3-libs 3.6.8-24.el8_2.4, python3-test 3.6.8-24.el8_2.4, platform-python 3.6.8-24.el8_2.4
    fixed: vendor fix RHSA-2025:16262
  • Red Hat Enterprise Linux BaseOS AUS (v.8.4) python3 3.6.8-39.el8_4.7, python3-libs 3.6.8-39.el8_4.7, python3-test 3.6.8-39.el8_4.7, platform-python 3.6.8-39.el8_4.7
    fixed: vendor fix RHSA-2025:16151
  • Red Hat Enterprise Linux BaseOS AUS (v.8.6) python3 3.6.8-47.el8_6.9, python3-libs 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9 Red Hat Enterprise Linux BaseOS E4S (v.8.6) python3 3.6.8-47.el8_6.9, python3-libs 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9
    fixed: vendor fix RHSA-2025:15968
  • Red Hat Enterprise Linux BaseOS E4S (v.8.8) python3 3.6.8-51.el8_8.11, python3-libs 3.6.8-51.el8_8.11, python3-test 3.6.8-51.el8_8.11, platform-python 3.6.8-51.el8_8.11
    fixed: vendor fix RHSA-2025:16153
  • Red Hat Enterprise Linux BaseOS E4S (v.9.0) python3 3.9.10-4.el9_0.7, python3.9 3.9.10-4.el9_0.7, python3-libs 3.9.10-4.el9_0.7
    fixed: vendor fix RHSA-2025:15724
  • Red Hat Enterprise Linux BaseOS E4S (v.9.2) python3 3.9.16-1.el9_2.10, python3.9 3.9.16-1.el9_2.10, python3-libs 3.9.16-1.el9_2.10
    fixed: vendor fix RHSA-2025:16152
  • Red Hat Enterprise Linux BaseOS EUS (v.9.4) python3 3.9.18-3.el9_4.9, python3.9 3.9.18-3.el9_4.9, python3-libs 3.9.18-3.el9_4.9
    fixed: vendor fix RHSA-2025:15800
  • Red Hat Enterprise Linux BaseOS EUS EXTENSION (v.8.4) python3 3.6.8-39.el8_4.7, python3-libs 3.6.8-39.el8_4.7, python3-test 3.6.8-39.el8_4.7, platform-python 3.6.8-39.el8_4.7
    fixed: vendor fix RHSA-2025:16151
  • Red Hat Enterprise Linux BaseOS TUS (v.8.6) python3 3.6.8-47.el8_6.9, python3-libs 3.6.8-47.el8_6.9, python3-test 3.6.8-47.el8_6.9, platform-python 3.6.8-47.el8_6.9
    fixed: vendor fix RHSA-2025:15968
  • Red Hat Enterprise Linux BaseOS TUS (v.8.8) python3 3.6.8-51.el8_8.11, python3-libs 3.6.8-51.el8_8.11, python3-test 3.6.8-51.el8_8.11, platform-python 3.6.8-51.el8_8.11
    fixed: vendor fix RHSA-2025:16153
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) python3 3.9.21-2.el9_6.2, python3.12 3.12.9-1.el9_6.2, python3.11 3.11.11-2.el9_6.2, python3-idle 3.9.21-2.el9_6.2, python3-test 3.9.21-2.el9_6.2, python3-tkinter 3.9.21-2.el9_6.2, +6 more
    fixed: vendor fix RHSA-2025:15019
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) python3-idle 3.12.9-2.el10_0.3, python3-test 3.12.9-2.el10_0.3
    fixed: vendor fix RHSA-2025:14984
  • Red Hat Enterprise Linux CRB (v. 8) python3.11 3.11.13-2.el8_10, python3.12 3.12.11-2.el8_10, python3.11-idle 3.11.13-2.el8_10, python3.11-test 3.11.13-2.el8_10, python3.12-idle 3.12.11-2.el8_10, python3.12-test 3.12.11-2.el8_10, +24 more
    fixed: vendor fix RHSA-2025:14900
  • Red Hat Enterprise Linux Server (v. 7 ELS) python3 3.6.8-21.el7_9.2, python3-libs 3.6.8-21.el7_9.2 Red Hat Enterprise Linux Server Optional (v. 7 ELS) python3 3.6.8-21.el7_9.2, python3-idle 3.6.8-21.el7_9.2, python3-test 3.6.8-21.el7_9.2, python3-tkinter 3.6.8-21.el7_9.2
    fixed: vendor fix RHSA-2025:16117
  • Red Hat Discovery 2 discovery 2.2.0-1758132611
    not affected: vulnerable code not present
  • Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools
    not affected: vulnerable code not in execute path

1 more not affected in the full advisory

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
15 mo ago

Exploit prediction

0.76% chance of exploitation in the next 30 days, higher than 55% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected packages

ecosystem package affected fixed in
bitnami libpython
<3.9.24
>=3.10.0, <3.10.19
>=3.11.0, <3.11.14
>=3.12.0, <3.12.12
>=3.13.0, <3.13.6
3.9.24
3.10.19
3.11.14
3.12.12
3.13.6
bitnami python
<3.9.24
>=3.10.0, <3.10.19
>=3.11.0, <3.11.14
>=3.12.0, <3.12.12
>=3.13.0, <3.13.6
3.9.24
3.10.19
3.11.14
3.12.12
3.13.6
bitnami python-min
<3.9.24
>=3.10.0, <3.10.19
>=3.11.0, <3.11.14
>=3.12.0, <3.12.12
>=3.13.0, <3.13.6
3.9.24
3.10.19
3.11.14
3.12.12
3.13.6

Affected products

  • Python Software Foundation CPython

Classification

Weakness
  • CWE-835 Loop with Unreachable Exit Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.