CVE-2019-3881
mediumpriority · track · 31EPSS 0.005 · 45 %ileDEEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.4–7.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (11)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2024-1809GitLab: Mehrere SchwachstellenDeutsch2021-01-07csaf · cert_bundDE
Ein entfernter, anonymer oder authentisierter Angreifer kann eine Schwachstelle in GitLab ausnutzen, um beliebigen Programmcode auszuführen, einen Denial of Service Zustand herzustellen oder Informationen offenzulegen.
- GHSA-g98m-96g9-wfjqInsecure path handling in Bundler2021-05-10ghsa · osvUS
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.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (13)
External citations — patches, advisories, analysis.
- https://bugzilla.redhat.com/show_bug.cgi?id=1651826cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2019-3881cnnvd
- https://packetstormsecurity.com/files/162953/Red-Hat-Security-Advisory-2021-2230-01.htmlcnnvd
- https://packetstormsecurity.com/files/163318/Red-Hat-Security-Advisory-2021-2588-01.htmlcnnvd
- https://vigilance.fr/vulnerability/rubygem-bundler-code-execution-via-Temporary-Directory-32537cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.2473/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.0086/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.1931cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan