CVE-2026-96644 — python-pillow Pillow
Summary
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.
Severity breakdown
High · 7.1
An attacker without an account can exploit this over the network if a user views or visits something.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- high on availability, low on confidentiality, none on integrity
- Impact on other systems
- none
Weakness
- CWE-125: Out-of-bounds Read
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| python-pillow Pillow | < 13.0.0 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- python-pillow Pillow
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-96644?
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. Weakness type: Out-of-bounds Read (CWE-125).
How severe is CVE-2026-96644?
CVE-2026-96644 has a CVSS 4.0 base score of 7.1 (high), from the CNA (github.com). An attacker without an account can exploit this over the network if a user views or visits something.
Is CVE-2026-96644 being exploited?
Not as far as is known: CVE-2026-96644 is not in CISA's Known Exploited Vulnerabilities catalog as of November 26, 2026. EPSS estimates a 0.5% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-96644?
python-pillow Pillow < 13.0.0.
How do I fix CVE-2026-96644?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.
Timeline & sources
References
Related vulnerabilities & news
- CPython tarfile filters on Windows mishandle drive-relative paths (CVE-2026-107784)
- CVE-2026-137585 — morpheus65535 bazarr
- Windows NTLM Security Update Causes Authentication Failures in Third-Party Apps and Devices
- CERT-In Rates Multiple Cisco ClamAV Flaws High; Affected Secure Endpoint Connector Versions Listed
- SolarWinds Patches 18 Serv-U Flaws, Including Root-Access Bugs on Linux