Uncontrolled Search Path Element Affecting ruby:2.6/rubygem-mysql2-doc package, versions <0:0.5.2-1.module_el8.5.0+2623+08a8ba32


Severity

Recommended
medium

Based on AlmaLinux 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-ALMALINUX8-RUBY-5623495
  • published28 May 2023
  • disclosed29 Jun 2021

Introduced: 29 Jun 2021

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

How to fix?

Upgrade AlmaLinux:8 ruby:2.6/rubygem-mysql2-doc to version 0:0.5.2-1.module_el8.5.0+2623+08a8ba32 or higher.
This issue was patched in ALSA-2021:2588.

NVD Description

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