CVE-2022-46161CWE-94

Code injection in pdfmake

Critical · published December 6, 2022

CVSS v3.1
10.0
EPSS
2%
Percentile
77.4
In the wild
Unconfirmed
What it is

🚨 A crafty input evaluation in pdfmake could let attackers run arbitrary code on your server! 🔥 Think of pdfmake as a restaurant kitchen that uses customer recipes without checking for allergies—anyone could sneak in dangerous ingredients without the chefs knowing! 🍽️ An attacker gaining control could execute malicious code, leading to devastating consequences like data breaches, unauthorized access, or even complete takeover of your system. It's absolutely critical to protect your environment from this vulnerability before it’s too late!

Put simply

Think of pdfmake as a restaurant kitchen that uses customer recipes without checking for allergies—anyone could sneak in dangerous ingredients without the chefs knowing! 🍽️ This vulnerability arises because pdfmake allows unsafe evaluation of user-controlled input, enabling an attacker to execute arbitrary code in the process where pdfmake runs. This is a significant risk as it can affect the integrity and confidentiality of your applications.

What to do

An attacker gaining control could execute malicious code, leading to devastating consequences like data breaches, unauthorized access, or even complete takeover of your system. It's absolutely critical to protect your environment from this vulnerability before it’s too late! Since there are currently no known fixes, restrict access to your pdfmake implementation, ensuring that only trusted user input is processed. Review your input validation procedures and consider isolating the environment where pdfmake operates to minimize the risk. Stay alert for updates from pdfmake in the future! You’ve got this! By taking these proactive steps, you can protect your application from potential attacks. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01729 · 77.4th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2022-12-06T18:47Z
EPSS history
Timeline
  • 06 DEC 18:47Z
    Code injection in pdfmake
    cvelistv5