CVE-2026-110638
doc-recog through 1.1.6 contains an OS command injection …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/zepspaiva/doc-recog
- github.com/zepspaiva/doc-recog/blob/96d31957fbc2a31f1d739e2d64e5c85a05f688ec/docdata.js#L6
- github.com/zepspaiva/doc-recog/pull/2
- www.vulncheck.com/advisories/doc-recog-through-1.1.6-os-command-injection-via-docdata-read
- nvd.nist.gov/vuln/detail/CVE-2026-110638
- cve.org/CVERecord?id=CVE-2026-110638
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.