Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. bundler
  4. ›
  5. CVE-2019-3881

CVE-2019-3881: Files or Directories Accessible to External Parties

September 4, 2020 (updated September 16, 2020)

Bundler 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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1651826
  • nvd.nist.gov/vuln/detail/CVE-2019-3881

Code Behaviors & Features

Detect and mitigate CVE-2019-3881 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.1.0

Fixed versions

  • 2.1.0

Solution

Upgrade to version 2.1.0 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-552: Files or Directories Accessible to External Parties

Source file

gem/bundler/CVE-2019-3881.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:07 +0000.