# CVE-2021-21372: Nimble arbitrary code execution for specially crafted package metadata

- Severity: High 8.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- 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): 3.62%, higher than 89% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-03-26T21:20:15.000Z
- Modified: 2026-06-17T03:35:24.803Z
- Weaknesses: CWE-20, CWE-74, CWE-78
- Assigned by: GitHub_M

## Description

Nimble is a package manager for the Nim programming language. In Nim release version before versions 1.2.10 and 1.4.4, Nimble doCmd is used in different places and can be leveraged to execute arbitrary commands. An attacker can craft a malicious entry in the packages.json package list to trigger code execution.

(As written by CVE List.)

## Affected

- nim-lang security: < 1.2.10; >= 1.4.0, < 1.4.4
- nim-lang nim: before 1.2.10; from 1.4.0 before 1.4.4

## Every score

- GitHub_M: CVSS:3.1 8.3 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/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://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/> (exploit, third-party-advisory)
- <https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p> (third-party-advisory)
- <https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130> (release-notes, third-party-advisory)
- <https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-21372](https://www.cve.org/CVERecord?id=CVE-2021-21372), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-21372](https://nvd.nist.gov/vuln/detail/CVE-2021-21372), Public domain, modified 2026-06-17

---

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