CVEfocus › CVE database › CVE-2019-3881

CVE-2019-3881

EPSS 0.5% (higher than 45% of CVEs)Published 2020-09-04Updated 2024-08-04Assigner: redhat

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.

CWE-427

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

48Fixed
2Fix pending
1Will not fix
4Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04bundlerNot affected
vulnerable_code_not_present
Ubuntu 18.04bundlerFix pending1.16.1-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2019-3881
Ubuntu 16.04bundlerNot affected
vulnerable_code_not_present
Ubuntu 14.04bundlerFix pending
Red Hat Enterprise Linux 8rubyFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8ruby-develFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8ruby-docFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8ruby-libsFixed0:2.6.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-abrtFixed0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-abrt-docFixed0:0.3.0-4.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bigdecimalFixed0:1.4.1-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bsonFixed0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bson-docFixed0:4.5.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bundlerFixed
Will not fix
0:1.17.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-bundler-docWill not fix
Will not fix
Red Hat Enterprise Linux 8rubygem-did_you_meanFixed0:1.3.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-io-consoleFixed0:0.4.7-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-irbFixed0:1.0.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-jsonFixed0:2.1.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-minitestFixed0:5.11.3-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mongoFixed0:2.8.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mongo-docFixed0:2.8.0-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mysql2Fixed0:0.5.2-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-mysql2-docFixed0:0.5.2-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-net-telnetFixed0:0.2.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-opensslFixed0:2.1.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-pgFixed0:1.1.4-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-pg-docFixed0:1.1.4-1.module+el8.1.0+3653+beb38eb0RHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-power_assertFixed0:1.1.3-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-psychFixed0:3.1.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-rakeFixed0:12.3.3-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-rdocFixed0:6.1.2-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-test-unitFixed0:3.2.9-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygem-xmlrpcFixed0:0.3.0-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygemsFixed0:3.0.3.1-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 8rubygems-develFixed0:3.0.3.1-107.module+el8.4.0+10830+bbd85cceRHSA-2021:2588
Red Hat Enterprise Linux 7rubygem-bundlerNot affected
Red Hat Enterprise Linux 7rubygem-bundler-docNot affected
AlmaLinux 8rubygem-abrtFixed0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-abrt-docFixed0.3.0-4.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-bsonFixed4.5.0-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
AlmaLinux 8rubygem-bson-docFixed4.5.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-mongoFixed2.8.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-mongo-docFixed2.8.0-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-mysql2Fixed0.5.2-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-mysql2-docFixed0.5.2-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-pgFixed1.1.4-1.module_el8.5.0+2623+08a8ba32ALSA-2021:2588
AlmaLinux 8rubygem-pg-docFixed1.1.4-1.module_el8.5.0+250+ba22dbf7ALSA-2021:2588
Rocky Linux 8rubyFixed0:2.6.7-107.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux 8rubygem-abrtFixed0:0.3.0-4.module+el8.5.0+738+032c9c02RLSA-2021:2588
Rocky Linux 8rubygem-bsonFixed0:4.5.0-1.module+el8.4.0+446+80b53620RLSA-2021:2588
Rocky Linux 8rubygem-mongoFixed0:2.8.0-1.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux 8rubygem-mysql2Fixed0:0.5.2-1.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
Rocky Linux 8rubygem-pgFixed0:1.1.4-1.module+el8.4.0+593+8d7f9f0cRLSA-2021:2588
RubyGems librarybundlerFixed2.1.0GHSA-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.

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.