Bundler is vulnerable to dependency confusion. The way of choosing a dependency source based on the highest gem version number by the package installer results in pulling a malicious gem from a public repository instead of its intended private gem even if it is a dependency of another private gem.
Vendor | Product | Version | CPE |
---|---|---|---|
- | rh-ruby26-ruby | 2.6.2_118.el7 | cpe:2.3:a:-:rh-ruby26-ruby:2.6.2_118.el7:*:*:*:*:*:*:* |
bundler | bundler | * | cpe:2.3:a:bundler:bundler:*:*:*:*:*:*:*:* |
bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html
github.com/rubygems/rubygems/commit/4346a8bb5d58c5026ad48f18e9da3dcee8c7b198
github.com/rubygems/rubygems/issues/3982
lists.fedoraproject.org/archives/list/[email protected]/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/
mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/
msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105
www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/