CVE Catalog

CVE-2026-110638

CriticalCVSS 9.8
Published: Translated: NVD NIST

Summary

doc-recog through 1.1.6 contains an OS command injection vulnerability. Attackers can supply crafted document paths to recog() or tag(), embedding $(...) or backtick command substitution in the file path that DocData._readPDF passes to a shell-based pdftotext exec call, running commands with Node.js process privileges.

Risk Assessment

An attacker can execute arbitrary commands in the context of the Node.js application, potentially leading to server compromise, data theft, or further privilege escalation.

Recommendation

Update doc-recog to a version later than 1.1.6 or validate and sanitize document paths before passing them to recog() and tag().

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS