Description
Bundler prior to 2.1.0 uses a predictable path in /tmp/, created with insecure permissions as a storage location for gems, if locations under the user's home directory are not available. If Bundler is used in a scenario where the user does not have a writable home directory, an attacker could place malicious code in this directory that would be later loaded and executed.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | rubygem-bundler | bundler versions before 2.1.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | bundler | 1.16.1-1ubuntu0.1~esm1 | USN-4870-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 8 | ruby +3 | 2.6.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-abrt +1 | 0.3.0-4.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| RHEL 8 | rubygem-bigdecimal | 1.4.1-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-bson +1 | 4.5.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| RHEL 8 | rubygem-bundler | 1.17.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-did_you_mean | 1.3.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-io-console | 0.4.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-irb | 1.0.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-json | 2.1.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-minitest | 5.11.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-mongo +1 | 2.8.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| RHEL 8 | rubygem-mysql2 +1 | 0.5.2-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| RHEL 8 | rubygem-net-telnet | 0.2.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-openssl | 2.1.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-pg +1 | 1.1.4-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| RHEL 8 | rubygem-power_assert | 1.1.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-psych | 3.1.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-rake | 12.3.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-rdoc | 6.1.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-test-unit | 3.2.9-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygem-xmlrpc | 0.3.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 8 | rubygems +1 | 3.0.3.1-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| RHEL 3 | rh-ruby26-ruby +3 | 2.6.7-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-bigdecimal | 1.4.1-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-bundler | 1.17.2-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-did_you_mean | 1.3.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-io-console | 0.4.7-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-irb | 1.0.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-json | 2.1.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-minitest | 5.11.3-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-net-telnet | 0.2.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-openssl | 2.1.2-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-power_assert | 1.1.3-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-psych | 3.1.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-rake | 12.3.3-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-rdoc | 6.1.2-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-test-unit | 3.2.9-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygem-xmlrpc | 0.3.0-119.el7 | RHSA-2021:2230 |
| RHEL 3 | rh-ruby26-rubygems +1 | 3.0.3.1-119.el7 | RHSA-2021:2230 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 8 | rubygem-abrt +1 | 0.3.0-4.module_el8.5.0+259+8cec6917 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-bson +1 | 4.5.0-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mongo +1 | 2.8.0-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mysql2 +1 | 0.5.2-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-pg +1 | 1.1.4-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 8 | ruby | 2.6.7-107.module+el8.4.0+593+8d7f9f0c | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-abrt | 0.3.0-4.module+el8.3.0+167+5c390590 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-bson | 4.5.0-1.module+el8.4.0+446+80b53620 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-mongo | 2.8.0-1.module+el8.4.0+446+80b53620 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-mysql2 | 0.5.2-1.module+el8.4.0+446+80b53620 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-pg | 1.1.4-1.module+el8.4.0+446+80b53620 | RLSA-2021:2588 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | rubygem-bundler | 1.16.1-3.3.1 | SUSE-SU-2020:1582-2 |
| SLES 15 SP1 | rubygem-bundler | 1.16.1-3.3.1 | SUSE-SU-2020:1582-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.2 | rubygem-bundler | 1.16.1-lp152.4.3.1 | openSUSE-SU-2020:0861-1 |
| openSUSE Leap 15.1 | rubygem-bundler | 1.16.1-lp151.3.3.1 | openSUSE-SU-2020:0803-1 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 8 | ruby +3 | 2.6.7-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-abrt +1 | 0.3.0-4.module+el8.1.0+5406+ce01f9b9 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-bigdecimal | 1.4.1-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-bson +1 | 4.5.0-1.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-bundler | 1.17.2-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-did_you_mean | 1.3.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-io-console | 0.4.7-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-irb | 1.0.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-json | 2.1.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-minitest | 5.11.3-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-mongo +1 | 2.8.0-1.module+el8.1.0+5406+ce01f9b9 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-mysql2 +1 | 0.5.2-1.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-net-telnet | 0.2.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-openssl | 2.1.2-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-pg +1 | 1.1.4-1.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-power_assert | 1.1.3-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-psych | 3.1.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-rake | 12.3.3-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-rdoc | 6.1.2-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-test-unit | 3.2.9-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygem-xmlrpc | 0.3.0-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
| Oracle Linux 8 | rubygems +1 | 3.0.3.1-107.module+el8.4.0+20235+1e5b8be3 | ELSA-2021-2588 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| RubyGems | bundler | >= 1.14.0, < 2.1.0 | 2.1.0 | GHSA-g98m-96g9-wfjq |
Advisories 11
- ALSA-2021:2588 Moderate: ruby:2.6 security, bug fix, and enhancement update AlmaLinux Security Advisories · Nov 2, 2026
- RHSA-2021:2588 Red Hat Security Advisory: ruby:2.6 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 9, 2026
- RHSA-2021:2230 Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 9, 2026
- USN-4870-1 bundler vulnerability Ubuntu Security Notices (USN) · Feb 10, 2026
- RLSA-2021:2588 Moderate: ruby:2.6 security, bug fix, and enhancement update Rocky Linux Security Advisories · Feb 5, 2026
- openSUSE-SU-2020:0803-1 Security update for rubygem-bundler SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1582-2 Security update for rubygem-bundler SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1582-1 Security update for rubygem-bundler SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0861-1 Security update for rubygem-bundler SUSE / openSUSE Security Updates · May 7, 2025
- WID-SEC-2024-1809 GitLab: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2024
- ELSA-2021-2588 Moderate: ruby:2.6 security, bug fix, and enhancement update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Jul 7, 2021