# CVE-2026-42310: Pillow: PDF Parsing Trailer Infinite Loop (DoS)

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-05-04T20:19:30.000Z
- Modified: 2026-09-10T03:50:55.309Z
- Also known as: GHSA-r73j-pqj5-w3x7, BIT-PILLOW-2026-42310, PYSEC-2026-2874
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. From version 4.2.0 to before version 12.2.0, an attacker can supply a malicious PDF that causes the process to hang indefinitely, consuming 100% CPU and making the application unresponsive. This issue has been patched in version 12.2.0.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 4.2.0, < 12.2.0
- pillow (PyPI): from 4.2.0 before 12.2.0
- python pillow: from 4.2.0 before 12.2.0
- pillow (Bitnami): from 4.2.0 before 12.2.0

## Every score

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

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-r73j-pqj5-w3x7> (advisory, patch, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9519> (fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/3bf614e4b8615d0ce1d5039efaf6db447fe7c468> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.2.0> (article, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42310> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://pypi.org/project/pillow> (package)
- <https://github.com/advisories/GHSA-r73j-pqj5-w3x7> (advisory)

## Sources

- CVE List: [CVE-2026-42310](https://www.cve.org/CVERecord?id=CVE-2026-42310), CVE Terms of Use, modified 2026-05-12
- GitHub Advisory Database: [GHSA-r73j-pqj5-w3x7](https://github.com/advisories/GHSA-r73j-pqj5-w3x7), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-42310](https://nvd.nist.gov/vuln/detail/CVE-2026-42310), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-2874](https://osv.dev/vulnerability/PYSEC-2026-2874), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-42310](https://osv.dev/vulnerability/BIT-PILLOW-2026-42310), Apache-2.0, modified 2026-09-08

---

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