Vulnerability Description
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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Python | Pillow | < 13.0.0 |
| Microsoft | Windows | - |
Related Weaknesses (CWE)
References
- https://github.com/python-pillow/Pillow/commit/4cf46bee338304c5c8968fd7f132ba0d4Patch
- https://github.com/python-pillow/Pillow/pull/10120Issue Tracking
- https://github.com/python-pillow/Pillow/releases/tag/13.0.0Release Notes
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hjVendor Advisory
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-9v9v-9qvf-h2hjVendor Advisory
FAQ
What is CVE-2026-96644?
CVE-2026-96644 is a vulnerability with a CVSS score of 8.1 (HIGH). 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 size...
How severe is CVE-2026-96644?
CVE-2026-96644 has been rated HIGH with a CVSS base score of 8.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-96644?
Check the references section above for vendor advisories and patch information. Affected products include: Python Pillow, Microsoft Windows.