CVE-2021-21374
JSON

8.1high

Nimble fails to validate certificates due to insecure httpClient defaults

Severity
8.1high CVSS:3.1 by GitHub_M
Exploit likelihood
1.04% (higher than 64% 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 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.

Affected

Product or packageVersionsReported by
nim-lang security< 1.2.10, >= 1.4.0, < 1.4.4CVE List
nim-lang nimbefore 1.2.10, from 1.4.0 before 1.4.4NVD

All scores

GitHub_M8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

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 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.

NVD (es)

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.

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21374 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-21374 changed 2026-06-17Public domain