LiveActive security incident?Get immediate response
CVE Record

CVE-2021-29495: Nim stdlib httpClient does not validate peer certificates by default

Nim is a statically typed compiled systems programming language. In Nim standard library before 1.4.2, httpClient SSL/TLS certificate verification was disabled by default. Users can upgrade to version 1.4.2 to receive a patch or, as a workaround, set "verifyMode = CVerifyPeer" as documented.

MediumCVSS 5.9Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Nim applications using the standard httpClient before version 1.4.2 could make HTTPS requests without checking that the server certificate is trustworthy. A network attacker could impersonate or alter a connection, putting data integrity at risk when affected code relies on default settings.

Executive priority

Treat this as a targeted remediation item for Nim-based systems, especially internal automation or services making trusted HTTPS calls. It is not reported as actively exploited, but it can undermine trust in encrypted connections.

Technical view

CVE-2021-29495 is a CWE-295 certificate validation flaw in Nim standard library httpClient before 1.4.2. SSL/TLS peer certificate verification was disabled by default. The CVSS 3.1 score is 5.9, with network attack vector, high attack complexity, no privileges, no user interaction, and high integrity impact.

Likely exposure

Exposure is most likely in Nim services, tools, or scripts built with Nim standard library versions before 1.4.2 that use httpClient for HTTPS and did not explicitly enable peer verification.

Exploitation context

The source bundle does not report active exploitation, and KEV status is false. Practical exploitation would require a suitable network interception position and an affected client using insecure default TLS verification behavior.

Researcher notes

Focus review on Nim stdlib httpClient before 1.4.2 and TLS client configuration. The available sources identify the vulnerable default and workaround, but do not provide evidence of exploitation in the wild or additional affected products.

Mitigation direction

  • Upgrade Nim to version 1.4.2 or later where feasible.
  • As a documented workaround, set verifyMode = CVerifyPeer.
  • Audit Nim applications for stdlib httpClient HTTPS usage with default SSL settings.
  • Check the Nim advisory for any current vendor guidance.

Validation and detection

  • Inventory Nim compiler and standard library versions in affected projects.
  • Review code for httpClient usage without explicit peer certificate verification.
  • Confirm builds are using Nim 1.4.2 or later.
  • Test HTTPS client behavior rejects invalid or untrusted certificates.
Prepared
Confidence
high
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-295: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-29495 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.9 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.9CVSS 3.1MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N2.23.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.9Medium
CVSS 3.1 vector shape for CVE-2021-29495Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
nim-langsecurity< 1.4.2Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-295 · source CWE mapping

Improper Certificate Validation

Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.