Improper Certificate Validation in nim - CVE-2021-21374

 

Improper Certificate Validation in nim - CVE-2021-21374

Published: April 29, 2021


Vulnerability identifier: #VU52765
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-21374
CWE-ID: CWE-295
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: nim-lang.org
Affected software:
nim

Detailed vulnerability description

The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to "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. A remote attacker can perform MitM attack and deliver a modified package list containing malicious software packages


How to mitigate CVE-2021-21374

Install updates from vendor's website.

Sources