CVE-2026-42311
HIGH 8.6CVSS 4.0Pillow has an OOB Write with Invalid PSD Tile Extents (Integer Overflow)
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.
- Published
- 9 May 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-190CWE-787
- Also known as
- BIT-pillow-2026-42311GHSA-pwv6-vv43-88grPYSEC-2026-2252
- Sources
- NVDJSONOSV GHSA-pwv6-vv43-88grJSONOSV PYSEC-2026-2252JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.6 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/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 |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | HIGH 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | pillowcpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* |
>= 10.3.0, < 12.2.0 | 12.2.0 |
| OSV | PyPI | pillow | >= 10.3.0, < 12.2.0 | 12.2.0 |
References
- https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea · Patch, WEB, FIX
- https://github.com/python-pillow/Pillow/pull/9520 · Issue Tracking, Patch, WEB, FIX
- https://github.com/python-pillow/Pillow/releases/tag/12.2.0 · Product, Release Notes, WEB, ADVISORY
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr · Patch, Vendor Advisory, WEB, FIX
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42311 · ADVISORY
- https://github.com/python-pillow/Pillow · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 9 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 May 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 4 May 2026)