Advisory record · GHSA-5x94-69rx-g8h2

Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`

CVSS 7.5 HighEPSS 0.0042 · 36th percentile

Published by the GitHub Advisory Database at 20 Jul 2026, 21:08 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
pillowPyPI<12.3.012.3.0
Identifiers
GHSA-5x94-69rx-g8h2 · BIT-pillow-2026-54060 · CVE-2026-54060 · PYSEC-2026-2254
Weakness (CWE)
CWE-789
Published
20 Jul 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Pillow versions before 12.3.0 are affected: the FontFile.compile() method, used when a BDF or PCF font is converted to an ImageFont or saved, creates a combined bitmap without the decompression bomb size check. An attacker who can supply a crafted BDF or PCF font file to an application that loads it can cause very large memory allocations, which can exhaust memory and crash the process (denial of service). Upgrade to Pillow 12.3.0 or later.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.0042, the 36th percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 3 Jul 2026, 08:33 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:11 UTC First seen by agentprime
  3. 31 Oct 2026, 14:11 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.