CVE-2021-21373 json
Nimble falls back to insecure http url when fetching packages
published 2021-03-26 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-8683
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- nim-lang nim 1.2.10, 1.4.4
- nim Debian 14, Debian 12 1.4.6+really1.4.2-1
debian advisories DEBIAN-CVE-2021-21373
- nim openSUSE Tumbleweed 1.2.12-1.7
- nim Package Hub 15 SP4, openSUSE Leap 15.4 1.6.6-bp154.2.3.1
- nim Package Hub 15 SP3, openSUSE Leap 15.3 1.6.6-bp153.2.3.1
- nim Package Hub 15 SP2 1.2.12-bp152.4.3.1
- nim openSUSE Leap 15.2 1.2.12-lp152.2.3.1
opensuse advisories openSUSE-SU-2024:11093-1openSUSE-SU-2022:10101-1openSUSE-SU-2022:10095-1openSUSE-SU-2021:0628-1openSUSE-SU-2021:0618-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-21373 updated cvss 5.9
nim: "nimble refresh" falls back to a non-TLS URL in case of errror
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- consensys.net https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L |
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected products
- nim-lang security
Classification
References
-
consensys.net
/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
exploit, third-party-advisory
-
github.com
/nim-lang/nimble/blob/master/changelog.markdown#0130
release-notes, third-party-advisory
-
github.com
/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
third-party-advisory
Sources
- CVE List CVE-2021-21373
- NVD CVE-2021-21373
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.