GHSA-g98m-96g9-wfjq

Suggest an improvement
Source
https://github.com/advisories/GHSA-g98m-96g9-wfjq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-g98m-96g9-wfjq/GHSA-g98m-96g9-wfjq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-g98m-96g9-wfjq
Aliases
Published
2021-05-10T14:53:59Z
Modified
2024-02-16T08:22:47.202315Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "nvd_published_at": "2020-09-04T12:15:00Z",
    "cwe_ids": [
        "CWE-427",
        "CWE-552"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-04T22:52:44Z"
}
References

Affected packages

RubyGems / bundler

Package

Name
bundler
Purl
pkg:gem/bundler

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.14.0
Fixed
2.1.0

Affected versions

1.*

1.14.0
1.14.1
1.14.2
1.14.3
1.14.4
1.14.5
1.14.6
1.15.0.pre.1
1.15.0.pre.2
1.15.0.pre.3
1.15.0.pre.4
1.15.0
1.15.1
1.15.2
1.15.3
1.15.4
1.16.0.pre.1
1.16.0.pre.2
1.16.0.pre.3
1.16.0
1.16.1
1.16.2
1.16.3
1.16.4
1.16.5
1.16.6
1.17.0.pre.1
1.17.0.pre.2
1.17.0
1.17.1
1.17.2
1.17.3

2.*

2.0.0.pre.1
2.0.0.pre.2
2.0.0.pre.3
2.0.0
2.0.1
2.0.2
2.1.0.pre.1
2.1.0.pre.2
2.1.0.pre.3