{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-3881","id":"CVE-2019-3881","title":"Insecure path handling in Bundler","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.","descriptionLong":"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.","published":"2020-09-04T00:00:00.000Z","updated":"2026-10-24T10:30:46.455177056Z","reserved":"2019-01-03T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"redhat","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":4.4,"vector":"AV:L/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":["rubygem-bundler"],"affectedProducts":[{"vendor":"n/a","product":"rubygem-bundler","defaultStatus":null,"versions":[{"version":"bundler versions before 2.1.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"RubyGems","name":"bundler","purl":"pkg:gem/bundler","ranges":[">=1.14.0 <2.1.0"],"fixed":["2.1.0"],"advisory":"GHSA-g98m-96g9-wfjq"}],"cwes":["CWE-427","CWE-552"],"aliases":["GHSA-g98m-96g9-wfjq"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826","tags":["x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-3881","tags":["advisory"]},{"url":"https://github.com/rubygems/bundler/issues/6501","tags":["web"]},{"url":"https://github.com/rubygems/bundler/pull/7416/commits/65cfebb041c454c246aaf32a177b0243915a9998","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g98m-96g9-wfjq","tags":["advisory"]},{"url":"https://github.com/rubygems/bundler","tags":["package"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/bundler/CVE-2019-3881.yml","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00529,"epssPercentile":0.45454,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-3881","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-3881","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-3881","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g98m-96g9-wfjq","ok":true,"note":"GHSA-g98m-96g9-wfjq"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-3881","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}