CVE-2026-25990: Pillow has an out-of-bounds write when loading PSD images

Published Feb 11, 2026
·
Updated

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

Other sources

Pillow is a Python imaging library. From 10.3.0 to before 12.1.1, an out-of-bounds write may be triggered when loading a specially crafted PSD image. This vulnerability is fixed in 12.1.1.

MITRE

Pillow is a Python imaging library. From 10.3.0 to before 12.1.1, n out-of-bounds write may be triggered when loading a specially crafted PSD image. This vulnerability is fixed in 12.1.1.

NVD

Affected Software

3 affected componentsFixes available
pip/pillow>=10.3.0<12.1.1
12.1.1
Python Pillow>=10.3.0<12.1.1
IBM watsonx.data intelligence<=5.2.0, 5.2.1, 5.3.0, 5.3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/pillow to a version that resolves this vulnerability.

    Fixed in 12.1.1
  2. Upgrade

    Upgrade Pillow to a version that resolves this vulnerability.

    Fixed in 12.1.1
  3. Configuration

    Use Pillow's Image.open() formats parameter to prevent PSD images from being opened (i.e., configure Image.open(formats=...) to disallow PSD).

    Pillow (Image.open) formats parameter = exclude PSD by not including "PSD"

Event History

Feb 11, 2026
Advisory Published
via GitHub·02:22 PM
Data Sourced
via GitHub·02:22 PM
DescriptionWeaknessAffected Software
CVE Published
via MITRE·08:53 PM
Data Sourced
via MITRE·08:53 PM
DescriptionWeakness
Data Sourced
via Red Hat·09:06 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 27, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-25990?

CVE-2026-25990 is classified as a moderate severity vulnerability that allows for an out-of-bounds write.

2

How do I fix CVE-2026-25990?

To fix CVE-2026-25990, upgrade to Pillow version 12.1.1 or later.

3

Which versions of Pillow are affected by CVE-2026-25990?

CVE-2026-25990 affects Pillow versions between 10.3.0 and 12.1.0.

4

What type of vulnerability is CVE-2026-25990?

CVE-2026-25990 is an out-of-bounds write vulnerability triggered when loading a specially crafted PSD image.

5

Is there a workaround for CVE-2026-25990?

Yes, you can use the `formats` parameter in the `Image.open()` method to prevent handling of PSD images as a temporary workaround.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203