CVE-2026-42311Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
A high-severity vulnerability reachable with local access, needing no privileges and 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 7%
- 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 privileges required (+5) · CVSS 7.8: at least medium
Immediate actions
- pillow (PyPI): upgrade to 12.2.0 or later on your release line.
- Patch: https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea
- Patch: https://github.com/python-pillow/Pillow/pull/9520
- Patch: https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr
- Advisory: https://github.com/python-pillow/Pillow/releases/tag/12.2.0
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-42311
Who should check
pillow (PyPI) pkg:pypi/pillow
- Affected>= 10.3.0, < 12.2.0Fixed in12.2.0OSV (PYSEC-2026-2252)
python pillow product:python/pillow
- Affected>= 10.3.0, < 12.2.0Affected range ends before12.2.0as published by CPE data (via the NVD API)
python-pillow Pillow product:pythonpillow/pillow
- Affected>= 10.3.0, < 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
- 7.8 HIGH (version 3.1)
- Score from
- NVD
- Attack vector
- local
- Attack complexity
- low
- Privileges required
- none
- User interaction
- required
- Weakness
- CWE-190, CWE-787
- Exploitation (CISA SSVC)
- none
- Automatable (CISA SSVC)
- yes
- 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 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
Update history
- 9 May 2026Published
References
- patchhttps://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea
- patchhttps://github.com/python-pillow/Pillow/pull/9520
- advisoryhttps://github.com/python-pillow/Pillow/releases/tag/12.2.0
- patchhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr
- otherhttps://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-42311
- otherhttps://github.com/python-pillow/Pillow
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- CVE-2026-42311 (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-pwv6-vv43-88gr (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2026-2252 (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 32 min ago · osv 32 min ago · nvd just now · epss 31 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-pillow-2026-42311, GHSA-pwv6-vv43-88gr, PYSEC-2026-2252