CVE-2026-42311: Pillow · Integer Overflow or Wraparound
Affects PillowSource CVE Database V5
Not known to be exploited · CVSS 8.6 High : upgrade to 12.2.0 soon.
Data as of 9 Nov 2026, 23:24 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 4% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 12.2.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:NExploitation evidence
Disclosed: evidence found.
CVE published 9 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.
What to do
Upgrade Pillow and pillow to 12.2.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| python-pillowPillow | Affected
| Fixed in
|
PyPIpillowpkg:pypi/pillowOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade the Pillow library to version 12.2.0 or later, where this vulnerability has been patched. No other mitigation or temporary workaround is indicated. Patch status is confirmed by the vendor advisory stating the fix is included in version 12.2.0.
Description
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.
References
- github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr (opens in a new tab)
- github.com/python-pillow/Pillow/pull/9520 (opens in a new tab)
- github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea (opens in a new tab)
- github.com/python-pillow/Pillow/releases/tag/12.2.0 (opens in a new tab)