{"id":"CVE-2021-21374","published":"2021-03-26T21:25:14Z","modified":"2024-08-03T18:09:15Z","title":"Nimble fails to validate certificates due to insecure httpClient defaults","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 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0104,"percentile":0.63879,"provenance":"source"},"cwes":[{"id":"CWE-348","name":"Use of Less Trusted Source"},{"id":"CWE-599","name":"Missing Validation of OpenSSL Certificate"},{"id":"CWE-349","name":"Acceptance of Extraneous Untrusted Data With Trusted Data"}],"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-c2wm-v66h-xhxx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/nim-lang/Nim/pull/16940","tags":["x_refsource_MISC"]}],"priority":{"score":18.4,"factors":[{"name":"EPSS percentile","points":12.78},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"nim-lang","affectedVersions":[{"vendor":"nim-lang","product":"security","versions":["< 1.2.10",">= 1.4.0, < 1.4.4"]}],"euvd":{"id":"EUVD-2021-8684","exploited":false,"provenance":"source"}}