9.8critical
pdf-image has an OS Command Injection Vulnerability through its pdfFilePath parameter
- Severity
- 9.8critical CVSS:3.1 by mitre
- Exploit likelihood
- 2.74% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-q5mh-72xg-628w
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()
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| pdf-image (npm) | up to 2.0.0 | GitHub Advisory Database |
| pdf-image_project pdf-image | up to 2.0.0 | NVD |
All scores
| mitre | 9.8critical CVSS:3.1 | CVSS:3.1/AC:L/AV:N/A:H/C:H/I:H/PR:N/S:U/UI:N |
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Classification
What each source says
CVE List
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()
GitHub Advisory Database
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().
NVD (es)
pdf-image (paquete npm) hasta la versión 2.0.0 permite la inyección de comandos del sistema operativo a través del parámetro pdfFilePath. Las funciones constructGetInfoCommand y constructConvertCommandForPage usan util.format() para interpolar rutas de archivo controladas por el usuario en cadenas de comandos de shell que se ejecutan a través de child_process.exec().
References
| https://www.npmjs.com/package/pdf-image | product | |
| https://github.com/mooz/node-pdf-image | package, product | |
| https://github.com/zebbernCVE/CVE-2026-26830 | exploit, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-26830 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-26830 changed 2026-03-27 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q5mh-72xg-628w changed 2026-03-27 | CC-BY-4.0 |
| NVD | CVE-2026-26830 changed 2026-06-17 | Public domain |