Uncontrolled Search Path Element Affecting rubygem-mongo package, versions <0:2.8.0-1.module+el8.4.0+446+80b53620


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.06% (31st 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 IDSNYK-ROCKY8-RUBYGEMMONGO-3204265
  • published5 Jan 2023
  • disclosed4 Sept 2020

Introduced: 4 Sep 2020

CVE-2019-3881  (opens in a new tab)
CWE-427  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:8 rubygem-mongo to version 0:2.8.0-1.module+el8.4.0+446+80b53620 or higher.
This issue was patched in RLSA-2021:2588.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rubygem-mongo package and not the rubygem-mongo package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux: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