CVE-2018-3757: Command Injection in pdf-image

pdf-image Updated 02 Oct 2025

Summary

01/09/2020
Yes i
Critical
9.8

CVE-2018-3757: Command Injection in pdf-image. Affects pdf-image versions < 2.0.0. Fixed in 2.0.0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

pdf-image is an npm package that allows users to convert PDF files into images. It is commonly used in applications that require PDF manipulation or image extraction from PDFs. The package provides a convenient way to convert PDF files to various image formats. However, versions prior to 2.0.0 are vulnerable to command injection.

Vulnerability Detail

The vulnerability in pdf-image arises when the attacker gains control over the pdfFilePath variable passed into the package. This allows them to inject arbitrary commands, leading to command execution on the host system. The impact of this vulnerability is critical, as an attacker can execute arbitrary commands with the privileges of the user running the application. This can result in unauthorized access, data leakage, or even complete compromise of the host system.

How To Fix

Latest published version: 2.0.0 as of 22 Oct 2026

npm install pdf-image@2.0.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Conclusion

The vulnerability in pdf-image allows for command injection, which can lead to unauthorized access and compromise of the host system. It is crucial to update the package to version 2.0.0 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for pdf-image →

Share this vulnerability

FAQ

pdf-image is an npm package used for converting PDF files to images.

Command injection is a vulnerability that allows an attacker to execute arbitrary commands on a host system.

An attacker can exploit this vulnerability by controlling the pdfFilePath variable passed into pdf-image and injecting malicious commands.

The consequences of this vulnerability include unauthorized access, data leakage, and potential compromise of the host system.

Updating the pdf-image package to version 2.0.0 or later will protect your application from this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for pdf-image.

How To Fix

Latest published version: 2.0.0 as of 22 Oct 2026

npm install pdf-image@2.0.0

The newest release already contains this fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback