8.3high
Nimble arbitrary code execution for specially crafted package metadata
- Severity
- 8.3high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 3.62% (higher than 89% 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 version before versions 1.2.10 and 1.4.4, Nimble doCmd is used in different places and can be leveraged to execute arbitrary commands. An attacker can craft a malicious entry in the packages.json package list to trigger 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 | 8.3high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 6.8medium CVSS:2.0 | AV: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 version before versions 1.2.10 and 1.4.4, Nimble doCmd is used in different places and can be leveraged to execute arbitrary commands. An attacker can craft a malicious entry in the packages.json package list to trigger code execution.
NVD (es)
Nimble es un administrador de paquetes para el lenguaje de programación Nim. En la versión de lanzamiento de Nim versiones anteriores a 1.2.10 y 1.4.4, Nimble doCmd es usado en diferentes lugares y puede ser aprovechado para ejecutar comandos arbitrarios. Un atacante puede crear una entrada maliciosa en la lista de paquetes packages.json para desencadenar una ejecución del código.
References
| https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/ | exploit, third-party-advisory | |
| https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p | third-party-advisory | |
| https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130 | release-notes, third-party-advisory | |
| https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37 | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21372 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-21372 changed 2026-06-17 | Public domain |