ghsa-g98m-96g9-wfjq
Vulnerability from github
Published
2021-05-10 14:53
Modified
2023-07-05 20:18
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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "bundler"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "1.14.0"
            },
            {
              "fixed": "2.1.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2019-3881"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-427",
      "CWE-552"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-04T22:52:44Z",
    "nvd_published_at": "2020-09-04T12:15:00Z",
    "severity": "HIGH"
  },
  "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\u0027s 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.",
  "id": "GHSA-g98m-96g9-wfjq",
  "modified": "2023-07-05T20:18:22Z",
  "published": "2021-05-10T14:53:59Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-3881"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubygems/bundler/issues/6501"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubygems/bundler/pull/7416/commits/65cfebb041c454c246aaf32a177b0243915a9998"
    },
    {
      "type": "WEB",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1651826"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-g98m-96g9-wfjq"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/rubygems/bundler"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2019-3881.yml"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Insecure path handling in Bundler"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.