Uncontrolled Search Path Element Affecting ruby:2.6/rubygem-rake package, versions <0:12.3.3-107.module+el8.4.0+10830+bbd85cce


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.06% (30th 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-RHEL8-RUBY-4952787
  • published26 Jul 2021
  • disclosed23 May 2018

Introduced: 23 May 2018

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

How to fix?

Upgrade RHEL:8 ruby:2.6/rubygem-rake to version 0:12.3.3-107.module+el8.4.0+10830+bbd85cce or higher.
This issue was patched in RHSA-2021:2588.

NVD Description

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