Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-112403

Pillow: Heap buffer overflow in ImagingJpegDecode
Back to all
CVE

CVE-2026-112403

Pillow: Heap buffer overflow in ImagingJpegDecode

Pillow is a Python imaging library. Prior to 13.0.0, Pillow's JPEG decoder can write a full-width scanline into a buffer sized for a requested draft scale. ImagingJpegDecode does not verify libjpeg's actual output width and component count after scaling is requested, and an 8-bit lossless SOF3 JPEG decoded by a build linked to libjpeg-turbo 3.x can ignore the requested downscaling geometry. An attacker can supply such a JPEG to an application that uses draft() or thumbnail() to request downscaling. This can corrupt heap memory, crash the process, or potentially allow code execution. Older libjpeg-turbo 2.x and IJG builds reject the SOF3 input. This issue is fixed in version 13.0.0.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
9.2
-
4.0
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/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
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/python-pillow/Pillow/releases/tag/13.0.0, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112403.json, https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782, https://nvd.nist.gov/vuln/detail/CVE-2026-112403, https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.00777%
EPSS Percentile
0.5235%
Introduced Version
0
Fix Available
242a059aedc1935097d9aa1dc3f099750467ba75,12.1.1-2ubuntu1.5,5.1.0-1ubuntu0.8+esm3,10.2.0-1ubuntu1.5,2.77.0-r2,2.77.0-r5,0.10.4-r1,7.6.1_git20261016-r1,0.21.0-r9,0.21.0-r3,2.17.2-r7,1.23.2-r2,3.17.2-r2,3.17.2-r3,0.5.0_rc0_git20260729-r6,0.7.0-r11,0.7.0_git20260911-r5,4.7.3-r1,0.12.3-r6,25.5.2_git20260914-r12,25.5.2_git20260914-r10,25.7.3_git20261020-r1,25.7.3_git20261019-r1,9.18-r6,9.18-r8,13.0.0-r0,2.14.1-r2,5.0.0-r45,6.0.0-r21,6.1.0-r16,6.1.0-r11,2.21.0-r13

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading