Skip to content
NewA calmer, faster ZeroHour

ruby2shell one-byte Ruby overflow can allow remote code execution

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

Cyber Security Newsby Abinaya ()3 min read3 · 1 read
Part of a story covered by 4 sourcesRuby patches Ruby2Shell one-byte heap overflow in case conversionMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Veria Labs says default Rails and classic Sinatra can reach the case-conversion bug without login.

Ruby patched GHSA-34m4-m9fh-gqp5, dubbed ruby2shell, a one-byte heap overflow in case conversion for some legacy single-byte encodings. Maintainers say proof-of-concept exploits have shown code execution in some scenarios, not that every overflow yields it. Veria Labs lists bundled vulnerable runtimes in several self-hosted products. A CVE was still pending, and earlier GitLab exploitation does not show this flaw is in the wild.

Unconfirmed: A CVE was pending, and researchers had not yet published their planned proof of concept.

Key facts
  • Affected Ruby lines include 3.3.0–3.3.13, 3.4.0–3.4.12 and 4.0.0–4.0.9.
  • Fixes shipped November 18 as 3.3.14, 3.4.13 and 4.0.10.
  • UTF-8 strings use a separate path and do not trigger this flaw.
  • Named bundles include GitLab 19.6.0 and GitHub Enterprise Server 3.22.5.
  • Researchers said they planned to publish a proof of concept about a week later.
Security assessment · AI, from the articlePublic proof of concept

Impact: Possible unauthenticated remote code execution via case conversion

ProductAffectedFixed in
Ruby3.3.0 through 3.3.13; 3.4.0 through 3.4.12; 4.0.0 through 4.0.9; older releases back to 2.4.03.3.14, 3.4.13, 4.0.10
GitLab19.6.0—
GitHub Enterprise Server3.22.5—
Mastodon4.7.5—
OpenProject17.9.7—
Discourse2026.10.1—
Chatwoot4.20.0—
What to do
  1. 1.Upgrade self-managed Ruby to 3.3.14, 3.4.13 or 4.0.10, or a supported branch.
  2. 2.Install each vendor’s fixed build and verify the Ruby version inside the app.
  3. 3.Prioritize internet-facing Rails and classic Sinatra deployments.
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

3 min read at cybersecuritynews.com

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 […]

Cyber Security News

By Abinaya · cybersecuritynews.com

Read the full article at Cyber Security News

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.