{"id":"CVE-2021-21373","state":"PUBLISHED","title":"Nimble falls back to insecure http url when fetching packages","description":"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 by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. 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.","publishedAt":"2021-03-26T21:25:19.000Z","updatedAt":"2024-08-03T18:09:15.923Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["nim-lang security"],"affected":[{"vendor":"nim-lang","product":"security","versions":[{"version":"< 1.2.10","status":"affected"},{"version":">= 1.4.0, < 1.4.4","status":"affected"}]}],"references":["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/security/security/advisories/GHSA-8w52-r35x-rgp8"],"weaknesses":["CWE-348"],"ingestedAt":"2026-10-29T19:47:59.168Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/21xxx/CVE-2021-21373.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-21373","state":"PUBLISHED","datePublished":"2021-03-26T21:25:19.000Z","dateUpdated":"2024-08-03T18:09:15.923Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2020-12-22T00:00:00.000Z"},"containers":{"cna":{"title":"Nimble falls back to insecure http url when fetching packages","descriptions":[{"lang":"en","value":"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 by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. 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."}],"affected":[{"vendor":"nim-lang","product":"security","versions":[{"version":"< 1.2.10","status":"affected"},{"version":">= 1.4.0, < 1.4.4","status":"affected"}]}],"references":[{"url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/","tags":["x_refsource_MISC"]},{"url":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130","tags":["x_refsource_MISC"]},{"url":"https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8","tags":["x_refsource_CONFIRM"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-348","description":"CWE-348 Use of Less Trusted Source","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","dateUpdated":"2021-03-26T21:25:19.000Z","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa"},"source":{"advisory":"GHSA-8w52-r35x-rgp8","discovery":"UNKNOWN"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2021-21373","STATE":"PUBLIC","TITLE":"Nimble falls back to insecure http url when fetching packages"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"security","version":{"version_data":[{"version_value":"< 1.2.10"},{"version_value":">= 1.4.0, < 1.4.4"}]}}]},"vendor_name":"nim-lang"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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 by default. In case of error it falls back to a non-TLS URL http://irclogs.nim-lang.org/packages.json. 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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":7.5,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-348 Use of Less Trusted Source"}]}]},"references":{"reference_data":[{"name":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/","refsource":"MISC","url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/"},{"name":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130","refsource":"MISC","url":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130"},{"name":"https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8","refsource":"CONFIRM","url":"https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8"}]},"source":{"advisory":"GHSA-8w52-r35x-rgp8","discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://consensys.net/diligence/vulnerabilities/nim-insecure-ssl-tls-defaults-remote-code-execution/","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/nim-lang/nimble/blob/master/changelog.markdown#0130","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/nim-lang/security/security/advisories/GHSA-8w52-r35x-rgp8","tags":["x_refsource_CONFIRM","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T18:09:15.923Z"}}]}}}