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.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/python-pillow/Pillow/commit/4cf46bee338304c5c8968fd7f132ba0d40c428b7 Patch
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hj Vendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hj Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 8
- StatusAnalyzed → ModifiedNVD modified 2026-10-28 19:19
- Cpes+1 CPE criteria (now 1)NVD modified 2026-10-27 14:27
- StatusAwaiting Analysis → AnalyzedNVD modified 2026-10-27 14:27
- StatusPublished → Awaiting AnalysisNVD modified 2026-10-22 16:46
- StatusReceived → PublishedNVD modified 2026-10-21 20:54
- StatusPublished → ReceivedNVD modified 2026-10-21 21:20
- CVSS7.1 (v4.0, 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) → 7.1 (v4.0, 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X)NVD modified 2026-10-21 21:20
- First seenCVSS 7.1 · python-pillowNVD modified 2026-10-21 20:54
Affected (CPE criteria) 1
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
References 5
- https://github.com/python-pillow/Pillow/commit/4cf46bee338304c5c8968fd7f132ba0d40c428b7 Patch
- https://github.com/python-pillow/Pillow/pull/10120 Issue Tracking
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0 Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hj Vendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hj Vendor Advisory