CVE-2022-46161 Code injection in pdfmake

Critical 10.0 Published Updated

pdfmake allows arbitrary code execution via unsafe evaluation of user-controlled input, requiring users to restrict input access as no fix is available.

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-2022-46161?

CVE-2022-46161 is a critical code injection vulnerability in bpampuch pdfmake, published on 6 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

pdfmake is an open source client/server side PDF printing in pure JavaScript. In versions up to and including 0.2.5 pdfmake contains an unsafe evaluation of user controlled input. Users of pdfmake are thus subject to arbitrary code execution in the context of the process running the pdfmake code. There are no known fixes for this issue. Users are advised to restrict access to trusted user input.

Weakness: CWE-94

Which versions are affected by CVE-2022-46161?

It affects 1 product.

Products include Pdfmake Pdfmake.

How do I fix CVE-2022-46161?

No fix has been published for CVE-2022-46161 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2022-46161 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-46161 exists.

Sources

Is CVE-2022-46161 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free