CVE-2026-25990: Pillow affected by out-of-bounds write when loading PSD images
Affects pillowSource GCVE Database
Not known to be exploited · CVSS 8.6 High : upgrade to 12.1.1 soon.
Data as of 27 Oct 2026, 00:30 UTC
- Patch
- Available – fixed in 12.1.1
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 11 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade pillow to 12.1.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIpillow | 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 to Pillow version 12.1.1 or later, where the vulnerability is fixed. As a temporary workaround, prevent PSD images from being opened by using the formats parameter in Image.open().
Description
An out-of-bounds write vulnerability exists in Pillow when loading specially crafted PSD images. This affects Pillow versions from 10.3.0 up to but not including 12.1.1. The issue can lead to memory corruption. A fix is available in Pillow 12.1.1. Users can mitigate risk by preventing PSD images from being opened using the formats parameter in Image.open().
References
- github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-25990 (opens in a new tab)
- github.com/python-pillow/Pillow/pull/9427 (opens in a new tab)
- github.com/python-pillow/Pillow/commit/54ba4db542ad3c7b918812a4e2d69c27735a3199 (opens in a new tab)
- github.com/python-pillow/Pillow/commit/9000313cc5d4a31bdcdd6d7f0781101abab553aa (opens in a new tab)
- github.com/python-pillow/Pillow (opens in a new tab)
- pillow.readthedocs.io/en/stable/releasenotes/12.1.1.html (opens in a new tab)