7.5
HIGH CVSS 3.1
CVE-2021-21373
"Nimble TLS Downgrade Man-in-the-Middle (MitM) Vulnerability"
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 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.

INFO

Published Date :

March 26, 2021, 10:15 p.m.

Last Modified :

Nov. 21, 2024, 5:48 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2021-21373 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Nim-lang nim
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 2.0 MEDIUM [email protected]
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
The Nim package manager is vulnerable to a man-in-the-middle attack, allowing for the potential execution of malicious code; updating the package is recommended.
  • Update the affected Nim packages to a version that is not vulnerable.
  • If necessary, rebuild and restart affected services.
References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-21373 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-21373 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-21373 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
    Added Reference https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130
    Added Reference https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Initial Analysis by [email protected]

    Mar. 31, 2021

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:N/AC:M/Au:N/C:N/I:P/A:N)
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ No Types Assigned https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ Exploit, Third Party Advisory
    Changed Reference Type https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 No Types Assigned https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8 No Types Assigned https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8 Third Party Advisory
    Added CWE NIST CWE-295
    Added CPE Configuration OR *cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.10 *cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:* versions from (including) 1.4.0 up to (excluding) 1.4.4
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 7.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Base CVSS Score: 4.3
Access Vector
Access Complexity
Authentication
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.16 }} -0.00%

score

0.37956

percentile