CVE-2016-4991 Command injection in nodepdf
Attackers can execute arbitrary commands via improper shell escaping in the Pdf function of the nodepdf library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2016-4991?
CVE-2016-4991 is a critical command injection vulnerability in nodepdf, published on 28 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-77
Which versions are affected by CVE-2016-4991?
It affects 1 product.
Products include Nodepdf Project Nodepdf.
How do I fix CVE-2016-4991?
No fix has been published for CVE-2016-4991 yet. Limit exposure of the affected software until one is available.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2016-4991 being exploited?
There is no known exploitation of CVE-2016-4991 in the wild and no public exploit code.
Sources
Also known as GHSA-p7w2-cg47-7v79.