{"id":"CVE-2021-21373","aliases":["CVE-2021-21373"],"related":[],"kind":"vulnerability","state":"published","title":"Nimble falls back to insecure http url when fetching packages","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 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.","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 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.","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, la \"nimble refresh\" extrae una lista de paquetes de Nimble por medio de HTTPS por defecto.&#xa0;En caso de error, recurre a una URL no TLS http://irclogs.nim-lang.org/packages.json.&#xa0;Un atacante capaz de ejecutar 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:19.000Z","modified":"2026-06-17T03:35:24.930Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-295","CWE-348"],"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-8w52-r35x-rgp8","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21373","url":"https://www.cve.org/CVERecord?id=CVE-2021-21373","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.923Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21373","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21373","licence":"Public domain","modified":"2026-06-17T03:35:24.930Z"}],"updatedAt":"2026-11-25T22:58:00.473Z","epss":{"score":0.01155,"percentile":0.67919,"date":"2026-12-01T12:00:22.000Z"}}