CVE-2026-112894
8.7HighPublished Oct 19, 2026 · NVD status: Undergoing Analysis · AI triage by gemini-3.8-flash
High
0CVSS v4.010
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-407
What an attacker gets
Remote unauthenticated attackers can cause a denial of service by exhausting CPU on servers converting images to PDFs. They only need to upload a crafted multi-frame image, such as an APNG with an inflated frame count.
Root cause
PdfParser.next_object_id() repeatedly scans and rebuilds all previously allocated PDF object identifiers for each frame, causing quadratic runtime when saving multipage PDFs with save_all.
Affected versions
Pillow 5.1.0 through 12.x (fixed in 13.0.0)
CVSS v4.0 · CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Fix & remediation
Upgrade Pillow to version 13.0.0 or later. If you cannot upgrade immediately, reject or restrict image uploads with large frame counts before converting them to PDF.
$ pip install --upgrade 'Pillow>=13.0.0'AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- https://github.com/python-pillow/Pillow/commit/f6a852555f1a1bdff7781abf25f1a3b8bd6ce6cb
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-jg86-v3jv-hrpm
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-jg86-v3jv-hrpm
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1445107.3HighRemote attackers can manipulate user object attributes during signup to gain unauthorized access or escalate privileges. This requires no authentication and can be triggered by submitting crafted user_fields data.
- CVE-2026-1369888.1HighUnauthenticated attackers can upload and execute arbitrary PHP files on the server. This requires WooCommerce Bookings or Easy Booking to be active and a bookable product with an EPO file-upload element configured.
- CVE-2026-1051049.8CriticalUnauthenticated attackers can gain full administrative control over the device. They only need network access to the dongle's web interface to use the hard-coded credentials.
- CVE-2026-1051039.8CriticalAttackers can remotely control these dongles, including factory resetting them or changing admin passwords. They only need the device IMEI and serial number to hijack the connection to the manufacturer's C2 server.
- CVE-2026-1051028.8HighUnauthenticated attackers on the local network can download the full device configuration file. This exposes plaintext administrator credentials, WiFi passwords, and TR-069 credentials, allowing full device takeover.
- CVE-2026-1051018.8HighUnauthenticated attackers on the local network can execute arbitrary commands as root. This is possible via the web interface ping diagnostic function.