← Back to search

CVE-2026-110642

7.8 HIGHpublic exploit available

Published 2026-10-14 · Updated 2026-10-15

AI risk analysis

Summary
xhtml2pdf before 0.2.19 has an OS command injection in pisa.startViewer() where unescaped file names containing shell metacharacters are passed directly to os.system, allowing local attackers with user interaction to execute arbitrary commands as the invoking user.
Exploitability
Exploitation requires local access and user interaction (e.g., opening a maliciously crafted file via the -s/--start-viewer option), but is otherwise straightforward due to lack of input sanitization.
Blast radius
Successful exploitation grants full compromise of the invoking user’s privileges, enabling data theft, system modification, or lateral movement within the user’s scope.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to xhtml2pdf version 0.2.19 or later, which patches the vulnerability by properly escaping file names before use in os.system.
os-command-injectionrcelocalinput-sanitization-failure

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.