CVE Catalog

CVE-2026-106443

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Elevated risk
0.69%

51th percentile - higher than 51% of all known CVEs

Summary

WeasyPrint prior to 70.0 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 lead to remote code execution when the installed Ghostscript version has a usable sandbox bypass.

Risk Assessment

An attacker can remotely execute code on the server if Ghostscript is installed, potentially leading to system compromise or data breach.

Recommendation

Upgrade WeasyPrint to version 70.0 or later, and consider removing Ghostscript if not essential.

Other vulnerabilities in WeasyPrint

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS