Skip to content
Heist/ feed
Back to feed
High

WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-106443
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:48 UTC · Revision 1

Source evidence

WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE

core-osv · Original source

Published 6 Oct 2026, 18:57 UTC

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.

osv:CVE-2026-106443
Complete source record
{
  "id": "9134355c40667a9276fad64532348f72f4cb22236522d768fa4f44aebd528dfc",
  "url": "https://osv.dev/vulnerability/CVE-2026-106443",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "WeasyPrint: EPS images reach the Ghostscript interpreter resulting in RCE",
    "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.",
    "evidence": "osv:CVE-2026-106443",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-106443",
      "aliases": [
        "CVE-2026-106443",
        "GHSA-r543-q48m-4c9j",
        "PYSEC-2026-4311"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/kozea/weasyprint",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "4d3b7b6449e3494f59c7c2f36b512d129225679c"
                },
                {
                  "fixed": "39cd37ce1610bd890388e26591c569db1cbab542"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "70.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "39cd37ce1610bd890388e26591c569db1cbab542"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4d3b7b6449e3494f59c7c2f36b512d129225679c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v70.0"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v69.0",
            "v68.1",
            "v68.0",
            "v67.0",
            "v66.0",
            "v65.0",
            "v64.1",
            "v64.0",
            "v63.1",
            "v63.0",
            "v62.1",
            "v62.0",
            "v61.1",
            "v61.0",
            "v60.1",
            "v60.0",
            "v59.0",
            "v58.1",
            "v59.0b1",
            "v58.0",
            "v58.0b1",
            "v57.1",
            "v57.0",
            "v57.0b1",
            "v56.0b1",
            "v55.0b1",
            "v54.0",
            "v54.0b1",
            "v53.0",
            "v53.0b2",
            "v53.0b1",
            "v51",
            "v50",
            "v49",
            "v48",
            "v47",
            "v46",
            "v45",
            "v44",
            "v43",
            "v43rc2",
            "v43rc1",
            "v0.42",
            "v0.41",
            "v0.40",
            "v0.39",
            "v0.38",
            "v0.37",
            "v0.36",
            "v0.35",
            "v0.34",
            "v0.33",
            "v0.32",
            "v0.31",
            "v0.30",
            "v0.29",
            "v0.28",
            "v0.27",
            "v0.26",
            "v0.25",
            "v0.24",
            "v0.20.1",
            "v0.20",
            "v0.19.1",
            "v0.19",
            "v0.18",
            "v0.17.1",
            "v0.17",
            "v0.16",
            "v0.15",
            "v0.14",
            "v0.13",
            "v0.12",
            "v0.11",
            "v0.10",
            "v0.9",
            "v0.8",
            "v0.7",
            "v0.6",
            "v0.5",
            "v0.2",
            "v0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-106443.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.792457967Z",
      "provider": "osv",
      "references": [
        "https://github.com/Kozea/WeasyPrint/releases/tag/v70.0",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106443.json",
        "https://github.com/Kozea/WeasyPrint/security/advisories/GHSA-r543-q48m-4c9j",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-106443",
        "https://github.com/Kozea/WeasyPrint/commit/39cd37ce1610bd890388e26591c569db1cbab542"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/106xxx/CVE-2026-106443.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-106443",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497578,
  "published_at": "2026-10-06T18:57:43.477+00:00"
}