Uncontrolled Search Path Element Affecting rubygem-bson package, versions <0:4.5.0-1.module+el8.1.0+3653+beb38eb0


Severity

Recommended
0.0
medium
0
10

Based on CentOS security rating

    Threat Intelligence

    EPSS
    0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-CENTOS8-RUBYGEMBSON-2113553
  • published 26 Jul 2021
  • disclosed 23 May 2018

How to fix?

Upgrade Centos:8 rubygem-bson to version 0:4.5.0-1.module+el8.1.0+3653+beb38eb0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem-bson package and not the rubygem-bson package as distributed by Centos. See How to fix? for Centos:8 relevant fixed versions and status.

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 Scores

version 3.1
Expand this section

NVD

7.8 high
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    Required
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High