{"id":"CVE-2020-36327","details":"Bundler 1.16.0 through 2.2.9 and 2.2.11 through 2.2.16 sometimes chooses a dependency source based on the highest gem version number, which means that a rogue gem found at a public source may be chosen, even if the intended choice was a private gem that is a dependency of another private gem that is explicitly depended on by the application. NOTE: it is not correct to use CVE-2021-24105 for every \"Dependency Confusion\" issue in every product.","aliases":["GHSA-fp4w-jxhp-m23p"],"modified":"2026-02-02T13:13:43.895182Z","published":"2021-04-29T03:15:08.710Z","related":["ALSA-2021:3020","ALSA-2022:0543","ALSA-2022:0545","MGASA-2021-0579","SUSE-SU-2025:1294-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/"},{"type":"ADVISORY","url":"https://bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html"},{"type":"ADVISORY","url":"https://github.com/rubygems/rubygems/issues/3982"},{"type":"ADVISORY","url":"https://mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/"},{"type":"ADVISORY","url":"https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105"},{"type":"ADVISORY","url":"https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/"},{"type":"REPORT","url":"https://github.com/rubygems/rubygems/issues/3982"},{"type":"FIX","url":"https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105"},{"type":"EVIDENCE","url":"https://github.com/rubygems/rubygems/issues/3982"},{"type":"EVIDENCE","url":"https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rubygems/rubygems","events":[{"introduced":"10f20fa33bc36371cbad00106487c6eb22616ec7"},{"fixed":"cc7c3337218989b3a6aad3910eb4f9c74cdd4f56"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2020-36327.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}