7.5high
Nimble falls back to insecure http url when fetching packages
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.16% (higher than 67% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nim-lang security | < 1.2.10, >= 1.4.0, < 1.4.4 | CVE List |
| nim-lang nim | before 1.2.10, from 1.4.0 before 1.4.4 | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
Nimble es un administrador de paquetes para el lenguaje de programación Nim. 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. En caso de error, recurre a una URL no TLS http://irclogs.nim-lang.org/packages.json. Un atacante capaz de ejecutar MitM puede entregar una lista de paquetes modificada que contenga paquetes de software malicioso. Si los paquetes son instalados y usados, el ataque se convierte en una ejecución de código que no es confiable.
References
| https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ | exploit, third-party-advisory | |
| https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 | release-notes, third-party-advisory | |
| https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8 | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21373 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-21373 changed 2026-06-17 | Public domain |