SecOraLens
CriticalCVECVE-2026-97229

ruby2ßhell: Critical One-Byte Heap Overflow in Ruby Could Allow RCE Attacks

This is one outlet's report of a story we cover in full here: CVE-2026-97229 Remote Code Execution via Integer Overflow in the GitLab CICD Regex Parser

Cyber Security News·Source published ·1 min read

What happened?

Ruby has patched a critical memory corruption flaw that can allow remote code execution (RCE) on vulnerable servers. Tracked as GHSA-34m4-m9fh-gqp5 and named ruby2ßhell by Veria Labs, the flaw affects Ruby’s string case conversion code. Researchers report that attackers can reach the vulnerable code over the network without logging in to applications running Ruby on Rails or classic-style Sinatra with default settings. A CVE identifier was still pending at disclosure.

Key details

  • Attackers can reach the vulnerable code over the network without authentication in Rails and classic Sinatra apps.
  • Proof-of-concept exploits have demonstrated code execution in some scenarios, though not every overflow leads to RCE.
  • Several self-hosted products bundle vulnerable Ruby runtimes, including GitLab, GitHub Enterprise, and Mastodon.
  • Updating system Ruby does not fix applications that ship their own Ruby runtime inside containers or appliances.

What is affected?

  • Ruby 2.4.0 through 4.0.9 (multiple branches)
  • Ruby on Rails (default exposure)
  • Sinatra classic style (default exposure)
  • GitLab 19.6.0 bundling Ruby 3.3.13
  • GitHub Enterprise Server 3.22.5 bundling Ruby 4.0.9
  • Mastodon 4.7.5 bundling Ruby 4.0.9

How do I fix or mitigate it?

  1. Install vendor-fixed builds for self-hosted products and verify the Ruby version inside the running environment.

Summarised by SecOraLens from Cyber Security News. Always read the original source before acting. How SecOraLens verifies advisories.

What to do next

For CISOs and SOC leads

Brief your board. Brief your team.

Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.