CVE-2026-110638

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

Published Oct 14, 2026 CVSS 4.0 · 9.3 Critical EPSS 2.7% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

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. The flaw directly injects user-supplied data into a shell command, enabling arbitrary command execution, a classic instance of CWE‑78.

Affected Systems

The affected product is the Node.js library doc‑recog from the vendor zepspaiva, specifically versions up to and including 1.1.6. Any application that imports doc‑recog and calls the functions recog() or tag() with user‑controlled file paths is vulnerable. No other versions or related products were listed in the CNA data.

Risk and Exploitability

The CVSS score of 9.3 reflects a high severity and a local or remote threat model depending on how the library is used. EPSS score of 0.02727 indicates a low but non‑zero exploitation probability; the KEV listing is absent, so no known widespread attacks have been reported. The likely attack vector is a crafted file path supplied to tag() or recog(), which may be possible remotely if the calling application processes documents from untrusted sources, or locally if an attacker can influence the input. The impact, if exploited, would be equivalent to running arbitrary commands on the host running the Node.js process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade doc-recog to the latest released version that removes the shell‑based pdftotext invocation.
  • Immediately sanitize any path passed to DocData._readPDF: reject or escape characters that allow shell expansion, such as $(), backticks, and spaces.
  • If an upgrade is impossible, replace the internal call to pdftotext with a non‑shell execFile or equivalent technique, or enforce a trusted directory policy to prevent arbitrary file paths from reaching the vulnerable function.

Generated by OpenCVE AI on October 15, 2026 at 20:59 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Zepspaiva
Zepspaiva doc-recog
Vendors & Products Zepspaiva
Zepspaiva doc-recog
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title doc-recog through 1.1.6 OS Command Injection via DocData._readPDF File Path
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, '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'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 16, 2026, 5:15 PM
Reserved
Oct 14, 2026, 1:07 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 16, 2026, 7:03 PM