Uncontrolled Search Path Element Affecting rubygem-bson-debuginfo package, versions <0:4.5.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-RUBYGEMBSONDEBUGINFO-3204249
  • 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-bson-debuginfo to version 0:4.5.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-bson-debuginfo package and not the rubygem-bson-debuginfo 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 Base Scores

version 3.1