CVE-2026-42309Pillow has a heap buffer overflow with nested list coordinates
A medium-severity vulnerability reachable with local access, needing low privileges and no user interaction. EPSS estimates a 0.2% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 0.2%
- percentile 5%
- Fix
- Named by a source
- CVE published 9 May 2026
Reference
None of the "Needs attention" rules apply right now.
EPSS 0.2% (+0) · No user interaction (+5)
Immediate actions
- pillow (PyPI): upgrade to 12.2.0 or later on your release line.
- Commit / pull request: https://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82
- Commit / pull request: https://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670
- Advisory: https://github.com/python-pillow/Pillow/releases/tag/12.2.0
- Advisory: https://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-42309
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 11.2.1, < 12.2.0Fixed in12.2.0OSV (PYSEC-2026-2251)
python pillow product:python/pillow
- Affected>= 11.2.1, < 12.2.0Affected range ends before12.2.0as published by CPE data (via the NVD API)
python-pillow Pillow product:pythonpillow/pillow
- Affected>= 11.2.1, < 12.2.0Affected range ends before12.2.0as published by CNA (CVE List)
Products (not packages) are shown as their sources publish them. We check no product version against these ranges; a fixed version is the one the source names. Ask the vendor's advisory.
Confirmed facts
- CVSS
- 5.5 MEDIUM (version 3.1)
- Score from
- NVD
- Attack vector
- local
- Attack complexity
- low
- Privileges required
- low
- User interaction
- none
- Weakness
- CWE-122
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- no
- Assigned by
- [email protected]
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)Pillow is a Python imaging library. From version 11.2.1 to before version 12.2.0, passing nested lists as coordinates to APIs that accept coordinates such as ImagePath.Path, ImageDraw.ImageDraw.polygon and ImageDraw.ImageDraw.line could cause a heap buffer overflow, as nested lists were recursively unpacked beyond the allocated buffer. Coordinate lists are now validated to contain exactly two numeric coordinates. This issue has been patched in version 12.2.0.
Update history
- 9 May 2026Published
References
- advisoryhttps://github.com/python-pillow/Pillow/releases/tag/12.2.0
- advisoryhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-5xmw-vc9v-4wf2
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-42309
- commit / pull requesthttps://github.com/designcomputer/mysql_mcp_server/commit/a96549f4a4d65443fd6e9c7f2324fba9a5c80a82
- commit / pull requesthttps://github.com/python-pillow/Pillow/commit/cf6de8ca9b23e714aa5310e1c791eda66fc0b670
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2251.yaml
- otherhttps://github.com/python-pillow/Pillow
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-42309 (CVE List (CNA and CISA ADP data, through the NVD API)), CVE terms of use. Copyright The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation.
- NVD API 2.0 (NIST), the API we query, NVD API terms of use. This product uses the NVD API but is not endorsed or certified by the NVD.
- GHSA-5xmw-vc9v-4wf2 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-2251 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 48 min ago · osv 48 min ago · nvd 48 min ago · epss 47 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2026-42309, GHSA-5xmw-vc9v-4wf2, PYSEC-2026-2251