# CVE-2026-54060: Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`

- 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:49:23.788Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-5x94-69rx-g8h2, BIT-PILLOW-2026-54060, PYSEC-2026-2254
- 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/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessive allocation during conversion or saving. 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-5x94-69rx-g8h2> (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-54060> (advisory, web)
- <https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2026-2254.yaml> (web)
- <https://github.com/python-pillow/Pillow> (package)

## Sources

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

---

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