# CVE-2026-96642: Pillow: TarIO negative size field causes infinite CPU-spin loop

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- 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.40%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-21T20:49:56.989Z
- Modified: 2026-10-30T17:17:32.240Z
- Also known as: GHSA-3j72-p6qg-6xp7, BIT-PILLOW-2026-96642, PYSEC-2026-4341
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. Prior to 13.0.0, the TarIO initializer in src/PIL/TarIO.py accepts a negative octal member size and computes a backward seek that returns to the same 512-byte header. When the requested member name does not match, the parser repeatedly reads that header, consumes a full CPU core, and never returns. TarIO is reached only when an application directly uses PIL.TarIO.TarIO rather than the default Image.open() path. This issue is fixed in version 13.0.0.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 13.0.0
- pillow (PyPI): before 13.0.0
- python pillow: before 13.0.0
- pillow (Bitnami): before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-3j72-p6qg-6xp7> (exploit, advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/10012> (issue-tracking, report, web)
- <https://github.com/python-pillow/Pillow/commit/19b695fdcc5eddc37374e2b1645fc4185edaf71d> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-96642> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-96642](https://www.cve.org/CVERecord?id=CVE-2026-96642), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-3j72-p6qg-6xp7](https://github.com/advisories/GHSA-3j72-p6qg-6xp7), CC-BY-4.0, modified 2026-10-29
- NVD: [CVE-2026-96642](https://nvd.nist.gov/vuln/detail/CVE-2026-96642), Public domain, modified 2026-10-30
- PyPA Advisory Database: [PYSEC-2026-4341](https://osv.dev/vulnerability/PYSEC-2026-4341), CC-BY-4.0, modified 2026-10-29
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-96642](https://osv.dev/vulnerability/BIT-PILLOW-2026-96642), Apache-2.0, modified 2026-10-29

---

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