{"id":"CVE-2026-112403","published":"2026-10-19T21:22:21Z","modified":"2026-10-22T21:08:58Z","title":"Pillow: Heap buffer overflow in ImagingJpegDecode","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.2,"severity":"CRITICAL","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01711,"percentile":0.77949,"provenance":"source"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-8g5g-8vmr-9782","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/242a059aedc1935097d9aa1dc3f099750467ba75","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":27.0,"factors":[{"name":"EPSS percentile","points":15.59},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.44}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-10-23","earliestUrl":"https://github.com/al4n4n/CVE-2026-112403","repos":[{"name":"al4n4n/CVE-2026-112403","url":"https://github.com/al4n4n/CVE-2026-112403","stars":0,"created":"2026-10-23"}]},"first":{"date":"2026-10-23","source":"PoC-in-GitHub","url":"https://github.com/al4n4n/CVE-2026-112403"},"provenance":"source"},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-22T21:08:31.338410Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-8g5g-8vmr-9782","PYSEC-2026-4332"],"provenance":"source"}],"summary":{"text":"A heap buffer overflow in Pillow's JPEG decoder (ImagingJpegDecode) lets its output write a full-width scanline into a buffer sized for a requested draft scale when the decoder is linked to libjpeg-turbo 3.x and handles 8-bit lossless SOF3 JPEGs that ignore the requested downscaling.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:38Z"},"euvd":{"id":"EUVD-2026-104642","exploited":false,"provenance":"source"}}