Advisory

GHSA-cfh3-3jmp-rvhc

Also known as: BIT-pillow-2026-25990, CVE-2026-25990, PYSEC-2026-2249

Summary

Pillow affected by out-of-bounds write when loading PSD images

Details

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-02-11 14:22 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 10.3.0, fixed 12.1.1 (ecosystem)

Fixed versions

12.1.1

Fix

  • Fixed version 12.1.1
    pip install --upgrade pillow==12.1.1

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences