SecurityContext

CVE-2025-8194: CPython tarfile - Denial of Service

  • Cve: CVE-2025-8194
  • Name: CPython tarfile - Denial of Service
  • 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
  • Impact: Attackers can cause infinite loop and deadlock, leading to denial of service during tar archive processing.
  • Remediation: Apply the provided patch to validate offsets or update to the latest CPython version containing the fix.
  • Vulnerability type: denial_of_service
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00761
  • Epss percentile: 0.56059
  • Assignee: [email protected]
  • Published at: 2025-07-28T19:15:43Z
  • Age in days: 484
  • Modified at: 2026-07-31T14:16:45Z
  • Patch available: yes
  • References total: 13
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-8194
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-835Loop with Unreachable Exit Condition

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1
https://github.com/python/cpython/commit/57f5981d6260ed21266e0c26951b8564cc252bc2
https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38
https://github.com/python/cpython/commit/73f03e4808206f71eb6b92c579505a220942ef19
https://github.com/python/cpython/commit/b4ec17488eedec36d3c05fec127df71c0071f6cb
https://github.com/python/cpython/commit/c9d9f78feb1467e73fd29356c040bde1c104f29f
https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe
https://github.com/python/cpython/commit/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227
https://github.com/python/cpython/issues/130577
https://github.com/python/cpython/pull/137027

Products

ProductAffectedPlatform boundSourcesUrl
python:python>= 3.14.0a1, < 3.14.0rc2; >= 3.13.0, < 3.13.6; >= 3.12.0, < 3.12.12; >= 3.11.0, < 3.11.14; >= 3.10.0, < 3.10.19; < 3.9.24nocna_alias/v1/products/python/python

Projects

RepositoryLink kindsIndexedUrl
python/cpythoncommit, fix, issues, pullyes/v1/repositories/python/cpython

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 5115604
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports