CVE-2019-3881

rubygem-bundler: Insecure permissions on directory in /tmp/ allows for execution of malicious code

Published Sep 4, 2020 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2021-1077 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.
Github GHSA Github GHSA GHSA-g98m-96g9-wfjq Insecure path handling in Bundler
Ubuntu USN Ubuntu USN USN-4870-1 Bundler vulnerability
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00206}

epss

{'score': 0.00211}

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 7:19 PM
Reserved
Jan 3, 2019, 12:00 AM
Status
Modified
Published
Sep 4, 2020, 12:15 PM
Modified
Jun 17, 2026, 2:35 AM
Severity
Moderate
Public date
May 23, 2018, 12:00 AM