Skip to content
NewA calmer, faster ZeroHour

Ruby heap overflow ruby2shell can yield remote code execution (CVE-2026-132825)

Original title: How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

Cloudflare Blogby Daniele Molteni ()6 min read2
Part of a story covered by 5 sourcesRuby patches Ruby2Shell; Cloudflare adds blocking WAF rulesMerged summary & timeline
AI summary · x-ai/grok-4.7Summaries by Vani AI

Default Rails and classic Sinatra apps reach the bug before authentication; fixes are Ruby 3.3.14, 3.4.13 and 4.0.10.

On November 19, 2026, the Ruby team disclosed ruby2shell, a critical heap buffer overflow in legacy single-byte string case conversion. Ruby says it knows of proofs of concept that achieve remote code execution in some scenarios. Cloudflare added blocking WAF rules for all plans, including a related integer overflow, but says upgrading Ruby is the only complete fix. Cloudflare reports its own Ruby systems are patched and it found no indication of compromise.

Unconfirmed: Ruby says it knows of proofs of concept, but in-the-wild exploitation is not confirmed and Veria Labs has not yet published its PoC.

Key facts
  • Affected ranges are Ruby 3.3.13 and earlier, 3.4.0–3.4.12, and 4.0.0–4.0.9.
  • UTF-8 strings use a different path and are not affected.
  • Ruby 3.2 and earlier are end of life and will not be fixed.
  • Veria Labs lists affected latest releases of GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot.
  • The same Ruby releases also fix six other memory-safety flaws, several of which Ruby says can lead to code execution.
Security assessment · AI, from the article

Impact: remote code execution before authentication in some apps

ProductAffectedFixed in
Ruby3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.93.3.14, 3.4.13, and 4.0.10
Ruby on Railsdefault configuration—
Sinatraclassic-style default configuration—
What to do
  1. 1.Upgrade Ruby to 3.3.14, 3.4.13, or 4.0.10.
  2. 2.Treat Cloudflare WAF rules as a compensating control, not a replacement for patching.
  3. 3.Check full distribution package versions against each distribution advisory.
Analyze CVE-2026-132825 with Vani AIImpact, affected versions, exploitation, mitigations and detection

Vulnerabilities mentioned

All
CVEVulnerabilityCVSSEPSSSignalsPublished
CVE-2026-132825
Heap buffer overflow in Ruby case conversion
7.42%PoC ×2

Indicators of compromise

auto-extracted · verify before use · export allAll
TypeIndicatorContext
md51afa543a1ed84893b01df04c34402c88Free plan) Block Ruby - Heap Overflow - CVE:CVE-2026-132825 1afa543a1ed84893b01df04c34402c88 Cloudflare Managed Ruleset (Pro, Business and Enterprise pl
md56defac6a52334542adf4a162daf25922e plan) Block Ruby - Integer Overflow - GHSA-87fm-7w84-j2px 6defac6a52334542adf4a162daf25922 Cloudflare Managed Ruleset (Pro, Business and Enterprise pl
md57328f23691e44b07892ebd25b19210f1t Default action Ruby - Heap Overflow - CVE:CVE-2026-132825 7328f23691e44b07892ebd25b19210f1 Cloudflare Free Managed Ruleset (Free plan) Block Ruby - He
md58660e37e86444f9f9267ba22e9855f05plans) Block Ruby - Integer Overflow - GHSA-87fm-7w84-j2px 8660e37e86444f9f9267ba22e9855f05 Cloudflare Free Managed Ruleset (Free plan) Block Ruby - In
md5efb7b8c949ac4650a09736fc376e9aeeaged Ruleset and the Cloudflare Managed Ruleset (Ruleset ID efb7b8c949ac4650a09736fc376e9aee), with Block as the default action. Rule description Rule I

From the original article

6 min read at blog.cloudflare.com

ruby2shell lets attackers corrupt memory in default Rails and Sinatra apps without logging in. Cloudflare WAF blocks it for every customer, including Free plans. Upgrade Ruby now, and use the WAF to cover the gap.

Cloudflare Blog

By Daniele Molteni · blog.cloudflare.com

Read the full article at Cloudflare Blog

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.