Skip to main content
No exploitation reportedFix available

CVE-2021-21373

No exploitation reported by the sources we read.

  • Published2021-03-26
  • Fixed in1.4.4 · 1.2.10
  • WeaknessCWE-295 · CWE-348

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2021-03-2622:15CVE publishedNVD

Versions per branch

NVD
Nim-lang nim
BranchAffectedFixed in
1.4≥ 1.4.0, < 1.4.41.4.4
1.2< 1.2.101.2.10

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • nimUbuntu:26.10all versions · no fixed version listed
  • nimUbuntu:26.04:LTSall versions · no fixed version listed
  • nimUbuntu:25.10all versions · no fixed version listed
  • nimUbuntu:24.04:LTSall versions · no fixed version listed
  • nimUbuntu:20.04:LTSall versions · no fixed version listed
  • nimUbuntu:18.04:LTSall versions · no fixed version listed
  • nimUbuntu:16.04:LTSall versions · no fixed version listed
  • nimSUSE:Package Hub 15 SP4all versions · fixed in 1.6.6-bp154.2.3.1

8 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-21373 Red Hat Product Security

    nim: "nimble refresh" falls back to a non-TLS URL in case of errror

Full record on NVD

Fix

  1. Update Nim-lang nim to 1.4.4 · 1.2.10

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CNACVSS 3.17.5known since 2026-10-23
  • NVDCVSS 3.15.9read 2026-10-23
  • NVDCVSS 2.04.3read 2026-10-23
  • CNAweakness (CWE)CWE-348known since 2026-10-23
  • NVDweakness (CWE)CWE-295read 2026-10-23
  • FIRST EPSSEPSS score1.2 %2026-11-18
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2021-03-26
Last Modified
2026-06-17
NVD status
Modified

Frequently asked questions

What is 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.

Is CVE-2021-21373 actively exploited?

Active exploitation of CVE-2021-21373 has not been confirmed. Its EPSS score was 1.2% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-21373?

CVE-2021-21373 has a CVSS v3 base score of 5.9 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running nim? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record