{"id":"CVE-2020-36327","published":"2021-04-29T02:28:54Z","modified":"2026-10-08T21:03:33Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06307,"percentile":0.9377,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/rubygems/rubygems/issues/3982","tags":["x_refsource_MISC"]},{"url":"https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105","tags":["x_refsource_MISC"]},{"url":"https://bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html","tags":["x_refsource_MISC"]},{"url":"https://mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/","tags":["x_refsource_MISC"]},{"url":"https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.75}]},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-10-08T21:02:42.958558Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"bundler","vulnerableRanges":[">=1.16.0, <2.2.10",">=2.2.11, <2.2.18"],"patched":["2.2.10","2.2.18"],"from":["GHSA-fp4w-jxhp-m23p"],"provenance":"source"}],"summary":{"text":"Bundler versions 1.16.0 through 2.2.9 and 2.2.11 through 2.2.16 can select a dependency gem from a public source based on the highest version number, rather than the intended private gem, which is a dependency of another private gem the application explicitly requires. An attacker who publishes a rogue gem at a public source with a higher version number can get it installed in place of the intended private dependency.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:03:11Z"},"euvd":{"id":"EUVD-2021-1063","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2013-0334","published":"2014-10-31","fixed":"1.7.0","kev":false},{"cve":"CVE-2016-7954","published":"2016-12-22","fixed":"2.0.0","kev":false},{"cve":"CVE-2019-3881","published":"2020-09-04","fixed":"2.1.0","kev":false,"link":{"from":"CVE-2019-3881","to":"CVE-2020-36327","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:bundler","fromFixed":"2.1.0","toFixed":"2.2.10","daysApart":237}]}},{"cve":"CVE-2020-36327","published":"2021-04-29","fixed":"2.2.18","kev":false},{"cve":"CVE-2021-43809","published":"2021-12-08","fixed":"2.2.33","kev":false,"link":{"from":"CVE-2020-36327","to":"CVE-2021-43809","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:bundler","fromFixed":"2.2.18","toFixed":"2.2.33","daysApart":223}]}}],"package":"RubyGems:bundler"}}