IT SBIT Services
Schneeberger
DEEN
CVE tracker

xhtml2pdf: OS command injection in startViewer via file name

CVE-2026-110642High 8.5

← All vulnerabilities

Summary

xhtml2pdf before 0.2.19 passes input file names unescaped into os.system in pisa.startViewer(). An attacker who can supply an input file with a crafted name containing shell metacharacters can run operating system commands as the user who invokes the pisa tool. The attack requires that the pisa command-line tool is run with -s/--start-viewer on such a file.

Affected

  • xhtml2pdf versions before 0.2.19
  • Earliest affected version: Unknown.

Fixed in

  • Version 0.2.19 or later

Workaround

  • Do not run pisa with -s/--start-viewer on file names that users or external systems control.
  • Run xhtml2pdf processes under a low-privilege account.
  • No vendor workaround is known; upgrading is the fix.

Exploitation

  • No evidence of exploitation in the wild was found.
  • No public proof of concept was found.
  • CISA SSVC assessment: exploitation none, automatable no, technical impact total.

Our recommendation

  • Upgrade xhtml2pdf to 0.2.19 or later, including copies installed with pip in virtualenvs and containers.
  • Check distribution packages and verify fixed versions with your distributor, as some trackers still list older versions.
  • Review scripts and CI jobs that call pisa with -s and remove the option or validate file names.
  • Monitor for unexpected child processes started by Python processes.

Public exploits

PoC-in-GitHub, Metasploit and Exploit-DB list nothing for this CVE.

Research sources

Researched and written up in English and German by an AI (Claude by Anthropic) based on NVD, CISA, EPSS and the sources listed. The vendor information is authoritative. Researched on 1 Nov 2026, 10:35.

Original description (NVD)

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.

NVD references (5)

Sources

The tracker combines official, freely usable data sources – updated continuously:

This product uses data from the NVD API but is not endorsed or certified by the NVD. EPSS data © FIRST.org.

Affected? We can help.

We check whether your systems are affected, install updates and close the gap – continuously with the System Health Checker if you wish.