Description
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()
Published: 2026-03-25
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Remote OS Command Execution
Action: Immediate Patch
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-q5mh-72xg-628w pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter
History

Fri, 03 Apr 2026 10:15:00 +0000

Type Values Removed Values Added
Title OS Command Injection in pdf‑image npm Package

Thu, 02 Apr 2026 20:30:00 +0000

Type Values Removed Values Added
First Time appeared Pdf-image Project
Pdf-image Project pdf-image
CPEs cpe:2.3:a:pdf-image_project:pdf-image:*:*:*:*:*:node.js:*:*
Vendors & Products Pdf-image Project
Pdf-image Project pdf-image

Fri, 27 Mar 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics ssvc

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


Thu, 26 Mar 2026 12:30:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Untrusted File Path in pdf-image NPM Package
Weaknesses CWE-78

Thu, 26 Mar 2026 12:00:00 +0000

Type Values Removed Values Added
First Time appeared Mooz
Mooz pdf-image
Vendors & Products Mooz
Mooz pdf-image

Wed, 25 Mar 2026 22:00:00 +0000

Type Values Removed Values Added
Title OS Command Injection via Untrusted File Path in pdf-image NPM Package
Weaknesses CWE-78

Wed, 25 Mar 2026 15:15:00 +0000

Type Values Removed Values Added
Description 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()
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N'}


Subscriptions

Mooz Pdf-image
Pdf-image Project Pdf-image
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-03-27T03:58:17.377Z

Reserved: 2026-02-16T00:00:00.000Z

Link: CVE-2026-26830

cve-icon Vulnrichment

Updated: 2026-03-27T03:58:13.661Z

cve-icon NVD

Status : Analyzed

Published: 2026-03-25T15:16:38.620

Modified: 2026-04-02T20:13:29.837

Link: CVE-2026-26830

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-04-03T09:39:09Z

Weaknesses