CVE-2026-110638zepspaiva doc-recog
OS Command Injection in doc-recog
Critical 9.3 No auth needed
Follow: this CVE · zepspaiva · zepspaiva doc-recog We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Oct 14, 2026
- Updated
- Oct 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
doc-recog through version 1.1.6 contains an OS command injection vulnerability in the recog() and tag() functions. An unauthenticated attacker can execute arbitrary commands by embedding command substitutions in document paths, which are passed to shell-based pdftotext calls with Node.js process privileges.
Show the original NVD text
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.
What to do
No patch data
Update doc-recog to a version newer than 1.1.6 when available. Validate and sanitize all document paths before processing.
- Apply the vendor's security update for doc-recog.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- zepspaiva · doc-recog
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.