{"id":"UBUNTU-CVE-2021-21374","details":"Nimble is a package manager for the Nim programming language. In Nim release versions before versions 1.2.10 and 1.4.4, \"nimble refresh\" fetches a list of Nimble packages over HTTPS without full verification of the SSL/TLS certificate due to the default setting of httpClient. An attacker able to perform MitM can deliver a modified package list containing malicious software packages. If the packages are installed and used the attack escalates to untrusted code execution.","modified":"2026-05-20T16:06:26.074571580Z","published":"2021-03-26T22:15:00Z","upstream":["CVE-2021-21374"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-21374"},{"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-21374"}],"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_version":"0.12.0-2","binary_name":"nim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21374.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-21374.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-21374.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_name":"nim","binary_version":"1.6.14-1ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21374.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-21374.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_version":"2.2.4-2","binary_name":"nim"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-21374.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}