Advisory

PYSEC-2026-2252

Also known as: BIT-pillow-2026-42311, CVE-2026-42311, GHSA-pwv6-vv43-88gr

Summary

The record has no summary.

Details

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.

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Dates

Published
2026-05-09 06:16 UTC
Modified
2026-07-13 07:26 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 10.3.0, fixed 12.2.0 (ecosystem)

Fixed versions

12.2.0

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences