{"id":"CVE-2026-106443","published":"2026-10-06T19:18:13.327","lastModified":"2026-10-06T20:17:26.023","description":"WeasyPrint helps web developers to create PDF documents. Prior to 70.0, the image-loading path in weasyprint/images.py passes fetched image bytes from HTML img URLs, CSS image values, SVG image references, and data URIs to Pillow's generic image dispatcher without excluding EPS or PostScript formats. On hosts with Ghostscript installed, Pillow EpsImagePlugin invokes the interpreter for attacker-controlled PostScript, which can produce interpreter-permitted effects and can lead to remote code execution when the installed Ghostscript version has a usable sandbox bypass. Hosts without Ghostscript do not reach this rasterization path. This issue is fixed in version 70.0.","cvssScore":8.8,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-20"],"vendors":[],"products":[],"references":[{"url":"https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542","tags":[]},{"url":"https://github.com/Kozea/WeasyPrint/releases/tag/v70.0","tags":[]},{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j","tags":[]}],"exploitRefs":[{"url":"https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542","tags":[]},{"url":"https://github.com/Kozea/WeasyPrint/releases/tag/v70.0","tags":[]},{"url":"https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows attackers to execute arbitrary code via PostScript files when Ghostscript is installed, due to improper handling of EPS and PostScript formats in WeasyPrint.","exploitability":"Exploitation is moderately hard and requires Ghostscript to be installed on the host.","blast_radius":"If exploited, this could lead to full remote code execution on the affected system.","remediation":"Upgrade to WeasyPrint 70.0 or later.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","ghostscript","weasyprint","postscript","eps","pdf"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-10-08T08:41:40.580Z"}}