Ubuntu CVE Tracker
UBUNTU-CVE-2019-3881
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:Pro:18.04:LTS | bundler | All versions before 1.16.1-1ubuntu0.1~esm1 (fixed in 1.16.1-1ubuntu0.1~esm1) |
References
- https://ubuntu.com/security/CVE-2019-3881
- https://salsa.debian.org/ruby-team/bundler/blob/debian/1.16.1-2/debian/patches/0006-Don-t-use-insecure-temporary-directory-as-home-direc.patch
- https://salsa.debian.org/ruby-team/bundler/blob/debian/1.16.1-2/debian/patches/0007-Remove-temporary-home-directories.patch
- https://ubuntu.com/security/notices/USN-4870-1
- https://www.cve.org/CVERecord?id=CVE-2019-3881