# CVE-2021-32830: Command injection in @diez/generation

- Severity: Low 3.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.92%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-08-17T18:00:13.000Z
- Modified: 2026-06-17T03:53:43.083Z
- Also known as: GHSA-8c3f-x5f9-6h62
- Weaknesses: CWE-77, CWE-78
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- diez diez: all
- @diez/generation (npm): up to 10.6.0
- haikuforteams diez: no versions given

## Every score

- GitHub_M: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 3.9 Low `CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection/> (exploit, third-party-advisory)
- <https://github.com/diez/diez> (package, third-party-advisory)
- <https://www.npmjs.com/package/%40diez/generation>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-32830> (advisory)
- <https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection> (advisory)
- <https://www.npmjs.com/package/@diez/generation> (web)

## Sources

- CVE List: [CVE-2021-32830](https://www.cve.org/CVERecord?id=CVE-2021-32830), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-8c3f-x5f9-6h62](https://github.com/advisories/GHSA-8c3f-x5f9-6h62), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-32830](https://nvd.nist.gov/vuln/detail/CVE-2021-32830), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-32830 · Whole record: https://cve.day/CVE-2021-32830.json · Rebuilt by cve.day 2026-11-25T22:58:03.277Z
