{"id":"CVE-2021-32830","aliases":["EUVD-2021-2015","GHSA-8c3f-x5f9-6h62"],"status":"published","title":"Command injection in @diez/generation","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.","severity":{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01923,"percentile":0.80103,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-77","CWE-78"],"published":"2021-08-17T18:00:13Z","modified":"2026-06-17T03:53:43Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"@diez/generation","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"10.6.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@diez/generation","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"10.6.0"}]}]}],"products":[{"vendor":"diez","product":"diez"},{"vendor":"haikuforteams","product":"diez"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection/","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory"]},{"url":"https://github.com/diez/diez","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","package"]},{"url":"https://www.npmjs.com/package/%40diez/generation","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32830","tags":["advisory"]},{"url":"https://www.npmjs.com/package/@diez/generation","tags":["web"]},{"url":"https://github.com/advisories/GHSA-8c3f-x5f9-6h62"},{"url":"https://securitylab.github.com/advisories/GHSL-2021-061-diez-generation-cmd-injection","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-32830","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.","status":"published","published":"2021-08-17T18:00:13Z","modified":"2024-08-03T23:33:55.856Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:33:07.014772Z"}],"euvd":[{"id":"EUVD-2021-2015","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.","status":"published","published":"2021-08-17T18:00:13Z","modified":"2024-08-03T23:33:55Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low"}],"updated_at":"2026-11-03T03:24:35.30045Z"}],"ghsa":[{"id":"GHSA-8c3f-x5f9-6h62","title":"Command injection in @diez/generation","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.","status":"published","published":"2021-09-02T17:08:20Z","modified":"2023-02-01T05:05:53Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2021-32830","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.","status":"published","published":"2021-08-17T18:15:07.13Z","modified":"2026-06-17T03:53:43.083Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-78","CWE-77"],"updated_at":"2026-11-02T14:06:56.943671Z"}],"osv":[{"id":"GHSA-8c3f-x5f9-6h62","title":"Command injection in @diez/generation","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.","status":"published","published":"2021-09-02T17:08:20Z","modified":"2023-11-08T04:06:01.743612Z","cvss":[{"version":"3.1","score":3.9,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","level":"low"}],"cwes":["CWE-77","CWE-78"],"updated_at":"2026-11-02T15:46:42.077781Z"}]}}
