CVE-2025-8194 Details
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
A vulnerability exists in the CPython 'tarfile' module, specifically within the 'TarFile' extraction and entry enumeration APIs. The issue arises because the tar implementation processes archives with negative offsets without any error checking. This flaw can lead to an infinite loop and deadlock when parsing maliciously crafted tar archives. The vulnerability affects several versions of CPython, including 3.12.8, 3.13.2, and the latest 3.14 release.
Users can apply a patch that modifies the '_block' method of 'tarfile.TarInfo' to include validation for offset values. This patch should be applied after importing the 'tarfile' module.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 28, 2025CISA-ADP
Assessed Jul 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-835 | Loop with Unreachable Exit Condition ('Infinite Loop') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Python CPython tarfile | All versions |
CPE
Remediation
| |
Change History
10 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 31, 2026 | CVE Modified | [email protected] |
| Jul 30, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Sep 24, 2025 | CVE Modified | [email protected] |
| Aug 7, 2025 | CVE Modified | [email protected] |
| Jul 29, 2025 | CVE Modified | [email protected] |
| Jul 28, 2025 | CVE Modified | [email protected] |
| Jul 28, 2025 | New CVE Received | [email protected] |
Volerion