7.5
HIGH
CVE-2025-8194
Apache CPython TarFile Infinite Loop Deadlock
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

INFO

Published Date :

July 28, 2025, 7:15 p.m.

Last Modified :

July 29, 2025, 2:15 p.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2025-8194 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Python python

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-8194 vulnerability anywhere in the article.

  • Daily CyberSecurity
Python Tarfile Vulnerability (CVE-2025-8194) Allows DoS via Malicious Archives

A newly discovered vulnerability in Python’s tarfile module, identified as CVE-2025-8194, threatens to hang applications that process malicious archive files—triggering infinite loops and potential de ... Read more

Published Date: Jul 29, 2025 (3 days, 1 hour ago)
  • Daily CyberSecurity
Linux Kernel 6.16 Released: Boosting Hardware Support, Filesystems, & Networking

Version 6.16 of the Linux Kernel has now been officially released. As this is not a Long-Term Support (LTS) release, its lifecycle is relatively short, making it more suitable for rolling installation ... Read more

Published Date: Jul 29, 2025 (3 days, 1 hour ago)
  • Daily CyberSecurity
PyPI Warns of Sophisticated Phishing Campaign Targeting Python Developers

The Python Package Index (PyPI), the central repository for Python developers around the world, has issued a security warning regarding an ongoing phishing attack aimed at tricking project maintainers ... Read more

Published Date: Jul 29, 2025 (3 days, 3 hours ago)
  • Daily CyberSecurity
QWINS LTD, The Suspected Bulletproof Hosting Provider Fueling Global Malware Campaigns

In a deep-dive into the infrastructure powering some of today’s most prevalent malware campaigns, security researcher Vasilis Orlof uncovers a suspected bulletproof hosting provider operating under th ... Read more

Published Date: Jul 29, 2025 (3 days, 3 hours ago)

The following table lists the changes that have been made to the CVE-2025-8194 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    Jul. 29, 2025

    Action Type Old Value New Value
    Changed 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: import tarfile def _block_patched(self, count):     if count < 0: # pragma: no cover         raise tarfile.InvalidHeaderError("invalid offset")     return _block_patched._orig_block(self, count) _block_patched._orig_block = tarfile.TarInfo._block tarfile.TarInfo._block = _block_patched 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
    Added Reference https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
  • CVE Modified by [email protected]

    Jul. 28, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38
    Added Reference https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe
  • New CVE Received by [email protected]

    Jul. 28, 2025

    Action Type Old Value New Value
    Added 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: import tarfile def _block_patched(self, count):     if count < 0: # pragma: no cover         raise tarfile.InvalidHeaderError("invalid offset")     return _block_patched._orig_block(self, count) _block_patched._orig_block = tarfile.TarInfo._block tarfile.TarInfo._block = _block_patched
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
    Added CWE CWE-835
    Added Reference https://github.com/python/cpython/issues/130577
    Added Reference https://github.com/python/cpython/pull/137027
    Added Reference https://mail.python.org/archives/list/[email protected]/thread/ZULLF3IZ726XP5EY7XJ7YIN3K5MDYR2D/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-8194 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2025-8194 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability