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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nim-lang | security | < 1.2.10, >= 1.4.0, < 1.4.4 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | nim | 1.4.6+really1.4.2-1 | — |
| Debian 12 | nim | 1.4.6+really1.4.2-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | nim | No fix yet | — |
| Ubuntu 26.04 LTS | nim | No fix yet | — |
| Ubuntu 25.10 | nim | No fix yet | — |
| Ubuntu 24.04 LTS | nim | No fix yet | — |
| Ubuntu 20.04 LTS | nim | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | nim | No fix yet | — |
| Ubuntu 16.04 LTS | nim | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP4 | nim | 1.6.6-bp154.2.3.1 | openSUSE-SU-2022:10101-1 |
| SUSE Package Hub 15 SP3 | nim | 1.6.6-bp153.2.3.1 | openSUSE-SU-2022:10095-1 |
| SUSE Package Hub 15 SP2 | nim | 1.2.12-bp152.4.3.1 | openSUSE-SU-2021:0628-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | nim | 1.2.12-1.7 | openSUSE-SU-2024:11093-1 |
| openSUSE Leap 15.4 | nim | 1.6.6-bp154.2.3.1 | openSUSE-SU-2022:10101-1 |
| openSUSE Leap 15.3 | nim | 1.6.6-bp153.2.3.1 | openSUSE-SU-2022:10095-1 |
| openSUSE Leap 15.2 | nim | 1.2.12-lp152.2.3.1 | openSUSE-SU-2021:0618-1 |
Advisories 5
- openSUSE-SU-2021:0618-1 Security update for nim SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10101-1 Security update for nim SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0628-1 Security update for nim SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2022:10095-1 Security update for nim SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11093-1 nim-1.2.12-1.7 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
- https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p
- https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130
- https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37