Skip to main content
HIGH

CVE-2025-8194

Tarfile infinite loop during parsing with negative member offset

CVSS v3

7.5

HIGH

EPSS Score

0.7 %

exploit probability, as of 2026-10-12

CISA KEV

No

known exploited

Exploitation

none

SSVC status

Get an alert for each new CVE published for cpython. Watch cpython in CVE Watch Free account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • pythonBitnamiall versions · fixed in 3.9.24and 2 other packages
  • platform-pythonAlmaLinux:8all versions · fixed in 3.6.8-71.el8_10.alma.1and 6 other packages
  • python-unversioned-commandAlmaLinux:10all versions · fixed in 3.12.9-2.el10_0.3
  • python3AlmaLinux:9all versions · fixed in 3.9.21-2.el9_6.2and 7 other packages
  • python3.11AlmaLinux:9all versions · fixed in 3.11.11-2.el9_6.2and 6 other packages
  • python3.11AlmaLinux:8all versions · fixed in 3.11.13-2.el8_10and 7 other packages
  • python3.12AlmaLinux:9all versions · fixed in 3.12.9-1.el9_6.2and 6 other packages
  • python3.12AlmaLinux:8all versions · fixed in 3.12.11-2.el8_10and 7 other packages

36 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-8194 Red Hat Product Security1,939 products fixed · 38 known affected

    cpython: Cpython infinite loop when parsing a tarfile

    python-PyMySQL.src (python36:3.6) as a component of Red Hat Enterprise Linux 8 · python-distro.src (python36:3.6) as a component of Red Hat Enterprise Linux 8 · python-docs.src (python36:3.6) as a component of Red Hat Enterprise Linux 8

  • RHSA-2025:19430 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)

  • RHSA-2025:19429 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)

  • RHSA-2025:19428 Red Hat Product Security2 products fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)

  • RHSA-2025:19427 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (AMD)

  • RHSA-2025:19426 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat Enterprise Linux AI 1.5 (NVIDIA)

29 more advisories

Full record on NVD

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

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2025-07-28
Last Modified
2026-04-15

Frequently asked questions

What is CVE-2025-8194?

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

Is CVE-2025-8194 actively exploited?

Active exploitation of CVE-2025-8194 has not been confirmed. Its EPSS score was 0.7% on 2026-10-12, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-8194?

CVE-2025-8194 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running cpython? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE Watch

No credit card required · 50 free checks/month · Free API key