Out-of-bounds write in Pillow - CVE-2026-112397
Published: November 3, 2026
Vulnerability details
The vulnerability allows a remote attacker to cause a denial of service and potentially corrupt memory.
The vulnerability exists due to an out-of-bounds write in Pillow's native _imagingmorph component when performing morphology operations on a zero-width image. A remote attacker can supply a crafted PPM or PGM file declaring a width of 0 that, when processed by ImageMorph.MorphOp.apply(), causes the unchecked assignment outrow[0] = outrow[width - 1] = 0; to write outside the row buffer and crash the process.