Memory exhaustion via unchecked PCF glyph dimensions
Published Jul 6, 2026 · Updated Jul 6, 2026
Unchecked PCF font dimensions in Pillow before 12.3.0 allow attackers to exhaust memory by loading a crafted PCF font. PcfFontFile._load_bitmaps() passes attacker-controlled METRICS widths and heights to Image.frombytes() without the decompression-bomb check, allocating up to about 1.07 GB per glyph. Exploitation requires an application to pass an untrusted PCF stream directly to PcfFontFile; Image.open() does not invoke this loader, and memory exhaustion can interrupt the hosting service.
Summary
What happened
Unchecked PCF font dimensions in Pillow before 12.3.0 allow attackers to exhaust memory by loading a crafted PCF font. PcfFontFile._load_bitmaps() passes attacker-controlled METRICS widths and heights to Image.frombytes() without the decompression-bomb check, allocating up to about 1.07 GB per glyph. Exploitation requires an application to pass an untrusted PCF stream directly to PcfFontFile; Image.open() does not invoke this loader, and memory exhaustion can interrupt the hosting service.
The record
- CVE
- CVE-2026-54059
- Published
- Jul 6, 2026
- Updated
- Jul 6, 2026
- Vendor
- Pillow
- Product
- Pillow
- Classifications
- CWE-789, T1499.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jul 6, 2026CVE publishedPublication date reported by the CVE source.
- Jul 6, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 12.3.0
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-8v84-f9pq-wr9x PCF allocation proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo