# CVE-2026-54059: Pillow: PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.64%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-06T18:46:09.433Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-8v84-f9pq-wr9x, BIT-PILLOW-2026-54059, PYSEC-2026-2253
- Weaknesses: CWE-789
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 12.3.0
- pillow (PyPI): before 12.3.0
- python pillow: before 12.3.0
- pillow (Bitnami): before 12.3.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- PyPA Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-8v84-f9pq-wr9x> (exploit, advisory, evidence, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/commit/0a263e6264aa5399988d9acd3bbfbca2ca3ec77d> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst> (advisory, article, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54059> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2253.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

- CVE List: [CVE-2026-54059](https://www.cve.org/CVERecord?id=CVE-2026-54059), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-8v84-f9pq-wr9x](https://github.com/advisories/GHSA-8v84-f9pq-wr9x), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54059](https://nvd.nist.gov/vuln/detail/CVE-2026-54059), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2253](https://osv.dev/vulnerability/PYSEC-2026-2253), CC-BY-4.0, modified 2026-07-13
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-54059](https://osv.dev/vulnerability/BIT-PILLOW-2026-54059), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2026-54059 · Whole record: https://cve.day/CVE-2026-54059.json · Rebuilt by cve.day 2026-11-25T22:59:27.235Z
