CVE-2019-3881

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-04 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2019-3881 is rated Moderate Risk (45.6/100): CVSS High severity, with low exploitation likelihood (EPSS 0.53%). Mandatory action: Review affected assets and schedule remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2019-3881

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.15% 0.53% +0.37%
2 2026-03-11 0.10% 0.15% +0.05%
3 2025-09-20 0.10%

Full EPSS history (13 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2019-3881

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
4.4 2.0 MEDIUM
AV:L/AC:M/Au:N/C:P/I:P/A:P Click to expand
Access vector (AV:L)
Requires local access to the target system.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
3.4 6.4 [email protected]

Weakness enumeration for CVE-2019-3881

GitHub Security Advisory for CVE-2019-3881

GHSA-g98m-96g9-wfjq · Severity: high · Ecosystem: rubygems — Insecure path handling in Bundler

OS Trackers for CVE-2019-3881

vendor priority summary link
alpine high CVE-2019-3881: 1 source package rows (ruby-bundler); 1 state rows across 1 repos (3.11-main); fixed 0, open 1. https://security.alpinelinux.org/vuln/CVE-2019-3881
gentoo normal CVE-2019-3881: 1 GLSA(s) (202408-22), 1 atom(s) (dev-ruby/bundler); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2019-3881
redhat medium https://access.redhat.com/security/cve/CVE-2019-3881
suse medium CVE-2019-3881 severity moderate: SUSE including 273 source package names (2.17-17.3:ruby2.5-rubygem-bundler-1.16.1-3.3.1, amazon/suse-sles-15-sp1-chost-byos-v20210304-hvm-ssd-x86_64, …), 363 product×package rows across 89 product lines (Container bci/ruby, Container suse/rmt-server, … (89 product lines)): Known Affected 231, Fixed 101, Known Not Affected 31. https://www.suse.com/security/cve/CVE-2019-3881/
ubuntu medium CVE-2019-3881 medium priority: Ubuntu including 1 source packages (bundler), 13 status rows across 13 suites (bionic, disco, eoan, focal, groovy, hirsute, impish, jammy, kinetic, lunar, trusty, upstream, xenial): not-affected 6, DNE 5, released 2. https://ubuntu.com/security/CVE-2019-3881

Affected software / configurations for CVE-2019-3881

Vendor Product Version Raw CPE
bundler bundler < 2.1.0 cpe:2.3:a:bundler:bundler:*:*:*:*:*:ruby:*:*

References for CVE-2019-3881

URL Tags
https://bugzilla.redhat.com/show_bug.cgi?id=1651826 Issue Tracking Patch Third Party Advisory
cvelogic Threat Intelligence