CVE-2026-112397
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-787
What an attacker gets
Remote attackers can crash applications processing untrusted images by triggering an out-of-bounds memory write. They just need to submit a specially crafted zero-width PPM or PGM image that gets passed to Pillow's morphology routine.
Root cause
ImageMorph.MorphOp.apply() writes to outrow[width - 1] without validating against zero-width images, causing an out-of-bounds write before the row buffer.
Affected versions
Pillow versions prior to 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 higher. If upgrading is delayed, reject or sanitize zero-width PPM and PGM images before applying ImageMorph operations.
$ 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. Prior to 13.0.0, Pillow's ImageMorph.MorphOp.apply() can access memory before a row buffer for a zero-width image. PPM and PGM input can create an image with width zero, and the native morphology routine indexes outrow[width - 1] without rejecting that geometry. An attacker can supply such an image to an application that applies a morphology operation. This can crash the process. This issue is fixed in version 13.0.0.
References
- https://github.com/python-pillow/Pillow/commit/18f7c0dfee93063c51db6ed0ca8c4da2999dcb64
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-58r4-6rv3-gfh8
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-58r4-6rv3-gfh8
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.