ruby2shell: Cloudflare WAF blocks memory-corruption flaw in default Rails and Sinatra apps
A vulnerability called ruby2shell, assigned CVE-2026-132825, lets attackers corrupt memory in default Ruby on Rails and Sinatra web applications without logging in. Cloudflare says its Web Application Firewall now blocks the attack for every customer, including those on Free plans.
The company published guidance on 20 November 2026, advising administrators to upgrade Ruby immediately and use the WAF to cover the gap while patches are applied.
Key terms
WAF (Web Application Firewall): A filter that sits between a web application and incoming traffic. It inspects requests and blocks those that match known attack patterns before they reach application code.
Memory corruption: A class of bug where an attacker can write data to unintended areas of a server's memory. In the case of ruby2shell, this happens in default Rails and Sinatra setups and can lead to crashes or worse.
The Cloudflare blog post by Denzil Correa does not describe the exact technical trigger for the exploit, nor does it list which Ruby versions are affected. Those details typically come from an upstream Ruby security advisory. For now, the confirmed recommendation is to patch Ruby and enable WAF protection where available.
