Heap-based Buffer Overflow Affecting ruby:4.0/rubygems package, versions <0:4.0.20-37.module_el9.9.0+370+8bfec1f7


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-ALMALINUX9-RUBY-22984048
  • published26 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:9 ruby:4.0/rubygems to version 0:4.0.20-37.module_el9.9.0+370+8bfec1f7 or higher.
This issue was patched in ALSA-2026:102883.

NVD Description

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