{"id":"CVE-2026-96644","published":"2026-10-21T20:54:43Z","modified":"2026-10-28T18:22:38Z","title":"Pillow: Heap over-read in WMF/EMF rendering via 16-bit dimension truncation (Windows builds)","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"Pillow is a Python imaging library. Prior to 13.0.0 on Windows, src/PIL/WmfImagePlugin.py passes unchecked 32-bit WMF or EMF dimensions to the native drawwmf handler in src/display.c. The handler sizes a DIB allocation from 16-bit-truncated bcWidth and bcHeight fields but copies pixel data using the original full dimensions. A crafted wide, short metafile can pass the pixel-count decompression-bomb check and make the Windows-only renderer read beyond the heap buffer, potentially disclosing memory or crashing the process. This issue is fixed in version 13.0.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00433,"percentile":0.38365,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/pull/10120","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/commit/4cf46bee338304c5c8968fd7f132ba0d40c428b7","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":12.6,"factors":[{"name":"EPSS percentile","points":7.67},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 13.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-28T18:22:22.322892Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Pillow","vulnerableRanges":["<13.0.0"],"patched":["13.0.0"],"from":["GHSA-9v9v-9qvf-h2hj","PYSEC-2026-4343"],"provenance":"source"}],"summary":{"text":"In Pillow prior to 13.0.0 on Windows, the WMF/EMF rendering path in WmfImagePlugin.py and the native drawwmf handler in display.c allocate a bitmap using 16-bit-truncated dimensions while copying pixel data at the full, untruncated dimensions, causing a heap over-read. An attacker who can supply a crafted wide, short WMF or EMF image that passes the decompression-bomb pixel-count check can trigger the over-read, which may disclose heap memory or crash the process, and this requires the victim to open or process the malicious file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:35Z"},"euvd":{"id":"EUVD-2026-107563","exploited":false,"provenance":"source"}}