CVE-2026-112403
Description
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.
Weakness
- CWE-122: Heap-based Buffer Overflow
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2026-10-22 |
Timeline
- 2026-10-19Published by the CNA21:22 UTC
- 2026-10-20GitHub advisory published (GHSA-8g5g-8vmr-9782)1 day after publication
- 2026-10-22CISA SSVC decision recorded3 days after publication
Exploit and advisory records
GitHub advisory GHSA-8g5g-8vmr-9782, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI pillow | before 13.0.0 | 13.0.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| python pillow | before 13.0.0fixed in 13.0.0 | 13.0.0 |
References
- https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-112403'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-112403'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-112403'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-112403'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).