# CVE-2026-106443: WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.92%, higher than 61% of CVEs (2026-12-01)
- Published: 2026-10-06T18:57:43.477Z
- Modified: 2026-10-15T14:56:08.607Z
- Also known as: GHSA-r543-q48m-4c9j, PYSEC-2026-4311
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Kozea WeasyPrint: < 70.0
- weasyprint (PyPI): before 70.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j> (web)
- <https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542> (web)
- <https://github.com/Kozea/WeasyPrint/releases/tag/v70.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-106443> (advisory)
- <https://github.com/Kozea/WeasyPrint> (package)
- <https://pypi.org/project/weasyprint> (package)
- <https://github.com/advisories/GHSA-r543-q48m-4c9j> (advisory)

## Sources

- CVE List: [CVE-2026-106443](https://www.cve.org/CVERecord?id=CVE-2026-106443), CVE Terms of Use, modified 2026-10-06
- GitHub Advisory Database: [GHSA-r543-q48m-4c9j](https://github.com/advisories/GHSA-r543-q48m-4c9j), CC-BY-4.0, modified 2026-10-15
- NVD: [CVE-2026-106443](https://nvd.nist.gov/vuln/detail/CVE-2026-106443), Public domain, modified 2026-10-06
- PyPA Advisory Database: [PYSEC-2026-4311](https://osv.dev/vulnerability/PYSEC-2026-4311), CC-BY-4.0, modified 2026-10-15

---

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