Vulnerability Details : CVE-2021-21373
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 by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. 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.
Products affected by CVE-2021-21373
- cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:*
- cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-21373
0.08%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 32 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-21373
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
4.3
|
MEDIUM | AV:N/AC:M/Au:N/C:N/I:P/A:N |
8.6
|
2.9
|
NIST | |
5.9
|
MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
2.2
|
3.6
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L |
1.6
|
5.3
|
GitHub, Inc. |
CWE ids for CVE-2021-21373
-
The product does not validate, or incorrectly validates, a certificate.Assigned by: nvd@nist.gov (Primary)
-
The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.Assigned by: security-advisories@github.com (Secondary)
References for CVE-2021-21373
-
https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130
nimble/changelog.markdown at master · nim-lang/nimble · GitHubRelease Notes;Third Party Advisory
-
https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
Nimble falls back to insecure http url when fetching packages · Advisory · nim-lang/security · GitHubThird Party Advisory
-
https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
Nim - Insecure SSL/TLS Defaults, MitM, and nimble shell command injection | ConsenSys DiligenceExploit;Third Party Advisory
Jump to