CVE-2026-110638
doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Path
- State
- Published
- Severity
- 9.3 Critical
- Published
- Oct 14, 2026
- Updated
- Oct 16, 2026
- Reserved
- Oct 14, 2026
Description
doc-recog through 1.1.6 contains an OS command injection vulnerability that allows attackers to execute commands by supplying crafted document paths to recog() or tag(). Attackers can embed $(...) or backtick command substitution in the file path, which DocData._readPDF passes to a shell-based pdftotext exec call, running commands with Node.js process privileges.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 9.3 Critical | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 9.8 Critical | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | VulnCheck |
Weaknesses
- CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Products
| Product | Versions |
|---|---|
doc-recogzepspaiva |
|
References
- https://github.com/zepspaiva/doc-recog/pull/2issue-trackingpatch
- https://github.com/zepspaiva/doc-recog/blob/96d31957fbc2a31f1d739e2d64e5c85a05f688ec/docdata.js#L69-L74technical-description
- https://github.com/zepspaiva/doc-recogproduct
- VulnCheck Advisory: doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Paththird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.