# CVE-2025-8194: Tarfile infinite loop during parsing with negative member offset

- Severity: High 7.5 (CVSS:3.1, scored by PSF) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.76%, higher than 56% of CVEs (2026-12-01)
- Published: 2025-07-28T18:42:44.847Z
- Modified: 2026-11-17T13:30:24.871Z
- Also known as: PSF-2025-11, BIT-LIBPYTHON-2025-8194, BIT-PYTHON-2025-8194, BIT-PYTHON-MIN-2025-8194
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: PSF

## 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

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.6; from 3.14.0a1 before 3.14.0rc2
- https://github.com/python/cpython: before 7040aa54f14676938970e10c5f74ea93cd56aa38; before cdae923ffe187d6ef916c0f665a31249619193fe; before c9d9f78feb1467e73fd29356c040bde1c104f29f; before fbc2a0ca9ac8aff6887f8ddf79b87b4510277227; before 57f5981d6260ed21266e0c26951b8564cc252bc2; before 73f03e4808206f71eb6b92c579505a220942ef19; before b4ec17488eedec36d3c05fec127df71c0071f6cb
- libpython (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.6
- python (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.6
- python-min (Bitnami): before 3.9.24; from 3.10.0 before 3.10.19; from 3.11.0 before 3.11.14; from 3.12.0 before 3.12.12; from 3.13.0 before 3.13.6

## Every score

- PSF: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/130577> (issue-tracking, report, web)
- <https://github.com/python/cpython/pull/137027> (patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/ZULLF3IZ726XP5EY7XJ7YIN3K5MDYR2D/> (advisory, vendor-advisory, web)
- <https://github.com/python/cpython/commit/7040aa54f14676938970e10c5f74ea93cd56aa38> (fix, patch, web)
- <https://github.com/python/cpython/commit/cdae923ffe187d6ef916c0f665a31249619193fe> (fix, patch, web)
- <https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1> (mitigation, web)
- <https://github.com/python/cpython/commit/c9d9f78feb1467e73fd29356c040bde1c104f29f> (fix, patch, web)
- <https://github.com/python/cpython/commit/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227> (fix, patch, web)
- <https://github.com/python/cpython/commit/57f5981d6260ed21266e0c26951b8564cc252bc2> (fix, patch, web)
- <https://github.com/python/cpython/commit/73f03e4808206f71eb6b92c579505a220942ef19> (fix, patch, web)
- <https://github.com/python/cpython/commit/b4ec17488eedec36d3c05fec127df71c0071f6cb> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2025/07/28/1> (web)
- <http://www.openwall.com/lists/oss-security/2025/07/28/2> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-8194> (web)
- <https://github.com/python/cpython/pull/57f5981d6260ed21266e0c26951b8564cc252bc2> (web)
- <https://github.com/python/cpython/pull/73f03e4808206f71eb6b92c579505a220942ef19> (web)
- <https://github.com/python/cpython/pull/b4ec17488eedec36d3c05fec127df71c0071f6cb> (web)
- <https://github.com/python/cpython/pull/c9d9f78feb1467e73fd29356c040bde1c104f29f> (web)
- <https://github.com/python/cpython/pull/cdae923ffe187d6ef916c0f665a31249619193fe> (web)
- <https://github.com/python/cpython/pull/fbc2a0ca9ac8aff6887f8ddf79b87b4510277227> (web)
- <https://github.com/python/cpython/pull/137169> (web)
- <https://github.com/python/cpython/pull/137170> (web)
- <https://github.com/python/cpython/pull/137171> (web)
- <https://github.com/python/cpython/pull/137172> (web)
- <https://github.com/python/cpython/pull/137644> (web)
- <https://github.com/python/cpython/pull/137645> (web)

## Sources

- CVE List: [CVE-2025-8194](https://www.cve.org/CVERecord?id=CVE-2025-8194), CVE Terms of Use, modified 2026-07-31
- Python Software Foundation: [PSF-2025-11](https://osv.dev/vulnerability/PSF-2025-11), CC-BY-4.0, modified 2025-10-09
- NVD: [CVE-2025-8194](https://nvd.nist.gov/vuln/detail/CVE-2025-8194), Public domain, modified 2026-07-31
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2025-8194](https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-8194), Apache-2.0, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-PYTHON-2025-8194](https://osv.dev/vulnerability/BIT-PYTHON-2025-8194), Apache-2.0, modified 2026-11-17
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2025-8194](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-8194), Apache-2.0, modified 2026-11-17

---

Page: https://cve.day/CVE-2025-8194 · Whole record: https://cve.day/CVE-2025-8194.json · Rebuilt by cve.day 2026-11-25T22:59:01.826Z
