CVE-2026-110642

NameCVE-2026-110642
Descriptionxhtml2pdf 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1152196

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
xhtml2pdf (PTS)bookworm0.2.5-3vulnerable
forky, sid, trixie0.2.17+dfsg-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
xhtml2pdfsource(unstable)(unfixed)unimportant1152196

Notes

https://github.com/xhtml2pdf/xhtml2pdf/commit/654f0de6ff4995eb058bfdf55dfa8ae4e4e3f154 (v0.2.21)
https://github.com/xhtml2pdf/xhtml2pdf/pull/835
Negligible security impact

Search for package or bug name: Reporting problems