Buffer Overflow in Pillow's JPEG Decoder Affects Python Imaging Library
CVE-2026-112403
Key Information:
- Vendor
Python-pillow
- Status
- Vendor
- CVE Published:
- 19 October 2026
Badges
What is CVE-2026-112403?
Pillow, a widely used Python imaging library, is susceptible to a buffer overflow vulnerability within its JPEG decoding functionality. This security flaw occurs in versions prior to 13.0.0, where the JPEG decoder fails to verify the actual output width and component count after a scaling request. An attacker can exploit this vulnerability by supplying a specially crafted JPEG image that can corrupt heap memory, potentially leading to application crashes or arbitrary code execution when functions like draft() or thumbnail() are utilized. The issue has been rectified in version 13.0.0 of Pillow, and users are advised to upgrade to mitigate their exposure to this vulnerability.
Affected Version(s)
Pillow < 13.0.0
Exploit Proof of Concept (PoC)
PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.
References
CVSS V4
Timeline
- ๐ก
Public PoC available
- ๐พ
Exploit known to exist
Vulnerability published
Vulnerability Reserved
