7.3high
node-qpdf vulnerable to command injection
- Severity
- 7.3high CVSS:3.1 by snyk
- Exploit likelihood
- 2.19% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- snyk
- Also known as
- GHSA-fpr8-4wvx-j9q3
Description
All versions of the package node-qpdf are vulnerable to Command Injection such that the package-exported method encrypt() fails to sanitize its parameter input, which later flows into a sensitive command execution API. As a result, attackers may inject malicious commands once they can specify the input pdf file path.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| node-qpdf | before * | CVE List |
| node-qpdf (npm) | up to 1.0.3 | GitHub Advisory Database |
| nrhirani node-qpdf | Not specified | NVD |
All scores
| snyk | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P |
| GitHub | 7.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 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
All versions of the package node-qpdf are vulnerable to Command Injection such that the package-exported method encrypt() fails to sanitize its parameter input, which later flows into a sensitive command execution API. As a result, attackers may inject malicious commands once they can specify the input pdf file path.
NVD (es)
Todas las versiones del paquete node-qpdf son vulnerables a la inyección de comandos, de modo que el método encrypt() exportado por el paquete no puede sanitizar su entrada de parámetros, que luego fluye hacia una API de ejecución de comandos confidencial. Como resultado, los atacantes pueden inyectar comandos maliciosos una vez que puedan especificar la ruta del archivo pdf de entrada.
References
| https://security.snyk.io/vuln/SNYK-JS-NODEQPDF-5747918 | exploit, third-party-advisory, web | |
| https://github.com/nrhirani/node-qpdf/issues/23 | exploit, issue-tracking, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-26155 | advisory | |
| https://github.com/nrhirani/node-qpdf | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26155 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fpr8-4wvx-j9q3 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2023-26155 changed 2026-06-17 | Public domain |