PT-2019-5544 · Ruby+6 · Bundler+6
Published
2019-07-30
·
Updated
2025-09-29
·
CVE-2019-3881
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Bundler versions prior to 2.1.0
Description
The issue is related to the use of predictable paths in /tmp/ with insecure permissions as a storage location for gems when 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.
Recommendations
For Bundler versions prior to 2.1.0, update to version 2.1.0 or later to resolve the issue. As a temporary workaround, consider restricting access to the /tmp/ directory to minimize the risk of exploitation. Additionally, ensure that users have writable home directories to prevent the use of predictable paths in /tmp/.
Exploit
Fix
Files Accessible to External Parties
Uncontrolled Search Path Element
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Almalinux
Bundler
Centos
Red Hat
Rocky Linux
Suse
Ubuntu