CVE-2022-21165

Arbitrary Command Injection

Critical · published August 29, 2022

CVSS v3.1
9.8
EPSS
3%
Percentile
87.7
In the wild
Unconfirmed
What it is

🔥 An arbitrary command injection vulnerability in font-converter could let attackers execute any command they like—imagine someone hijacking your printer to print their own nonsense! Think of the font-converter as a restaurant kitchen where chefs can choose any ingredient, but without a menu! If there's no oversight, anyone could drop in and make whatever dish they want, possibly ruining the entire meal. This vulnerability is absolutely devastating! An attacker could exploit it to run commands on your system, potentially accessing sensitive data, installing malware, or worse—taking over your server entirely! The risks are sky-high for any application that relies on this package.

Put simply

Think of the font-converter as a restaurant kitchen where chefs can choose any ingredient, but without a menu! If there's no oversight, anyone could drop in and make whatever dish they want, possibly ruining the entire meal. The flaw arises from inadequate input sanitization before the input is passed to the child_process.exec() function, which can lead to unexpected and harmful command executions.

What to do

This vulnerability is absolutely devastating! An attacker could exploit it to run commands on your system, potentially accessing sensitive data, installing malware, or worse—taking over your server entirely! The risks are sky-high for any application that relies on this package. To protect yourself, update font-converter to the latest version that includes the necessary input validation. Always sanitize inputs when using exec() to ensure no malicious commands can be executed. Review your application's dependencies regularly. You've got this! Follow these steps to get your application secure and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03117 · 87.7th percentile
Published
2022-08-29T05:00Z
EPSS history
Timeline
  • 29 AUG 05:00Z
    Arbitrary Command Injection
    cvelistv5