CVE-2026-54060: CWE-789: Memory Allocation with Excessive Size Value in python-pillow Pillow
A vulnerability in the python-pillow Pillow library prior to version 12.3.0 allows excessive memory allocation during font image processing. Specifically, the FontFile.compile() function creates combined bitmaps without proper decompression bomb checks, potentially causing high memory consumption. This issue is fixed in version 12.3.0.
AI Analysis
Technical Summary
CVE-2026-54060 describes a memory allocation vulnerability in the python-pillow Pillow library. The flaw exists in the PIL/FontFile.py file where the FontFile.compile() method assembles per-glyph images into a combined bitmap using Image.new("1", (xsize, ysize)) without invoking Image._decompression_bomb_check(). This omission allows a crafted font to trigger excessive memory allocation during image conversion or saving operations. The vulnerability is addressed in Pillow version 12.3.0.
Potential Impact
The vulnerability can cause excessive memory allocation leading to denial of service (application crash or resource exhaustion) when processing specially crafted fonts. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade to Pillow version 12.3.0 or later, where this issue is fixed. No other mitigation is indicated. Patch status is confirmed fixed in version 12.3.0.
CVE-2026-54060: CWE-789: Memory Allocation with Excessive Size Value in python-pillow Pillow
Description
A vulnerability in the python-pillow Pillow library prior to version 12.3.0 allows excessive memory allocation during font image processing. Specifically, the FontFile.compile() function creates combined bitmaps without proper decompression bomb checks, potentially causing high memory consumption. This issue is fixed in version 12.3.0.
CVSS v3.1
Score 7.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-54060 describes a memory allocation vulnerability in the python-pillow Pillow library. The flaw exists in the PIL/FontFile.py file where the FontFile.compile() method assembles per-glyph images into a combined bitmap using Image.new("1", (xsize, ysize)) without invoking Image._decompression_bomb_check(). This omission allows a crafted font to trigger excessive memory allocation during image conversion or saving operations. The vulnerability is addressed in Pillow version 12.3.0.
Potential Impact
The vulnerability can cause excessive memory allocation leading to denial of service (application crash or resource exhaustion) when processing specially crafted fonts. There is no impact on confidentiality or integrity reported.
Mitigation Recommendations
Upgrade to Pillow version 12.3.0 or later, where this issue is fixed. No other mitigation is indicated. Patch status is confirmed fixed in version 12.3.0.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-11T18:24:35.096Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4bfce927e9c7971910b4bb
Added to database: 07/06/2026, 19:07:21 UTC
Last enriched: 07/06/2026, 19:21:35 UTC
Last updated: 07/06/2026, 19:55:02 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.