CVE-2026-54059 Details
Description
Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF font data to cause excessive memory allocation. This issue is fixed in version 12.3.0.
A vulnerability in the Python imaging library Pillow, specifically in the PCF font handling component, prior to version 12.3.0, allows for a decompression bomb attack. The issue arises in the '_load_bitmaps()' function of 'PcfFontFile.py', where glyph dimensions are read from the PCF METRICS section and directly passed to 'Image.frombytes()' without a proper decompression bomb check. This oversight enables crafted PCF font data to cause excessive memory allocation, with potential allocations reaching over 1 GB per glyph. The vulnerability is particularly concerning as it can be exploited both persistently and transiently, leading to significant memory consumption and possible denial of service.
Users should upgrade to Pillow version 12.3.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-789 | Memory Allocation with Excessive Size Value | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python pillow | < 12.3.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 7, 2026 | Initial Analysis | [email protected] |
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 6, 2026 | New CVE Received | [email protected] |