Vulnerabilities · 2021 · Nim-lang
CVE-2021-21372
Nim-lang Nim vulnerability
Nimble is a package manager for the Nim programming language. In Nim release version before versions 1.2.10 and 1.4.4, Nimble doCmd is used in different places and can be leveraged to execute arbitrary commands. An attacker can craft a malicious entry in the packages.json package list to trigger 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/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37 · 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-rg9f-w24h-962p · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2021-21372
- cve.org/CVERecord?id=CVE-2021-21372
More vulnerabilities in Nim-lang products
CVE-2022-23602CVE-2021-46872CVE-2021-29495CVE-2021-21374CVE-2021-21373CVE-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.