{"id":"UBUNTU-CVE-2021-21372","details":"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.","modified":"2026-05-20T16:06:26.098207787Z","published":"2021-03-26T22:15:00Z","upstream":["CVE-2021-21372"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21372"},{"type":"REPORT","url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-21372"}],"affected":[{"package":{"name":"nim","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.11.2+dfsg1-4","0.12.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"0.12.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.17.2-1ubuntu1","0.17.2-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"0.17.2-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20.2-1","1.0.2-1","1.0.3~rc-1","1.0.4-1","1.0.6-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"1.0.6-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.14-1","1.6.14-1ubuntu1","1.6.14-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.6.14-1ubuntu2","binary_name":"nim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/nim?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.14-1ubuntu2","2.2.4-1"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"2.2.4-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}},{"package":{"name":"nim","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/nim?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.2.4-1","2.2.4-2"],"ecosystem_specific":{"binaries":[{"binary_name":"nim","binary_version":"2.2.4-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21372.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}