Skip to content
OpenAdvisories
High · 7.8 CVE-2026-110642 EUVD-2026-101270GHSA-p77q-xqj7-2552

xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

Published Oct 14, 2026 · Updated Oct 14, 2026 · 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.

Affected products

VendorProductAffectedFixed
xhtml2pdf xhtml2pdf < 0.2.19 0.2.19

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 xhtml2pdf No fix yet —
Debian 13 xhtml2pdf No fix yet —
Debian 12 xhtml2pdf No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 xhtml2pdf No fix yet —
Ubuntu 26.04 LTS xhtml2pdf No fix yet —
Ubuntu 24.04 LTS xhtml2pdf No fix yet —
Ubuntu 22.04 LTS xhtml2pdf No fix yet —
Ubuntu 20.04 LTS xhtml2pdf No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS xhtml2pdf No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-xhtml2pdf 0.2.24-1.1 openSUSE-SU-2026:12160-1

Advisories 1

References