CVE-2021-29495
Nim vulnerability analysis and mitigation

Overview

Nim, a statically typed compiled systems programming language, contained a security vulnerability (CVE-2021-29495) in its standard library before version 1.4.2. The vulnerability involved the httpClient SSL/TLS certificate verification being disabled by default, potentially exposing applications to man-in-the-middle attacks (GitHub Advisory, NVD).

Technical details

The vulnerability was assigned a CVSS v3.1 base score of 7.5 (HIGH) by NVD and 5.9 (MEDIUM) by GitHub. The vulnerability is classified under CWE-295 (Improper Certificate Validation). The issue specifically relates to the default configuration of the httpClient component in the Nim standard library, where SSL/TLS certificate verification was disabled by default, potentially allowing for unauthorized access and data manipulation (NVD).

Impact

The vulnerability could allow attackers to perform man-in-the-middle attacks due to the lack of proper certificate validation. This could potentially lead to unauthorized data manipulation and compromise of secure communications (GitHub Advisory).

Mitigation and workarounds

Users can mitigate this vulnerability by either upgrading to Nim version 1.4.2 or later, which includes the patch, or by explicitly setting 'verifyMode = CVerifyPeer' as documented in the configuration (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