CVE-2021-21372

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.

Affected Software

VendorProductVersion RangeStatus
nim-langsecurity< 1.2.10affected
nim-langsecurity>= 1.4.0, < 1.4.4affected

Weaknesses

  • CWE-20: CWE-20 Improper Input Validation
  • CWE-74: CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

ADP Enrichment

CVE Program Container

Additional References

References