CVE-2021-21373
Nim vulnerability analysis and mitigation

Overview

CVE-2021-21373 is a security vulnerability affecting Nimble, the package manager for the Nim programming language, in versions prior to 1.2.10 and 1.4.4. The vulnerability was discovered in February 2021 and publicly disclosed on March 26, 2021. The issue relates to insecure fallback behavior when fetching package lists, where Nimble would default to an unencrypted HTTP connection if HTTPS fails (GitHub Advisory).

Technical details

When executing the 'nimble refresh' command to fetch package lists, if an HTTPS connection fails, Nimble automatically falls back to using an insecure HTTP URL (http://irclogs.nim-lang.org/packages.json). This fallback behavior occurs without proper user notification or consent. The vulnerability has been assigned a CVSS v3.1 score of 7.5 (High), with the following metrics: Attack Vector: Network, Attack Complexity: High, Privileges Required: None, User Interaction: Required, Scope: Changed, Confidentiality: Low, Integrity: High, Availability: Low (GitHub Advisory).

Impact

An attacker capable of performing a Man-in-the-Middle (MitM) attack can exploit this vulnerability to deliver modified package lists containing malicious software packages. If these compromised packages are subsequently installed and used, the attack can escalate to untrusted code execution on the target system (GitHub Advisory, Consensys).

Mitigation and workarounds

The vulnerability has been patched in Nim versions 1.2.10 and 1.4.4. Users are advised to upgrade to these or later versions to protect against this security issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Nim vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2021-21372HIGH8.8
  • NimNim
  • nim
NoYesMar 26, 2021
CVE-2021-21374HIGH8.1
  • NimNim
  • nim
NoYesMar 26, 2021
CVE-2021-29495HIGH7.5
  • NimNim
  • nim
NoYesMay 07, 2021
CVE-2021-46872MEDIUM6.1
  • NimNim
  • nim
NoYesJan 13, 2023
CVE-2021-21373MEDIUM5.9
  • NimNim
  • nim
NoYesMar 26, 2021

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management