Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-29495 EUVD-2021-16092

Nim stdlib httpClient does not validate peer certificates by default

Published May 7, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
nim-lang security < 1.4.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 nim 1.4.2-1 —
Debian 12 nim 1.4.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS nim No fix yet —
Ubuntu 18.04 LTS nim No fix yet —
Ubuntu 16.04 LTS nim No fix yet —
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP4 nim 1.6.6-bp154.2.3.1 openSUSE-SU-2022:10101-1
SUSE Package Hub 15 SP3 nim 1.6.6-bp153.2.3.1 openSUSE-SU-2022:10095-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed nim 1.6.6-3.1 openSUSE-SU-2024:12253-1
openSUSE Leap 15.4 nim 1.6.6-bp154.2.3.1 openSUSE-SU-2022:10101-1
openSUSE Leap 15.3 nim 1.6.6-bp153.2.3.1 openSUSE-SU-2022:10095-1

Advisories 3

References