Vulnerability
CVE-2026-112403
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.
100 advisories report this vulnerability, across 9 ecosystems.
Advisories in Chainguard
- CGA-2c7h-vwqc-2rj6
- CGA-3fjm-52w5-c3rf
- CGA-3rv6-v2xw-8hm5
- CGA-3vjr-x8j4-6964
- CGA-3vpq-8rhm-h729
- CGA-42jr-p69q-rqxm
- CGA-43h9-mfm2-7966
- CGA-4756-4rx4-72ph
- CGA-49vq-2jxv-fq74
- CGA-4fp5-c998-2gw2
- CGA-4h7x-5h2f-vfq3
- CGA-4prj-3f9q-g67q
- CGA-4q25-g8vx-h894
- CGA-54fm-p438-795g
- CGA-54wc-m78h-gw5f
- CGA-5rmj-pphj-xfvv
- CGA-652m-q755-8mgg
- CGA-6724-8hm8-9x5h
- CGA-67wf-f4qv-6q8g
- CGA-68w4-mhwc-wqm3
- CGA-6jcc-f5cf-q8h9
- CGA-6jhv-5mjq-g2wq
- CGA-6w93-rfr8-vph4
- CGA-6x3q-56gj-frcg
- CGA-76cw-w9h2-37v2
- CGA-7p6g-p6x3-j5x4
- CGA-7r3m-44mf-43wp
- CGA-7v85-2hg2-2vvp
- CGA-7vv2-2h72-7m4g
- CGA-7xwf-x78x-mqm3
- CGA-8347-593v-qxwm
- CGA-839m-qrh4-jv9h
- CGA-84wp-269x-2mq6
- CGA-874r-wprg-2chh
- CGA-8cvm-x7wp-5792
- CGA-8hqf-2pg5-73qv
- CGA-8v4w-2grx-47pj
- CGA-97gx-3h3f-m5fp
- CGA-9hmg-vxrm-j4vg
- CGA-9vq3-7c34-wh9g
- CGA-c2c4-8hv6-5w45
- CGA-c3fc-756p-6g3p
- CGA-c524-jrfq-8pxh
- CGA-c74j-jfgp-r2xp
- CGA-cm83-8jg4-gmr3
- CGA-cx7w-6jcw-2959
- CGA-f382-c842-m59f
- CGA-f7qw-mw95-4jwx
- CGA-fwwp-jchw-jrv8
- CGA-g4m2-q7r9-6vpw
- CGA-h62g-8qvh-jfc4
- CGA-h672-92f9-52j3
- CGA-hmhp-cqhg-9h9r
- CGA-j5cv-2ch2-pcqx
- CGA-j5fm-wxjw-r6m8
- CGA-jm68-q5xw-5v38
- CGA-jq46-j5gq-hvwh
- CGA-jr4w-wvxp-c27c
- CGA-jvqm-gvf2-82h5
- CGA-m5j4-43h3-h9m6
- CGA-mcmg-qxh4-2xjg
- CGA-mwfv-2rr4-3c96
- CGA-p57h-39mh-gqfx
- CGA-pmff-68hx-8378
- CGA-pw8p-cxg8-vmq6
- CGA-pxcr-jprf-m5f2
- CGA-q3wf-47qg-2p83
- CGA-qprw-6x8c-w72g
- CGA-qq4v-4j4w-36g2
- CGA-r4gh-8v5q-22wp
- CGA-rc4q-4c34-3pgq
- CGA-v8cj-3r88-3w4x
- CGA-vc67-4vhc-x9q2
- CGA-vqc3-wvf4-g8v7
- CGA-vwjg-74rq-hqq4
- CGA-wrgp-gj4v-cch4
- CGA-wxcr-gj87-5985
- CGA-x4p6-9r6j-88ff
- CGA-x663-j7xh-m8p5
- CGA-x968-cj3p-xqgc
- CGA-xm7j-c4qc-7jj5
- CGA-xwjp-j4w7-v4xh