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.
Published: 2026-10-14
Score: 9.3 Critical
EPSS: 2.7% Low
KEV: No
Impact: OS Command Injection
Action: Upgrade Software
AI Analysis

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.

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

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 yet.

History

Mon, 19 Oct 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Zepspaiva
Zepspaiva doc-recog
Vendors & Products Zepspaiva
Zepspaiva doc-recog

Fri, 16 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Wed, 14 Oct 2026 14:30:00 +0000

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'}


Subscriptions

Zepspaiva Doc-recog
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-16T17:15:54.950Z

Reserved: 2026-10-14T13:07:32.721Z

Link: CVE-2026-110638

cve-icon Vulnrichment

Updated: 2026-10-16T16:48:50.848Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:16.997

Modified: 2026-10-16T19:03:18.127

Link: CVE-2026-110638

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T13:08:23Z

Weaknesses
  • CWE-78

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