Nimble arbitrary code execution for specially crafted package metadata
Priority MEDIUM 44CWE-20Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
EPSS 0.03618 89th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed security (nim-lang): 1.2.10, 1.4.4
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
- Fix · CNA security (nim-lang) Fixed in 1.2.10, 1.4.4
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21372
References
Exploit 1
More nim-lang Nim vulnerabilities
- TI-2020-12364 In Nim 1.2.4, the standard library browsers mishandles the URL argument to… CVSS 3.1CRITICAL 9.8
- TI-2020-12363 In Nim before 1.2.6, the standard library asyncftpclient lacks a check for whether a… CVSS 3.1CRITICAL 9.8
- TI-2021-04473 Nimble fails to validate certificates due to insecure httpClient defaults CVSS 3.1HIGH 8.1
- TI-2020-12366 In Nim 1.2.4, the standard library httpClient fails to properly validate the server… CVSS 3.1HIGH 7.5
- TI-2021-04472 Nimble falls back to insecure http url when fetching packages CVSS 3.1HIGH 7.5
- TI-2021-10206 Nim stdlib httpClient does not validate peer certificates by default CVSS 3.1HIGH 7.5
Sources
- CVE-2021-21372 · CVE Program
- CVE-2021-21372 · NVD
- FIRST EPSS
- CVE-2021-21372 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences