{"id":"UBUNTU-CVE-2026-110642","details":"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.","modified":"2026-10-17T12:59:52.134103371Z","published":"2026-10-15T00:00:00Z","upstream":["CVE-2026-110642"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-110642"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-110642"},{"type":"REPORT","url":"https://github.com/xhtml2pdf/xhtml2pdf/blob/v0.2.18/xhtml2pdf/pisa.py#L393-L400"},{"type":"REPORT","url":"https://github.com/xhtml2pdf/xhtml2pdf/commit/f86380dad15b3a6810201d08755a3ee6b19d5063"},{"type":"REPORT","url":"https://github.com/xhtml2pdf/xhtml2pdf/pull/835"},{"type":"REPORT","url":"https://github.com/xhtml2pdf/xhtml2pdf/releases/tag/v0.2.19"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/xhtml2pdf-before-0.2.19-os-command-injection-via-startviewer-file-name"}],"affected":[{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2b-1","0.2b-2","0.2.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-xhtml2pdf","binary_version":"0.2.1-1"},{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.2-3","0.2.2-3build1","0.2.2-5","0.2.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.4-1","0.2.4-1ubuntu1","0.2.5-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.2.5-1","binary_name":"python3-xhtml2pdf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.5-3","0.2.5-5"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.5-5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.17+dfsg-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}},{"package":{"name":"xhtml2pdf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/xhtml2pdf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.2.17+dfsg-1ubuntu1","0.2.17+dfsg-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-xhtml2pdf","binary_version":"0.2.17+dfsg-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-110642.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}