Bug 1951714 (CVE-2021-21372) - CVE-2021-21372 nim: doCmd can be leveraged to execute arbitrary commands
Summary: CVE-2021-21372 nim: doCmd can be leveraged to execute arbitrary commands
Keywords:
Status: CLOSED UPSTREAM
Alias: CVE-2021-21372
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1951715
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-20 19:22 UTC by Pedro Sampaio
Modified: 2021-04-20 22:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-04-20 22:46:42 UTC


Attachments (Terms of Use)

Description Pedro Sampaio 2021-04-20 19:22:47 UTC
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.

https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/
https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130
https://github.com/nim-lang/nimble/commit/7bd63d504a4157b8ed61a51af47fb086ee818c37
https://github.com/nim-lang/security/security/advisories/GHSA-rg9f-w24h-962p

Comment 1 Pedro Sampaio 2021-04-20 19:23:09 UTC
Created nim tracking bugs for this issue:

Affects: fedora-all [bug 1951715]

Comment 2 Product Security DevOps Team 2021-04-20 22:46:42 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.