RCE in Nodepdf Project

CVE-2016-4991

Input passed to the Pdf() function is shell escaped and passed to child_process.exec() during PDF rendering. However, the shell escape does not properly encode all special characters, namely, semicolon and curly braces. This can be abused to achieve command execution. This problem affects nodepdf 1.3.0.

Vulnerability class: Command Injection (OS Command Injection)

EPSS: 0.017 (75.0th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2016-4991?
CVE-2016-4991 is a critical-severity vulnerability in Nodepdf Project, classified under Command Injection. CVSS score: 9.8/10. Published 2022-07-28.
How severe is CVE-2016-4991?
Critical severity. CVSS v3 base score is 9.8 out of 10.