Cloudflare now blocks exploitation of the ruby2shell vulnerability for all customers, including those on the Free plan, using two new web application firewall (WAF) rules set to block by default. Cloudflare says the flaw, tracked as CVE-2026-132825, was disclosed by the Ruby team on November 19, 2026. Ruby rates it Critical.
The bug is a heap buffer overflow in how Ruby changes the case of strings. In 14 legacy single-byte encodings, the German letter ß becomes two characters, SS, when uppercased. Ruby writes both bytes but checks for room for only one. Veria Labs reports that a string with 21 such characters overflows the buffer by one byte. UTF-8 strings are not affected.
Veria Labs reports that Ruby on Rails and classic-style Sinatra apps reach the bug in their default setup, before any authentication. Their request-method override feature uppercases a form parameter while routing. Ruby says it knows of proofs of concept that achieve remote code execution in some scenarios.
Cloudflare says the rules cover ruby2shell and a related integer overflow in Ruby string case conversion. It calls the WAF a compensating control, because some exploit paths bypass it. Fixes shipped in Ruby 3.3.14, 3.4.13 and 4.0.10, and Ruby 3.2 and earlier will not receive a patch.
Source: How Cloudflare WAF protects against ruby2shell (CVE-2026-132825) | Cloudflare Blog.