


Perceptive Security
SOC/SIEM Consultancy

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 direc…
Published:
5 juli 2026 om 22:00:00
Alert date:
6 juli 2026 om 20:03:55
Source:
nvd.nist.gov
Supply Chain & Dependencies, Web Technologies
A vulnerability in the Python Pillow imaging library (prior to version 12.3.0) allows crafted PCF font files to cause excessive memory allocation. The flaw exists in PIL/PcfFontFile.py within the _load_bitmaps() function, which reads glyph dimensions from the PCF METRICS section and passes them directly to Image.frombytes() without invoking the decompression bomb check (Image._decompression_bomb_check()). This omission enables an attacker to supply a maliciously crafted PCF font file that triggers unbounded memory consumption, potentially leading to denial of service. The vulnerability is classified as a decompression bomb / resource exhaustion issue. It has been patched in Pillow version 12.3.0. Users are advised to upgrade to version 12.3.0 or later to mitigate the risk.
Technical details
Mitigation steps:
Affected products:
Pillow (Python Imaging Library) < 12.3.0
Related links:
https://nvd.nist.gov/vuln/detail/CVE-2026-54059
https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst
https://github.com/python-pillow/Pillow/commit/0a263e6264aa5399988d9acd3bbfbca2ca3ec77d
https://github.com/python-pillow/Pillow/security/advisories/GHSA-8v84-f9pq-wr9x
Related CVE's:
Related threat actors:
IOC's:
This article was created with the assistance of AI technology by Perceptive.
