CVE-2020-36327
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, RubyGems: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 20.04 | bundler | Fix pending | UBUNTU-CVE-2020-36327 | |
| Ubuntu 18.04 | bundler | Fix pending | UBUNTU-CVE-2020-36327 | |
| Ubuntu 16.04 | bundler | Fix pending | UBUNTU-CVE-2020-36327 | |
| Ubuntu 14.04 | bundler | Fix pending | ||
| Debian 14 | rubygems | Fixed | 3.3.5-1 | DEBIAN-CVE-2020-36327 |
| Debian 13 | rubygems | Fixed | 3.3.5-1 | DEBIAN-CVE-2020-36327 |
| Debian 12 | rubygems | Fixed | 3.3.5-1 | DEBIAN-CVE-2020-36327 |
| Red Hat Enterprise Linux 9 | ruby | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby | Fixed | 0:2.6.9-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | ruby-default-gems | Fixed | 0:2.7.4-137.module+el8.4.0+12025+f744ca41 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | ruby-devel | Fixed | 0:2.7.4-137.module+el8.4.0+12025+f744ca41 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | ruby-doc | Fixed | 0:2.6.9-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | ruby-libs | Fixed | 0:2.6.9-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-abrt | Fixed | 0:0.4.0-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Fixed | 0:0.4.0-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Fixed | 0:1.4.1-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-bson | Fixed | 0:4.8.1-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Fixed | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-bundler | Fixed | 0:1.16.1-4.module+el8.5.0+13840+ec418553 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Fixed | 0:1.16.1-4.module+el8.5.0+13840+ec418553 | RHSA-2022:0545 |
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Fixed | 0:1.3.0-108.module+el8.5.0+13719+08a8ba32 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-io-console | Fixed | 0:0.4.7-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-irb | Fixed | 0:1.0.0-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-json | Fixed | 0:2.1.0-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-minitest | Fixed | 0:5.11.3-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-mongo | Fixed | 0:2.11.3-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Fixed | 0:2.11.3-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Fixed | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Fixed | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Fixed | 0:0.2.0-137.module+el8.4.0+12025+f744ca41 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-openssl | Fixed | 0:2.1.2-137.module+el8.4.0+12025+f744ca41 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-pg | Fixed | 0:1.2.3-1.module+el8.3.0+7192+4e3a532a | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Fixed | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Fixed | 0:1.1.7-137.module+el8.4.0+12025+f744ca41 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-psych | Fixed | 0:3.1.0-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-rake | Fixed | 0:12.3.3-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Fixed | 0:6.2.1.1-137.module+el8.4.0+12025+f744ca41 | RHSA-2022:0543 |
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Fixed | 0:3.2.9-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Fixed | 0:0.3.0-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygems | Fixed | 0:3.0.3.1-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 8 | rubygems-devel | Fixed | 0:3.0.3.1-108.module+el8.5.0+13719+08a8ba32 | RHSA-2021:3020 |
| Red Hat Enterprise Linux 7 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-bundler-doc | Not affected | ||
| AlmaLinux 8 | ruby | Fixed | 2.6.9-108.module_el8.5.0+2623+08a8ba32 | ALSA-2022:0543 |
| AlmaLinux 8 | ruby-default-gems | Fixed | 2.7.4-137.module_el8.4.0+2515+f744ca41 | ALSA-2021:3020 |
| AlmaLinux 8 | ruby-devel | Fixed | 2.6.9-108.module_el8.5.0+2623+08a8ba32 | ALSA-2021:3020 |
| AlmaLinux 8 | ruby-doc | Fixed | 2.6.9-108.module_el8.5.0+2623+08a8ba32 | ALSA-2021:3020 |
| AlmaLinux 8 | ruby-irb | Fixed | 2.5.9-107.module_el8.5.0+2625+ec418553 | ALSA-2022:0545 |
| AlmaLinux 8 | ruby-libs | Fixed | 2.6.9-108.module_el8.5.0+2623+08a8ba32 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-abrt | Fixed | 0.3.0-4.module_el8.5.0+2623+08a8ba32 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-abrt-doc | Fixed | 0.3.0-4.module_el8.5.0+259+8cec6917 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-bigdecimal | Fixed | 1.4.1-108.module_el8.5.0+2623+08a8ba32 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-bson | Fixed | 4.5.0-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-bson-doc | Fixed | 4.3.0-2.module_el8.5.0+2625+ec418553 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-bundler | Fixed | 1.17.2-108.module_el8.5.0+250+ba22dbf7 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-bundler-doc | Fixed | 1.16.1-4.module_el8.5.0+259+8cec6917 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-did_you_mean | Fixed | 1.3.0-108.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-io-console | Fixed | 0.4.7-108.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-irb | Fixed | 1.0.0-108.module_el8.5.0+250+ba22dbf7 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-json | Fixed | 2.3.0-137.module_el8.4.0+2515+f744ca41 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-minitest | Fixed | 5.11.3-108.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-mongo | Fixed | 2.11.3-1.module_el8.3.0+6147+d0dfc1e4 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-mongo-doc | Fixed | 2.5.1-2.module_el8.5.0+2625+ec418553 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-mysql2 | Fixed | 0.5.3-1.module_el8.5.0+118+1ab773e1 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-mysql2-doc | Fixed | 0.5.3-1.module_el8.5.0+118+1ab773e1 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-net-telnet | Fixed | 0.2.0-108.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-openssl | Fixed | 2.1.2-137.module_el8.4.0+2515+f744ca41 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-pg | Fixed | 1.1.4-1.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-pg-doc | Fixed | 1.1.4-1.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-power_assert | Fixed | 1.1.7-137.module_el8.4.0+2515+f744ca41 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-psych | Fixed | 3.1.0-137.module_el8.4.0+2515+f744ca41 | ALSA-2022:0545 |
| AlmaLinux 8 | rubygem-rake | Fixed | 13.0.1-137.module_el8.4.0+2515+f744ca41 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-rdoc | Fixed | 6.0.1.1-107.module_el8.5.0+2625+ec418553 | ALSA-2021:3020 |
| AlmaLinux 8 | rubygem-test-unit | Fixed | 3.2.9-108.module_el8.5.0+250+ba22dbf7 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygem-xmlrpc | Fixed | 0.3.0-107.module_el8.5.0+2625+ec418553 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygems | Fixed | 2.7.6.3-107.module_el8.5.0+2625+ec418553 | ALSA-2022:0543 |
| AlmaLinux 8 | rubygems-devel | Fixed | 2.7.6.3-107.module_el8.5.0+2625+ec418553 | ALSA-2022:0543 |
| Rocky Linux 8 | ruby | Fixed | 0:2.6.9-108.module+el8.5.0+738+032c9c02 | RLSA-2021:3020 |
| Rocky Linux 8 | rubygem-abrt | Fixed | 0:0.3.0-4.module+el8.3.0+167+5c390590 | RLSA-2022:0545 |
| Rocky Linux 8 | rubygem-bson | Fixed | 0:4.8.1-1.module+el8.4.0+594+11b6673a | RLSA-2021:3020 |
| Rocky Linux 8 | rubygem-bundler | Fixed | 0:1.16.1-4.module+el8.5.0+739+43897a5e | RLSA-2022:0545 |
| Rocky Linux 8 | rubygem-mongo | Fixed | 0:2.8.0-1.module+el8.4.0+593+8d7f9f0c | RLSA-2022:0543 |
| Rocky Linux 8 | rubygem-mysql2 | Fixed | 0:0.5.3-1.module+el8.5.0+668+665814fa | RLSA-2021:3020 |
| Rocky Linux 8 | rubygem-pg | Fixed | 0:1.0.0-2.module+el8.4.0+592+03ff458a | RLSA-2022:0543 |
| RubyGems library | bundler | Fixed | 2.2.10 | GHSA-fp4w-jxhp-m23p |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://github.com/rubygems/rubygems/issues/3982
- https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2021-24105
- https://bundler.io/blog/2021/02/15/a-more-secure-bundler-we-fixed-our-source-priorities.html
- https://mensfeld.pl/2021/02/rubygems-dependency-confusion-attack-side-of-things/
- https://www.zofrex.com/blog/2021/04/29/bundler-still-vulnerable-dependency-confusion-cve-2020-36327/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MWXHK5UUHVSHF7HTHMX6JY3WXDVNIHSL/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.