Advisory

GHSA-wjx4-4jcj-g98j

Also known as: BIT-pillow-2026-42308, CVE-2026-42308, PYSEC-2026-165

Summary

Pillow has an integer overflow when processing fonts

Details

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 has been fixed.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-05-04 20:18 UTC
Modified
2026-09-10 03:50 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences