Vulnerability · Published Mar 26, 2021 · Assigned by GitHub_M

CVE-2021-21373Nimble falls back to insecure http url when fetching packages

High 7.5

In plain English

A high-severity security flaw in security from nim-lang. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 67% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)1.2%top 32.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nim1.4.6+really1.4.2-1DEBIAN-CVE-2021-21373
Debian:14nim1.4.6+really1.4.2-1DEBIAN-CVE-2021-21373
Ubuntu:24.04:LTSnimno fix listedUBUNTU-CVE-2021-21373
Ubuntu:25.10nimno fix listedUBUNTU-CVE-2021-21373
Ubuntu:26.04:LTSnimno fix listedUBUNTU-CVE-2021-21373
Ubuntu:26.10nimno fix listedUBUNTU-CVE-2021-21373

Affected products (as reported)

VendorProductVersions
nim-lang security < 1.2.10>= 1.4.0, < 1.4.4

Weakness: CWE-348 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L

References