Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-110642— xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name

Quick assessment

Affected
xhtml2pdf xhtml2pdf
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

在 xhtml2pdf 0.2.19 版本之前,pisa.startViewer() 函数中存在一个操作系统命令注入漏洞。攻击者可以通过将未转义的文件名插入到 os.system 调用来执行任意命令。当使用 pisa 工具的 -s/--start-viewer 选项时,攻击者可以提供一个文件名中包含双引号和 shell 元字符的输入文件,从而以调用该工具的用户权限执行操作系统命令。

CVSS 7.8 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
xhtml2pdf xhtml2pdf < 0.2.19 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-110642

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
xhtml2pdf before 0.2.19 OS Command Injection via startViewer File Name
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
xhtml2pdf xhtml2pdf 0 ~ 0.2.19 -

II. Public POCs for CVE-2026-110642

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-110642

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-110642 (1)

Other References for CVE-2026-110642 (3)

Other References for CVE-2026-110642 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-110642

No comments yet


Leave a comment