Advisory

GHSA-g98m-96g9-wfjq

Also known as: CVE-2019-3881

Summary

Insecure path handling in 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-05-10 14:53 UTC
Modified
2024-02-16 08:22 UTC

Affected packages and fixes

bundler

RubyGems · All systems

Affected

  • introduced 1.14.0, fixed 2.1.0 (ecosystem)

Fixed versions

2.1.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences