Skip to main content
No exploitation reportedFix available

CVE-2019-3881

No exploitation reported by the sources we read.

  • Published2020-09-04
  • Fixed in2.1.0
  • WeaknessCWE-427

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2020-09-0412:15CVE publishedNVD

Observed activity

isMalicious corpus · updated 2026-11-03 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2019-3881?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2019-3881?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD · OSV
Bundler
BranchAffectedFixed in
2.1< 2.1.02.1.0
2.1≥ 1.14.0, < 2.1.02.1.0

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • bundlerUbuntu:Pro:18.04:LTSall versions · fixed in 1.16.1-1ubuntu0.1~esm1
  • rh-ruby26-rubyRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.6.7-119.el7and 4 other packages
  • rh-ruby26-rubygem-bigdecimalRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.4.1-119.el7
  • rh-ruby26-rubygem-bundlerRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.17.2-119.el7
  • rh-ruby26-rubygem-did_you_meanRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.3.0-119.el7
  • rh-ruby26-rubygem-io-consoleRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:0.4.7-119.el7
  • rh-ruby26-rubygem-irbRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:1.0.0-119.el7
  • rh-ruby26-rubygem-jsonRed Hat:rhel_software_collections:3::el7all versions · fixed in 0:2.1.0-119.el7

61 more package ranges on OSV.dev

Vendor advisories

  • RHSA-2021:2588 Red Hat Product Security142 products fixed

    Red Hat Security Advisory: ruby:2.6 security, bug fix, and enhancement update

  • RHSA-2021:2230 Red Hat Product Security105 products fixed

    Red Hat Security Advisory: rh-ruby26-ruby security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Update Bundler to 2.1.0
  2. Vendor fix Red Hat Product Security RHSA-2021:2588 · 142 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof-of-concept repositories
none listed
PoC-in-GitHub
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.17.8read 2026-10-23
  • NVDCVSS 2.04.4read 2026-10-23
  • CNAweakness (CWE)CWE-427known since 2026-10-23
  • NVDweakness (CWE)CWE-427read 2026-10-23
  • FIRST EPSSEPSS score0.5 %2026-11-03
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2021-05-04

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
2020-09-04
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-g98m-96g9-wfjq

Frequently asked questions

What is 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.

Is CVE-2019-3881 actively exploited?

Active exploitation of CVE-2019-3881 has not been confirmed. Its EPSS score was 0.5% on 2026-11-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2019-3881?

CVE-2019-3881 has a CVSS v3 base score of 7.8 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

Running bundler? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record