Skip to content
Heist/ feed
Back to feed
High

xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

Type: advisorySources: OSV

xhtml2pdf before 0.2.19 contains an OS command injection vulnerability in pisa.startViewer() that allows attackers to execute commands by interpolating unescaped file names into os.system. Attackers can supply an input file whose name contains a double quote and shell metacharacters, which runs OS commands as the invoking user when the pisa tool is used with -s/--start-viewer.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-110642
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 03:20 UTC · Revision 1

Source evidence

xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

core-osv · Original source

Published 14 Oct 2026, 14:17 UTC

xhtml2pdf before 0.2.19 contains an OS command injection vulnerability in pisa.startViewer() that allows attackers to execute commands by interpolating unescaped file names into os.system. Attackers can supply an input file whose name contains a double quote and shell metacharacters, which runs OS commands as the invoking user when the pisa tool is used with -s/--start-viewer.

osv:CVE-2026-110642
Complete source record
{
  "id": "59dfaddeea35e8db920f6d7f58f446b85fcad125f2d2392c1aeff09b2ce83bbd",
  "url": "https://osv.dev/vulnerability/CVE-2026-110642",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name",
    "summary": "xhtml2pdf before 0.2.19 contains an OS command injection vulnerability in pisa.startViewer() that allows attackers to execute commands by interpolating unescaped file names into os.system. Attackers can supply an input file whose name contains a double quote and shell metacharacters, which runs OS commands as the invoking user when the pisa tool is used with -s/--start-viewer.",
    "evidence": "osv:CVE-2026-110642",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-110642",
      "aliases": [
        "CVE-2026-110642"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/xhtml2pdf/xhtml2pdf",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "ee609b0da20ac78a5a9abab8a932d547e2e6fecf"
                },
                {
                  "fixed": "f86380dad15b3a6810201d08755a3ee6b19d5063"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "0.2.19"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "f86380dad15b3a6810201d08755a3ee6b19d5063"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "ee609b0da20ac78a5a9abab8a932d547e2e6fecf"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v0.2.19"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v0.2.17",
            "v0.2.13",
            "v0.2.12",
            "v0.2.11",
            "0.2.10",
            "0.2.9",
            "v0.2.8",
            "v0.2.7",
            "v0.2.6",
            "v0.2.5",
            "0.2.5",
            "0.2.4",
            "0.2.2",
            "0.2.1",
            "0.2",
            "0.2b",
            "0.1b2",
            "0.1b1",
            "0.0.6",
            "0.0.5",
            "0.0.4",
            "0.0.3",
            "0.0.2"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-110642.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.040157248Z",
      "provider": "osv",
      "references": [
        "https://pypi.org",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110642.json",
        "https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-110642",
        "https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-file-name",
        "https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063",
        "https://github.com/xhtml2pdf/xhtml2pdf/pull/835",
        "https://github.com/xhtml2pdf/xhtml2pdf",
        "https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/110xxx/CVE-2026-110642.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-110642",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499986,
  "published_at": "2026-10-14T14:17:12.576+00:00"
}