VDB
Sign up
HIGH7.0

GHSA-g98m-96g9-wfjq

Insecure path handling in Bundler

Quick fix

GHSA-g98m-96g9-wfjq — bundler: upgrade to the fixed version with the command below.

bundle update bundler

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/bundler
Introduced in: 1.14.0Fixed in: 2.1.0
Fixbundle update bundler

References