Advisory

PYSEC-2026-165

Also known as: BIT-pillow-2026-42308, CVE-2026-42308, GHSA-wjx4-4jcj-g98j

Summary

The record has no summary.

Details

Pillow is a Python imaging library. Prior to version 12.2.0, if a font advances for each glyph by an exceeding large amount, when Pillow keeps track of the current position, it may lead to an integer overflow. This issue has been patched in version 12.2.0.

Severity

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

Dates

Published
2026-05-09 06:16 UTC
Modified
2026-05-27 13:56 UTC

Affected packages and fixes

pillow

PyPI · All systems

Affected

  • introduced 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