SB2021032634 - Multiple vulnerabilities in Nim programming languag
Published: March 26, 2021 Updated: April 29, 2021
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 3 secuirty vulnerabilities.
1) Code Injection (CVE-ID: CVE-2021-21372)
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to improper input validation in Nimble doCmd when processing entries in the packages.json package. A remote attacker can create a specially crafted entry in the packages.json file, trick the victim into loading the malicious package file and execute arbitrary code on the system.
2) Cleartext transmission of sensitive information (CVE-ID: CVE-2021-21373)
The vulnerability allows a remote attacker to perform MitM attack.
The vulnerability exists due to "nimble refresh" tries to fetch a list of Nimble packages over HTTP connection in case HTTPS connection fails. A remote attacker can perform MitM attack and deliver a modified package list containing malicious software packages
3) Improper Certificate Validation (CVE-ID: CVE-2021-21374)
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
Remediation
Install update from vendor's website.
References
- https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
- https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130
- https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37
- https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p
- https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8
- https://github.com/nim-lang/Nim/pull/16940
- https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx