{"id":"CVE-2026-54060","published":"2026-07-06T18:49:23Z","modified":"2026-07-07T14:08:14Z","title":"Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`","vendor":"python-pillow","product":"Pillow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00418,"percentile":0.37006,"provenance":"source"},"cwes":[{"id":"CWE-789","name":"Memory Allocation with Excessive Size Value"}],"references":[{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-5x94-69rx-g8h2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/python-pillow/Pillow/commit/0a263e6264aa5399988d9acd3bbfbca2ca3ec77d","tags":["x_refsource_MISC"]},{"url":"https://github.com/python-pillow/Pillow/blob/main/docs/releasenotes/12.3.0.rst","tags":["x_refsource_MISC"]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":7.4},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"python-pillow","affectedVersions":[{"vendor":"python-pillow","product":"Pillow","versions":["< 12.3.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-07T14:07:46.646415Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pillow","vulnerableRanges":["<12.3.0"],"patched":["12.3.0"],"from":["GHSA-5x94-69rx-g8h2","PYSEC-2026-2254"],"provenance":"source"}],"summary":{"text":"Pillow, the Python imaging library, has a flaw in the FontFile.compile() function of its PIL/FontFile.py component, which builds a combined glyph bitmap with Image.new() without the decompression-bomb size check. An attacker who can supply a crafted font file to be converted or saved can trigger excessive memory allocation, and the attack requires only network reachability with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:46:30Z"},"euvd":{"id":"EUVD-2026-41900","exploited":false,"provenance":"source"}}