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

High 8.5 Published Updated

Attackers can execute arbitrary OS commands via crafted filenames when using the startViewer feature in xhtml2pdf.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-110642?

CVE-2026-110642 is a high-severity command injection vulnerability in xhtml2pdf, published on 14 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78

Which versions are affected by CVE-2026-110642?

Linux distribution packages (1)
python-xhtml2pdf openSUSE:TumbleweedAll versions0.2.24-1.1

How do I fix CVE-2026-110642?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-110642 being exploited?

There is no known exploitation of CVE-2026-110642 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-110642, GHSA-p77q-xqj7-2552, UBUNTU-CVE-2026-110642, openSUSE-SU-2026:12160-1.

Is CVE-2026-110642 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free