{"id":"CVE-2019-3881","published":"2020-09-04T00:00:00Z","modified":"2024-08-04T19:19:18Z","title":"Bundler prior to 2.1.0 uses a predictable path in /tmp/, created with insecure permissions as a storage location for…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00529,"percentile":0.45663,"provenance":"source"},"cwes":[{"id":"CWE-427","name":"Uncontrolled Search Path Element"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1651826","tags":[]}],"priority":{"score":9.1,"factors":[{"name":"EPSS percentile","points":9.13}]},"affectedVersions":[{"vendor":"n/a","product":"rubygem-bundler","versions":["bundler versions before 2.1.0"]}],"affected":[{"ecosystem":"RubyGems","package":"bundler","vulnerableRanges":[">=1.14.0, <2.1.0"],"patched":["2.1.0"],"from":["GHSA-g98m-96g9-wfjq"],"provenance":"source"}],"summary":{"text":"Bundler versions prior to 2.1.0 use a predictable path under /tmp/, created with insecure permissions, as the storage location for gems when locations under the user's home directory are unavailable. An attacker who can write to that directory on a system where Bundler runs without a writable home directory could place malicious code there that is later loaded and executed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:48Z"},"euvd":{"id":"EUVD-2021-1077","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2013-0334","published":"2014-10-31","fixed":"1.7.0","kev":false},{"cve":"CVE-2016-7954","published":"2016-12-22","fixed":"2.0.0","kev":false},{"cve":"CVE-2019-3881","published":"2020-09-04","fixed":"2.1.0","kev":false},{"cve":"CVE-2020-36327","published":"2021-04-29","fixed":"2.2.18","kev":false,"link":{"from":"CVE-2019-3881","to":"CVE-2020-36327","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"RubyGems:bundler","fromFixed":"2.1.0","toFixed":"2.2.10","daysApart":237}]}},{"cve":"CVE-2021-43809","published":"2021-12-08","fixed":"2.2.33","kev":false}],"package":"RubyGems:bundler"}}