Skip to main content
← All vulnerabilities
CVE-2026-106443GHSA-R543-Q48M-4C9JPYSEC-2026-4311

WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 70.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • Kozea WeasyPrint

    fixed in 70.0

  • weasyprintPyPI

    fixed in 70.0

References 3

GitHub · Kozea/WeasyPrint