CVE-2019-3881: Bundler - Insecure Temporary Path
- Cve: CVE-2019-3881
- Name: Bundler - Insecure Temporary Path
- 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.
- Impact: Attackers can place and execute malicious code, potentially leading to remote code execution or privilege escalation.
- Remediation: Update to Bundler 2.1.0 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution, privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Epss score: 0.00529
- Epss percentile: 0.4563
- Assignee: [email protected]
- Published at: 2020-09-04T12:15:10Z
- Age in days: 2272
- Modified at: 2026-06-17T02:35:47Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-3881
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-427 | Uncontrolled Search Path Element |
References
| Url | Source | Tags |
|---|---|---|
| https://bugzilla.redhat.com/show_bug.cgi?id=1651826 | nvd | Issue Tracking, Patch, Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| bundler:bundler | < 2.1.0 | no | nvd | /v1/products/bundler/bundler |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| rubygems/bundler | issues, package, pull | yes | /v1/repositories/rubygems/bundler |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts