High severity7.5NVD Advisory· Published Oct 19, 2026· Updated Oct 27, 2026
CVE-2026-112894
CVE-2026-112894
Description
Pillow is a Python imaging library. From 5.1.0 until 13.0.0, Pillow takes quadratic time to reserve PDF object identifiers when saving many frames with save_all enabled. PdfParser.next_object_id() repeatedly rebuilds and scans all previously reserved identifiers for every object. An attacker can supply a multi-frame image, including a small APNG with a large declared frame count, to an application that converts it to a multipage PDF. This can consume excessive CPU and deny service. This issue is fixed in version 13.0.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
PillowPyPI | >= 5.1.0, < 13.0.0 | 13.0.0 |
Affected products
10cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*range: >=5.1.0,<13.0.0
- (no CPE)range: 5.1.0 - 13.0.0
- osv-coords8 versionspkg:bitnami/pillowpkg:rpm/almalinux/python3-pillowpkg:rpm/almalinux/python3-pillow-develpkg:rpm/almalinux/python3-pillow-docpkg:rpm/almalinux/python3-pillow-tkpkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Leap%2016.1pkg:rpm/opensuse/python-Pillow&distro=openSUSE%20Tumbleweed
>= 5.1.0, < 13.0.0+ 7 more
- (no CPE)range: >= 5.1.0, < 13.0.0
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 5.1.1-33.el8_10
- (no CPE)range: < 11.3.0-160000.9.1
- (no CPE)range: < 11.3.0-160100.3.1
- (no CPE)range: < 13.0.0-1.1
Patches
Vulnerability mechanics
References
5- github.com/python-pillow/Pillow/commit/f6a852555f1a1bdff7781abf25f1a3b8bd6ce6cbnvdPatchWEB
- github.com/python-pillow/Pillow/security/advisories/GHSA-jg86-v3jv-hrpmnvdExploitPatchVendor AdvisoryWEB
- github.com/advisories/GHSA-jg86-v3jv-hrpmghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-112894ghsaADVISORY
- github.com/python-pillow/Pillow/releases/tag/13.0.0nvdRelease NotesWEB
News mentions
1- Pillow: 25 Vulnerabilities Disclosed Together, Ranging from Critical to MediumVypr Intelligence · Oct 19, 2026