{"id":"CVE-2021-21373","published":"2021-03-26T21:25:19Z","modified":"2024-08-03T18:09:15Z","title":"Nimble falls back to insecure http url when fetching packages","vendor":"nim-lang","product":"security","tier":"tail","description":{"text":"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 by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01155,"percentile":0.66895,"provenance":"source"},"cwes":[{"id":"CWE-348","name":"Use of Less Trusted Source"}],"references":[{"url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/","tags":["x_refsource_MISC"]},{"url":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130","tags":["x_refsource_MISC"]},{"url":"https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8","tags":["x_refsource_CONFIRM"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":13.38},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"nim-lang","affectedVersions":[{"vendor":"nim-lang","product":"security","versions":["< 1.2.10",">= 1.4.0, < 1.4.4"]}],"euvd":{"id":"EUVD-2021-8683","exploited":false,"provenance":"source"}}