cve.bz

CVE-2026-110642 xhtml2pdf xhtml2pdf: OS Command Injection

8.5 highEPSS 1.1%

High (8.5) in xhtml2pdf xhtml2pdf. EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

8.5 high
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

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-10-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-110642 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-110642?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-110642?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-110642 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
xhtml2pdfbefore 0.2.19

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14xhtml2pdfno fix listedDEBIAN-CVE-2026-110642
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morexhtml2pdfno fix listedUBUNTU-CVE-2026-110642
openSUSETumbleweedpython-xhtml2pdf0.2.24-1.1openSUSE-SU-2026:12160-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

An OS command injection flaw of IMPORTANT impact was found in xhtml2pdf, which Red Hat Quay products and services ship as a bundled dependency. The pisa.startViewer() function interpolates the input file name, without sanitization or escaping, into an os.system() call. When a user runs the pisa command-line tool with the -s/--start-viewer option on an input file whose name contains shell metacharacters (such as a double quote), an attacker can cause arbitrary operating system commands to be executed with the permissions of the invoking user. Exploitation requires local access and user interaction, because the victim must be convinced to process a file with a specially crafted name while using the viewer option; Red Hat rates this flaw as IMPORTANT (CVSS:3.1 7.8, AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H), consistent with the upstream severity assessment. The affected Red Hat Quay container images and Quay service components are marked AFFECTED with a DELEGATED resolution, meaning the Quay business unit is pursuing a fix for the bundled xhtml2pdf package.

Red Hat's mitigation

The vulnerable code path is only reached when the pisa tool is invoked with the -s/--start-viewer option. As a workaround, avoid using the start-viewer option and process only files with trusted file names until a release containing the upstream fix is deployed.

ProductPackageStateAdvisory
Red Hat Quay 3.16quay/quay-rhel9:1793993799Fixed 2026-11-11RHSA-2026:99022
Red Hat Quay 3.17quay/quay-rhel9:1793993778Fixed 2026-11-11RHSA-2026:99026
Red Hat Quay 3.18quay/quay-rhel9:1793993890Fixed 2026-11-11RHSA-2026:99019
Red Hat Quay 3quay/quay-rhel8Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-110642.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON