VDB
CVE-2021-21374
CVE-2021-21374
PUBLISHED
Nimble is a package manager for the Nim programming language. In Nim release versions before versions 1.2.10 and 1.4.4, "nimble refresh" fetches a list of Nimble packages over HTTPS without full verification of the SSL/TLS certificate due to the default setting of httpClient. An attacker able to perform MitM can deliver a modified package list containing malicious software packages. If the packages are installed and used the attack escalates to untrusted code execution.
EPSS 0.31% · 54.8th percentile
Risk Scores
EPSS Score
0.31%
54.8th percentile
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:18.04:LTS | nim | 0, 0.17.2-1ubuntu1, 0.17.2-1ubuntu2 |
| Ubuntu:24.04:LTS | nim | 0, 1.6.14-1, 1.6.14-1ubuntu1 |
| Ubuntu:16.04:LTS | nim | 0.11.2+dfsg1-4, 0.12.0-2, 0 |
| Ubuntu:20.04:LTS | nim | 1.0.4-1, 1.0.6-1, 0 |
| Ubuntu:25.10 | nim | 0, 2.2.4-1, 1.6.14-1ubuntu2 |
Exploit Intelligence
- https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ (nist-nvd)
- https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 (circl)
- https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx (circl)
- https://github.com/nim-lang/Nim/pull/16940 (circl)
Timeline
- Mar 26, 2021 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Dec 27, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
- Nov 6, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2021-21374 third-party-advisory
- https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ third-party-advisory
- https://www.cve.org/CVERecord?id=CVE-2021-21374 third-party-advisory