# CVE-2026-112391: Pillow: PdfParser can recurse without limit in get_value() and linearize_page_tree()

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/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.58%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-19T20:40:36.285Z
- Modified: 2026-10-26T08:56:17.690Z
- Also known as: GHSA-254f-3936-288h, BIT-PILLOW-2026-112391
- 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 5.1.0 until 13.0.0, Pillow's PdfParser.get_value() can recurse without a limit while reading nested PDF objects. The parser follows attacker-controlled arrays and dictionaries when an existing PDF is opened for append. An attacker can provide a deeply nested PDF to an application that saves an image with PDF append enabled. This can raise an uncaught RecursionError or terminate the worker, causing denial of service. This issue is fixed in version 13.0.0.

(As written by CVE List.)

## Affected

- python-pillow Pillow: >= 5.1.0, < 13.0.0
- pillow (PyPI): from 5.1.0 before 13.0.0
- python pillow: from 5.1.0 before 13.0.0
- pillow (Bitnami): from 5.1.0 before 13.0.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-254f-3936-288h> (exploit, advisory, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/94cb11c44ff7345414da17ebfea1598a529ad9cd> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0> (article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112391> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-112391](https://www.cve.org/CVERecord?id=CVE-2026-112391), CVE Terms of Use, modified 2026-10-20
- GitHub Advisory Database: [GHSA-254f-3936-288h](https://github.com/advisories/GHSA-254f-3936-288h), CC-BY-4.0, modified 2026-10-26
- NVD: [CVE-2026-112391](https://nvd.nist.gov/vuln/detail/CVE-2026-112391), Public domain, modified 2026-10-23
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-112391](https://osv.dev/vulnerability/BIT-PILLOW-2026-112391), Apache-2.0, modified 2026-10-26

---

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