CVEfocus › CVE database › CVE-2021-29495

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

CVSS 5.9 MediumEPSS 0.5% (higher than 35% of CVEs)Published 2021-05-07Updated 2024-08-03Assigner: GitHub_M

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.

CWE-295

What to do

Fixed builds are available from Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

2Fixed
3Fix pending
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04nimNot affected
vulnerable_code_not_present
Ubuntu 25.10nimNot affected
vulnerable_code_not_present
Ubuntu 24.04nimNot affected
vulnerable_code_not_present
Ubuntu 20.04nimFix pendingUBUNTU-CVE-2021-29495
Ubuntu 18.04nimFix pendingUBUNTU-CVE-2021-29495
Ubuntu 16.04nimFix pendingUBUNTU-CVE-2021-29495
Debian 14nimFixed1.4.2-1DEBIAN-CVE-2021-29495
Debian 12nimFixed1.4.2-1DEBIAN-CVE-2021-29495

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.