CVE-2026-25990 — Vulnerability in pillow — CVE Details
Pillow affected by out-of-bounds write when loading PSD images
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.52%). Schedule for your next planned update.
Does your project use an affected pillow version?
Paste your requirements.txt to check it for CVE-2026-25990 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
An out-of-bounds write may be triggered when loading a specially crafted PSD image. Pillow >= 10.3.0 users are affected.
Patches
Pillow 12.1.1 will be released shortly with a fix for this.
Workarounds
Image.open() has a formats parameter that can be used to prevent PSD images from being opened.
References
Pillow 12.1.1 will add release notes at https://pillow.readthedocs.io/en/stable/releasenotes/index.html
Advisory Timeline
- First published February 11, 2026 (288 days ago).
- Last revised September 10, 2026 — 211 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "pillow>=12.1.1"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| pillow PyPI · Affected: 10.3.0, 10.4.0, 11.0.0, 11.1.0 (+4 more) | 12.1.1 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-787Out-of-bounds WriteMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
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
References
- https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhcWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25990ADVISORY
- https://github.com/python-pillow/Pillow/pull/9427WEB
- https://github.com/python-pillow/Pillow/commit/54ba4db542ad3c7b918812a4e2d69c27735a3199WEB
- https://github.com/python-pillow/Pillow/commit/9000313cc5d4a31bdcdd6d7f0781101abab553aaWEB
- https://github.com/python-pillow/PillowPACKAGE
- https://pillow.readthedocs.io/en/stable/releasenotes/12.1.1.htmlWEB
Frequently Asked Questions
- What is CVE-2026-25990?
- Pillow affected by out-of-bounds write when loading PSD images. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2026-25990?
- CVE-2026-25990 affects pillow. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25990 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This is a below-median EPSS score — only 37.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-40192HIGH
- CVE-2026-42311HIGH
- CVE-2026-54059HIGH
- CVE-2026-54060HIGH
- CVE-2026-112406HIGH
Pillow: Infinite loop in PdfParser.rewrite_pages on page tree Parent cycle
- CVE-2026-96778HIGH
Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer
- CVE-2026-112891MEDIUM
Pillow: Quadratic GIF comment copying during save
- CVE-2026-59198MEDIUM
Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images