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
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.
- 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.
Impact: Possible unauthenticated remote code execution via case conversion
| Product | Affected | Fixed in |
|---|---|---|
| Ruby | 3.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.0 | 3.3.14, 3.4.13, 4.0.10 |
| GitLab | 19.6.0 | — |
| GitHub Enterprise Server | 3.22.5 | — |
| Mastodon | 4.7.5 | — |
| OpenProject | 17.9.7 | — |
| Discourse | 2026.10.1 | — |
| Chatwoot | 4.20.0 | — |
- 1.Upgrade self-managed Ruby to 3.3.14, 3.4.13 or 4.0.10, or a supported branch.
- 2.Install each vendor’s fixed build and verify the Ruby version inside the app.
- 3.Prioritize internet-facing Rails and classic Sinatra deployments.
- Organizations
- Veria Labs
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 […]
By Abinaya · cybersecuritynews.com
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.