{"id":"CVE-2021-21374","aliases":["CVE-2021-21374"],"related":[],"kind":"vulnerability","state":"published","title":"Nimble fails to validate certificates due to insecure httpClient defaults","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Nimble es un administrador de paquetes para el lenguaje de programación Nim.&#xa0;En las versiones de lanzamiento de Nim anteriores a 1.2.10 y 1.4.4, \"nimble refresh\" extrae una lista de paquetes de Nimble por medio de HTTPS sin una comprobación completa del certificado SSL/TLS debido a la configuración predeterminada de httpClient.&#xa0;Un atacante capaz de ejecutar un MitM puede entregar una lista de paquetes modificada que contenga paquetes de software malicioso.&#xa0;Si los paquetes son instalados y usados, el ataque se convierte en una ejecución de código que no es confiable.","source":"nvd"}],"published":"2021-03-26T21:25:14.000Z","modified":"2026-06-17T03:35:25.067Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-295","CWE-348","CWE-349","CWE-599"],"affected":[{"ranges":[{"version":"< 1.2.10","status":"affected"},{"version":">= 1.4.0, < 1.4.4","status":"affected"}],"vendor":"nim-lang","product":"security","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.2.10"},{"status":"affected","introduced":"1.4.0","fixed":"1.4.4"}],"vendor":"nim-lang","product":"nim","cpe":"cpe:2.3:a:nim-lang:nim:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/","tags":["exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130","tags":["release-notes","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/security/security/advisories/GHSA-c2wm-v66h-xhxx","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/nim-lang/Nim/pull/16940","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21374","url":"https://www.cve.org/CVERecord?id=CVE-2021-21374","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.923Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21374","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21374","licence":"Public domain","modified":"2026-06-17T03:35:25.067Z"}],"updatedAt":"2026-11-25T22:58:00.473Z","epss":{"score":0.0104,"percentile":0.64923,"date":"2026-12-01T12:00:22.000Z"}}