Double Free Affecting rubygem-rbs package, versions <0:1.4.0-141.module+el8.6.0+1002+a7dba0ac


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.63% (80th 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 Learn

Learn about Double Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ROCKY8-RUBYGEMRBS-3189738
  • published5 Jan 2023
  • disclosed9 May 2022

Introduced: 9 May 2022

CVE-2022-28738  (opens in a new tab)
CWE-415  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:8 rubygem-rbs to version 0:1.4.0-141.module+el8.6.0+1002+a7dba0ac or higher.
This issue was patched in RLSA-2022:6450.

NVD Description

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

A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.

CVSS Scores

version 3.1