CVE-2021-21374
CVSS V2 Medium 6.8
CVSS V3 High 8.1
Description
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.
Overview
- CVE ID
- CVE-2021-21374
- Assigner
- security-advisories@github.com
- Vulnerability Status
- Analyzed
- Published Version
- 2021-03-26T22:15:12
- Last Modified Date
- 2021-03-30T21:36:49
Weakness Enumerations
CPE Configuration (Product)
CPE | Vulnerable | Operator | Version Start | Version End |
---|---|---|---|---|
cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:* | 1 | OR | 1.2.10 | |
cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:* | 1 | OR | 1.4.0 | 1.4.4 |
CVSS Version 2
- Version
- 2.0
- Vector String
- AV:N/AC:M/Au:N/C:P/I:P/A:P
- Access Vector
- NETWORK
- Access Compatibility
- MEDIUM
- Authentication
- NONE
- Confidentiality Impact
- PARTIAL
- Integrity Impact
- PARTIAL
- Availability Impact
- PARTIAL
- Base Score
- 6.8
- Severity
- MEDIUM
- Exploitability Score
- 8.6
- Impact Score
- 6.4
CVSS Version 3
- Version
- 3.1
- Vector String
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack Vector
- NETWORK
- Attack Compatibility
- HIGH
- Privileges Required
- NONE
- User Interaction
- NONE
- Scope
- UNCHANGED
- Confidentiality Impact
- HIGH
- Availability Impact
- HIGH
- Base Score
- 8.1
- Base Severity
- HIGH
- Exploitability Score
- 2.2
- Impact Score
- 5.9
References
Reference URL | Reference Tags |
---|---|
https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 | Release Notes Third Party Advisory |
https://github.com/nim-lang/Nim/pull/16940 | Patch Third Party Advisory |
https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx | Third Party Advisory |
https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ | Exploit Third Party Advisory |
Sources
Source Name | Source URL |
---|---|
NIST | https://nvd.nist.gov/vuln/detail/CVE-2021-21374 |
MITRE | https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21374 |
History
Created | Old Value | New Value | Data Type | Notes |
---|---|---|---|---|
2022-05-10 07:18:08 | Added to TrackCVE | |||
2022-12-06 00:33:50 | 2021-03-26T22:15Z | 2021-03-26T22:15:12 | CVE Published Date | updated |
2022-12-06 00:33:50 | 2021-03-30T21:36:49 | CVE Modified Date | updated | |
2022-12-06 00:33:51 | Analyzed | Vulnerability Status | updated |