CVE-2019-3881
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.
What to do
Fixed builds are available from AlmaLinux, 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 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | bundler | Fix pending | 1.16.1-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-3881 |
| Ubuntu 16.04 | bundler | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | bundler | Fix pending | ||
| Red Hat Enterprise Linux 8 | ruby | Fixed | 0:2.6.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | ruby-devel | Fixed | 0:2.6.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | ruby-doc | Fixed | 0:2.6.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | ruby-libs | Fixed | 0:2.6.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-abrt | Fixed | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Fixed | 0:0.3.0-4.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Fixed | 0:1.4.1-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-bson | Fixed | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Fixed | 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-bundler | Fixed Will not fix | 0:1.17.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Fixed | 0:1.3.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-io-console | Fixed | 0:0.4.7-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-irb | Fixed | 0:1.0.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-json | Fixed | 0:2.1.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-minitest | Fixed | 0:5.11.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-mongo | Fixed | 0:2.8.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Fixed | 0:2.8.0-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Fixed | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Fixed | 0:0.5.2-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Fixed | 0:0.2.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-openssl | Fixed | 0:2.1.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-pg | Fixed | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Fixed | 0:1.1.4-1.module+el8.1.0+3653+beb38eb0 | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Fixed | 0:1.1.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-psych | Fixed | 0:3.1.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-rake | Fixed | 0:12.3.3-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Fixed | 0:6.1.2-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Fixed | 0:3.2.9-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Fixed | 0:0.3.0-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygems | Fixed | 0:3.0.3.1-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 8 | rubygems-devel | Fixed | 0:3.0.3.1-107.module+el8.4.0+10830+bbd85cce | RHSA-2021:2588 |
| Red Hat Enterprise Linux 7 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 7 | rubygem-bundler-doc | Not affected | ||
| AlmaLinux 8 | rubygem-abrt | Fixed | 0.3.0-4.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-abrt-doc | Fixed | 0.3.0-4.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-bson | Fixed | 4.5.0-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-bson-doc | Fixed | 4.5.0-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mongo | Fixed | 2.8.0-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mongo-doc | Fixed | 2.8.0-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mysql2 | Fixed | 0.5.2-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-mysql2-doc | Fixed | 0.5.2-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-pg | Fixed | 1.1.4-1.module_el8.5.0+2623+08a8ba32 | ALSA-2021:2588 |
| AlmaLinux 8 | rubygem-pg-doc | Fixed | 1.1.4-1.module_el8.5.0+250+ba22dbf7 | ALSA-2021:2588 |
| Rocky Linux 8 | ruby | Fixed | 0:2.6.7-107.module+el8.4.0+593+8d7f9f0c | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-abrt | Fixed | 0:0.3.0-4.module+el8.5.0+738+032c9c02 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-bson | Fixed | 0:4.5.0-1.module+el8.4.0+446+80b53620 | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-mongo | Fixed | 0:2.8.0-1.module+el8.4.0+593+8d7f9f0c | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-mysql2 | Fixed | 0:0.5.2-1.module+el8.4.0+593+8d7f9f0c | RLSA-2021:2588 |
| Rocky Linux 8 | rubygem-pg | Fixed | 0:1.1.4-1.module+el8.4.0+593+8d7f9f0c | RLSA-2021:2588 |
| RubyGems library | bundler | Fixed | 2.1.0 | GHSA-g98m-96g9-wfjq |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- rubygem-bundler: affected: bundler versions before 2.1.0
References
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.