CVE-2021-32830 Command injection in @diez/generation
The @diez/generation library allows remote code execution via command injection in the locateFont method when called with untrusted input.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-32830?
CVE-2021-32830 is a low-severity command injection vulnerability in diez, published on 17 Aug 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
The @diez/generation npm package is a client for Diez. The locateFont method of @diez/generation has a command injection vulnerability. Clients of the @diez/generation library are unlikely to be aware of this, so they might unwittingly write code that contains a vulnerability. This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input. All versions of this package are vulnerable as of the writing of this CVE.
Which versions are affected by CVE-2021-32830?
2 open source packages ship an affected version, including @diez/generation. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@diez/generation npm | All versions to 10.6.0 | None |
@diez/generation npm | All versions to 10.6.0 | None |
Products include Haikuforteams Diez.
How do I fix CVE-2021-32830?
No fix has been published for CVE-2021-32830 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-2021-32830 being exploited?
There is no known exploitation of CVE-2021-32830 in the wild and no public exploit code.
Sources
Also known as GHSA-8c3f-x5f9-6h62.