Heap-based Buffer Overflow Affecting ruby4.0-rubygem-mysql2 package, versions <0:0.5.7-39.el10_3


Severity

Recommended
critical

Based on AlmaLinux security rating.

Threat Intelligence

Social Trends
EPSS
1.97% (82nd 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-ALMALINUX10-RUBY40RUBYGEMMYSQL2-22832826
  • published24 Nov 2026
  • disclosed24 Nov 2026

Introduced: 24 Nov 2026

NewCVE-2026-132825  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade AlmaLinux:10 ruby4.0-rubygem-mysql2 to version 0:0.5.7-39.el10_3 or higher.
This issue was patched in ALSA-2026:102714.

NVD Description

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

Ruby before 3.3.14, 3.4.13, and 4.0.10 has a heap-based buffer overflow during case conversion. One byte can be written outside a buffer for, for example, ISO-8859-1 or Windows-1252.

CVSS Base Scores

version 3.1