# CVE-2026-59203: Pillow EpsImagePlugin negative %%BeginBinary byte count causes infinite loop denial of service

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- 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.49%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-14T15:43:58.333Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-pg7v-jwj7-p798, BIT-PILLOW-2026-59203, PYSEC-2026-3452
- Weaknesses: CWE-835
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Pillow is a Python imaging library. From 12.0.0 through 12.2.0, Pillow's EPS parser in PIL/EpsImagePlugin.py accepts a negative byte count in the %%BeginBinary directive, allowing a crafted EPS file to cause Image.open() to seek backwards to the same directive and parse it repeatedly in an infinite loop. This issue is fixed in version 12.3.0.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 12.0.0, < 12.3.0
- pillow (PyPI): from 12.0.0 before 12.3.0
- python pillow: from 12.0.0 before 12.3.0
- pillow (Bitnami): from 12.0.0 before 12.3.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: 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`
- PyPA Advisory Database: 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-pillow/Pillow/security/advisories/GHSA-pg7v-jwj7-p798> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9708> (fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/03992618118b4a76b6163cd72ab5ecd684133b83> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59203> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-3452.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

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

---

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