Resource Exhaustion Affecting rubygem-mysql2 package, versions <0:0.5.4-1.module_el9.1.0+8+503f6fbd


Severity

Recommended
medium

Based on AlmaLinux security rating.

Threat Intelligence

EPSS
1.56% (81st 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 Resource Exhaustion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-ALMALINUX9-RUBYGEMMYSQL2-10079039
  • published9 May 2025
  • disclosed18 Sept 2024

Introduced: 18 Sep 2024

CVE-2024-41946  (opens in a new tab)
CWE-400  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:9 rubygem-mysql2 to version 0:0.5.4-1.module_el9.1.0+8+503f6fbd or higher.
This issue was patched in ALSA-2025:4488.

NVD Description

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

REXML is an XML toolkit for Ruby. The REXML gem 3.3.2 has a DoS vulnerability when it parses an XML that has many entity expansions with SAX2 or pull parser API. The REXML gem 3.3.3 or later include the patch to fix the vulnerability.

CVSS Base Scores

version 3.1