GitHub Advisoryadvisory · RubyGems

GHSA-g98m-96g9-wfjq Insecure path handling in Bundler

HIGH Published 2021-05-10 Modified 2023-07-05 Official page ↗
Aliases
CVE-2019-3881
Ecosystem
RubyGems
Packages
bundler
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-427, CWE-552
Reviewed
2021-05-04

Affected packages

• RubyGems bundler: >= 1.14.0, < 2.1.0 → fixed in 2.1.0

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.

Related

Alias · CVE (1)

  • 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… vulnerability

Weakness · CWE (2)

  • CWE-427 Uncontrolled Search Path Element weakness
  • CWE-552 Files or Directories Accessible to External Parties weakness

References