Skip to main content

doc-recog EUVDEUVD-2026-101266

| CVE-2026-110638 CRITICAL
OS Command Injection (CWE-78)
2026-10-14 VulnCheck GHSA-xjwr-pqr4-r7h8
9.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach app endpoint using doc-recog
  2. Delivery
    Supply file path with $(...)/backtick payload
  3. Exploit
    recog()/tag() invokes DocData._readPDF
  4. Execution
    Shell exec of pdftotext substitutes payload
  5. Persist
    Commands run as Node.js process
  6. Impact
    Full RCE / data compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that a consuming application pass an attacker-controlled document file path into doc-recog's recog() or tag() functions, which flow to DocData._readPDF; the attacker embeds shell command substitution ($(...) or backticks) in that path, which is interpreted by the shell-based pdftotext exec call in versions through 1.1.6. The CVSS vector indicates no authentication (PR:N) and no user interaction (UI:N), but the practical LIMITING factor is that doc-recog is a library - exploitability hinges on whether the downstream app exposes these path parameters to untrusted or remote input. If paths are hardcoded or validated by the consuming application, the flaw is not reachable. Resolved by upgrading past 1.1.6 (fix uses execFile with an argument array, eliminating shell interpretation).

Impact

This is a genuine high-severity flaw but its real-world priority is tempered by the obscurity of the affected component. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) and high VC/VI/VA scoring describe unauthenticated, low-complexity remote code execution with full confidentiality, integrity, and availability impact - consistent with CWE-78 OS command injection yielding execution under Node.js process privileges. The vulnerability is strongly confirmed at the code level: the vendor PR #2 diff shows the exact root cause (a shell-based child-process-promise 'exec' concatenating the user-supplied self.filepath into a pdftotext command line) and its fix (switch to 'execFile' with an argument array). However, several exploitation signals are MISSING rather than conflicting: there is no EPSS score, no CISA KEV listing, and no public POC referenced - so exploitation likelihood cannot be quantified. The AV:N rating also warrants scrutiny: doc-recog is a Node.js library, and network reachability is NOT intrinsic to the flaw - it depends entirely on whether a downstream application exposes recog()/tag() file-path input to untrusted/remote callers. Net assessment: technically critical and easily exploitable WHERE reachable, but likely low aggregate real-world risk given the package's minimal deployment footprint and absence of exploitation evidence. Prioritize only if doc-recog is confirmed in your dependency tree with untrusted path input.

Exploit ScenarioDerived

An application uses doc-recog and passes a user-influenced document path into recog() or tag(). An attacker submits a path containing shell command substitution such as '/tmp/$(id > /tmp/out).pdf' or backtick syntax, which DocData._readPDF concatenates into a shell-invoked pdftotext command, executing arbitrary commands with the Node.js process's privileges. No public exploit code is referenced, but the vendor PR diff clearly reveals the vulnerable exec call, making weaponization straightforward for an attacker who can reach the function with controlled input.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 2.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 14, 2026

OS command injection in doc-recog through 1.1.6 allows remote attackers to execute arbitrary commands with Node.js process privileges by supplying crafted document paths containing $(...) or backtick command substitution to the recog() or tag() functions, which flow to a shell-based pdftotext exec call in DocData._readPDF. The CVSS vector indicates no authentication (PR:N) and no user interaction (UI:N), but real-world exploitability hinges on whether a consuming application passes attacker-controlled paths into the library; if paths are hardcoded or validated downstream, the flaw is not reachable. No public exploit code has been identified at time of analysis, and the upstream fix (PR #2) switches to execFile with an argument array to eliminate shell interpretation.

RemediationAI

Apply the upstream fix in PR #2 (https://github.com/zepspaiva/doc-recog/pull/2) or move to a release that incorporates it; the change replaces exec() with execFile() and passes pdftotext arguments as an array, removing shell interpretation. Because the fix is a GitHub pull request rather than a confirmed tagged release, verify that a published version past 1.1.6 includes the commit before relying on a version bump alone. If upgrading is not immediately possible, consume doc-recog with strict input validation: never pass untrusted or remotely supplied file paths to recog() or tag(), normalize and reject paths containing shell metacharacters such as $, (, ), backtick, ;, &, and |, and resolve paths to a fixed allow-listed directory; note that path validation is error-prone and does not remove the underlying shell-invocation flaw. Running extraction in a sandbox or container with least privilege, no network, and a read-only filesystem limits impact but adds operational overhead and does not substitute for the patch. Refer to the vendor advisory at https://www.vulncheck.com/advisories/doc-recog-through-1.1.6-os-command-injection-via-docdata-readpdf-file-path for additional guidance.

Affected VersionsENISA

doc-recog 0 ≤1.1.6

Affected Packages

euvd doc_recog no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is an OS command injection (CWE-78) in the Node.js document-recognition library doc-recog. In versions through 1.1.6, DocData._readPDF constructs a shell command string by joining path.join(self.binpath, 'pdftotext'), '-bbox', a double-quoted self.filepath, and a temp file, then passes that string to child-process-promise's exec(), which invokes a shell. Because the file path is concatenated with only double quotes, an attacker controlling the path can embed shell command substitution such as $(...) or backticks, causing arbitrary command execution under the privileges of the Node.js process. The CPE cpe:2.3:a:zepspaiva:doc-recog:*:*:*:*:*:*:*:* identifies the affected package as zepspaiva/doc-recog with a wildcard version range, while the description narrows affected versions to through 1.1.6. The vendor fix, visible in PR #2, replaces exec() with execFile() and passes arguments as an array so no shell is invoked and the file path cannot be interpreted as shell syntax; the patch deliberately drops the surrounding quotes because quoting is a shell concern.

Know when Node.js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.3 CRITICAL
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
vuln.today AI 9.8 CRITICAL

Command injection via unvalidated file path yields RCE as the Node process with no auth or interaction; AV:N and PR:N assume the consuming app exposes the path to untrusted input, S:U as code runs within the same process authority.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

doc-recog releases through 1.1.6 carry a critical command injection flaw that could allow an unauthenticated remote attacker to run arbitrary commands on any server that feeds untrusted document paths into the library's recog() or tag() functions, executing with the full privileges of the host Node.js process. The real exposure sits with teams operating document ingestion, OCR, or file-conversion services that accept user-supplied paths, where a single crafted request could compromise the service and anything reachable from it. Leadership should prioritize this for internet-facing pipelines, while noting that internal deployments passing only hardcoded or validated paths are not reachable and can be remediated on a normal cycle.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
2.7%
Top 14% exploitable
Prevalence
Rare
obscure single-author npm package, negligible enterprise deployment footprint
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 2.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

CVE-2025-68613 HIGH POC
8.8 Dec 19

Remote code execution in n8n's workflow expression evaluation system allows an authenticated user with workflow creation

CVE-2024-41713 CRITICAL POC
9.1 Oct 21

A vulnerability in the NuPoint Unified Messaging (NPM) component of Mitel MiCollab through 9.8 SP1 FP2 (9.8.1.201) could

CVE-2024-55591 CRITICAL POC
9.8 Jan 14

FortiOS and FortiProxy contain an authentication bypass via the Node.js websocket module allowing unauthenticated remote

CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2014-7205 CRITICAL POC
10.0 Oct 08

Eval injection vulnerability in the internals.batch function in lib/batch.js in the bassmaster plugin before 1.5.2 for t

CVE-2025-59528 CRITICAL POC
10.0 Sep 22

Flowise version 3.0.5 contains a remote code execution vulnerability in the CustomMCP node. The mcpServerConfig paramete

CVE-2017-14849 HIGH POC
7.5 Sep 28

Node.js 8.5.0 before 8.6.0 allows remote attackers to access unintended files, because a change to ".." handling was inc

CVE-2017-5941 CRITICAL POC
9.8 Feb 09

An issue was discovered in the node-serialize package 0.0.4 for Node.js. Rated critical severity (CVSS 9.8), this vulner

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2014-3744 HIGH POC
7.5 Oct 23

Directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary fi

CVE-2014-9566 HIGH POC
7.5 Mar 10

Multiple SQL injection vulnerabilities in the Manage Accounts page in the AccountManagement.asmx service in the Solarwin

CVE-2013-4660 MEDIUM POC
6.8 Jun 28

The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, whic

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy