openSUSE Fixes Ruby Memory Corruption Bugs Including a Heap Overflow in String Case Conversion
openSUSE has published advisory openSUSE-SU-2026:22448-1, rated important, for the ruby3.4 package on openSUSE Leap 16.1. The update resolves one tracked vulnerability, CVE-2026-132825, a heap buffer overflow in the case conversion of strings, and ships seven further memory-safety bug fixes recorded under bsc#1290919 through bsc#1290926. Those additional fixes cover a double free in regular expression compilation, heap buffer overflows in Regexp#to_s and in regular expression compilation, an integer overflow in case conversion of strings, and out-of-bounds reads in case-insensitive backreference matching and in case-insensitive regular expression matching. SUSE scores CVE-2026-132825 at 7.4 under CVSS v3.1 (AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) and 7.5 under CVSS v4.0 (AV:L/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H). Any Leap 16.1 host running the ruby3.4 package below version 3.4.13 is in scope, which in practice means application servers, build agents and developer workstations where Ruby is installed from the distribution repositories.
The advisory does not publish exploitation details, proof-of-concept code or an attack narrative for CVE-2026-132825, so the mechanism below is limited to what the vendor states. The CVSS vectors place the flaw at local attack vector with no privileges and no user interaction required, with high attack complexity in the v3.1 scoring and a present attack requirement in the v4.0 scoring, and the impact is rated high across confidentiality, integrity and availability. The defect class named by openSUSE is a heap buffer overflow reached through string case conversion, a routine operation used widely in Ruby code when normalising text. The companion issues fixed in the same package touch the regular expression engine, where malformed or oversized patterns previously led to double frees, overflows during compilation and reads past the end of allocated buffers. The update moves the package to upstream Ruby 3.4.13, a release that also carries a long list of memory-handling corrections, including use-after-free conditions in string formatting with wide character encodings, in IO#write of shareable strings across Ractors, and an overflow in the buffer size calculation used by String#unpack.
The practical exposure here is determined by who can reach the vulnerable code path. Ruby interpreters on Leap 16.1 commonly sit behind web applications, automation tooling and CI pipelines, and in those roles they routinely process strings and regular expressions that originate outside the organisation even though the flaw itself is scored as locally triggered. On shared build servers and multi-tenant hosts, the combination of no privilege requirement and high impact across all three security properties means a successful trigger could cross a boundary the operator assumed was intact. FIRST currently assesses CVE-2026-132825 at a 2.0 percent probability of exploitation in the next thirty days, and the openSUSE advisory itself publishes no exploitation detail or proof-of-concept code alongside the fix. The more realistic risk over time is the backlog effect: packages like ruby3.4 are often left on an unattended host long after the application that needed them was decommissioned, and memory-safety defects in a scripting runtime remain reachable for as long as that interpreter runs untrusted input.
Attack Surface
Server OS, Web Application
Tactics
Execution, Privilege Escalation, Impact
Techniques
- T1068 – Exploitation for Privilege Escalation
- T1499.004 – Application or System Exploitation
- T1203 – Exploitation for Client Execution
SuperPRO's Threat Countermeasures Procedures
- Install the ruby3.4 update shipped in openSUSE-SU-2026:22448-1 on all openSUSE Leap 16.1 hosts, which brings the package to upstream Ruby 3.4.13 and fixes CVE-2026-132825 plus the regex and case-conversion defects tracked as bsc#1290919 to bsc#1290926. Apply with 'zypper ref && zypper patch' or 'zypper in -t patch openSUSE-SU-2026-22448=1'.
- Set the patch window by exposure rather than by CVSS: with a local attack vector and a 2.0 percent EPSS score, standard single-user Leap 16.1 workstations fit the normal 30-day cycle, while shared CI runners, build agents and multi-tenant Ruby application servers that execute untrusted code or untrusted regular expressions should be scheduled inside the next 7 days.
- Inventory affected systems with 'rpm -q ruby3.4' or 'zypper se -s ruby3.4' across the Leap 16.1 estate and treat any result below 3.4.13 as unpatched; record hosts where ruby3.4 is installed as a dependency of tooling no longer in use and remove the package with 'zypper rm ruby3.4' where nothing requires it.
- Restart long-running Ruby processes after the package upgrade so they stop executing the old interpreter image in memory, specifically puma, unicorn, passenger, sidekiq and any systemd unit launching a ruby3.4 binary; confirm with 'systemctl restart <unit>' followed by 'lsof -p <pid> | grep -i libruby' to verify the new library is loaded.
- Check for parallel Ruby installations that zypper does not manage, including rbenv, rvm, asdf and container base images that bundle Ruby 3.4.x, and rebuild or upgrade those to upstream 3.4.13, as the openSUSE patch only covers the distribution ruby3.4 package.
- Identify applications that compile regular expressions from user-supplied input or call case conversion methods such as String#upcase, String#downcase and String#swapcase on externally sourced data, and prioritise those services for the restart and verification step since they exercise the fixed code paths most frequently.
- Alert on unexpected segmentation faults or glibc heap corruption aborts from ruby3.4 processes by monitoring journald for 'segfault at' and 'free(): invalid pointer' entries where the faulting binary is ruby, as repeated crashes in the regex or string engine are the most likely observable signal of an attempted trigger.