Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400
- https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b1
- https://github.com/xhtml2pdf/xhtml2pdf/pull/835
- https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19
- https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injectio
FAQ
What is CVE-2026-110642?
CVE-2026-110642 is a vulnerability with a CVSS score of 7.8 (HIGH). 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 c...
How severe is CVE-2026-110642?
CVE-2026-110642 has been rated HIGH with a CVSS base score of 7.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-110642?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.