# CVE-2026-110638: doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Path

Source: https://aplosec.si/cve/CVE-2026-110638/

[AploSec](https://aplosec.si/) / [Disclosures](https://aplosec.si/disclosures/) / CVE-2026-110638

Critical 9.3 · Reproduced · No fix listed · CWE-78 · npm

# doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Path

CVE-2026-110638 · published 2026-10-14

In plain words: this type of bug lets someone run their own commands on the server (command injection). No fixed release is listed yet.

## Summary

CVE-2026-110638 affects doc-recog (npm) <= 1.1.6: Command injection via DocData._readPDF File Path (CWE-78). No fixed release is listed. CVSS 4.0 base score 9.3 (Critical), assigned by VulnCheck. Published 2026-10-14 by VulnCheck. Credit: Zachariah Mithani.

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.

## Evidence

The exploit was run against the published artifact from the registry, not the repository. It created a marker file; a benign input through the same sink in the same session did not.

## Remediation

No fixed release was published at disclosure. Don't pass untrusted file names or strings to the affected functions, or apply the patch from the fix pull request.

## References

- [VulnCheck advisoryhttps://www.vulncheck.com/advisories/doc-recog-through-1.1.6-os-command-injection-via-docdata-readpdf-file-path](https://www.vulncheck.com/advisories/doc-recog-through-1.1.6-os-command-injection-via-docdata-readpdf-file-path)

- [Fix pull requesthttps://github.com/zepspaiva/doc-recog/pull/2](https://github.com/zepspaiva/doc-recog/pull/2)

- [Vulnerable codehttps://github.com/zepspaiva/doc-recog/blob/96d31957fbc2a31f1d739e2d64e5c85a05f688ec/docdata.js#L69-L74](https://github.com/zepspaiva/doc-recog/blob/96d31957fbc2a31f1d739e2d64e5c85a05f688ec/docdata.js#L69-L74)

- [CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-110638](https://www.cve.org/CVERecord?id=CVE-2026-110638)

**Severity:** Critical 9.3 CVSS 4.0, scored by VulnCheck in the [CVE record](https://www.cve.org/CVERecord?id=CVE-2026-110638)

**Package:** doc-recog

**Ecosystem:** npm

**Affected:** <= 1.1.6

**Fixed:** None

**Weakness:** CWE-78

**CNA:** VulnCheck

**Credit:** Zachariah Mithani finder
