# CVE-2026-110642: xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

- Severity: High 8.5 (CVSS:4.0, scored by VulnCheck) `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`
- 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): 1.15%, higher than 67% of CVEs (2026-11-30)
- Published: 2026-10-14T14:17:12.576Z
- Modified: 2026-10-15T14:47:05.720Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- xhtml2pdf xhtml2pdf: before 0.2.19

## Every score

- VulnCheck: CVSS:4.0 8.5 High `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`
- VulnCheck: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/xhtml2pdf/xhtml2pdf/pull/835> (issue-tracking, patch)
- <https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063> (patch)
- <https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19> (release-notes)
- <https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400> (technical-description)
- <https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-file-name> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-110642](https://www.cve.org/CVERecord?id=CVE-2026-110642), CVE Terms of Use, modified 2026-10-14
- NVD: [CVE-2026-110642](https://nvd.nist.gov/vuln/detail/CVE-2026-110642), Public domain, modified 2026-10-15

---

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