CVE-2021-21374

Nimble fails to validate certificates due to insecure httpClient defaults

HIGH
8.1
CVSS Score
Published: March 26, 2021 at 09:25 PM UTC
Updated: June 17, 2026 at 03:35 AM UTC
2 products affected across 1 vendorNimLang Nim

Using security by nim-lang?

Get instant alerts when new vulnerabilities affect security - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.1
Exploit prediction
EPSS 1%

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 without full verification of the SSL/TLS certificate due to the default setting of httpClient. 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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.2.101.4.0 ≤ v < 1.4.4
Affected range stops below 1.2.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.4.4, so it looks safe — our inference, not a vendor statement
v < 1.2.10v < 1.4.4
Affected range stops below 1.2.10, so it looks safe — our inference, not a vendor statement
Affected range stops below 1.4.4, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

Patch and advisory references

CVSS

8.1HIGHGitHub_M
Attack Vector
NETWORK
Complexity
HIGH
Privileges
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
LOW
Integrity
HIGH
Availability
LOW
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-348CWE-349CWE-599CWE-295

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card