Vulnerabilities · 2021 · Nim-lang
CVE-2021-21374
Nim-lang Nim vulnerability
Nimble is a package manager for the Nim programming language. In Nim release versions before versions 1.2.10 and 1.4.4, "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. An attacker able to perform MitM can deliver a modified package list containing malicious software packages. If the packages are installed and used the attack escalates to untrusted code execution.
Affected products
Nim. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nim-lang Nim runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nim-lang/Nim/pull/16940 · Patch
- consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-executio · Exploit
- github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 · Third Party Advisory
- github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21374
- cve.org/CVERecord?id=CVE-2021-21374
More vulnerabilities in Nim-lang products
CVE-2022-23602CVE-2021-46872CVE-2021-29495CVE-2021-21373CVE-2021-21372CVE-2020-23171CVE-2020-15694CVE-2020-15693All 11
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.