ruby2shell: Cloudflare rolls out WAF rule to all customers, including Free plans
Cloudflare has deployed WAF protection against ruby2shell (CVE-2026-132825), a flaw that lets unauthenticated attackers corrupt memory in default Rails and Sinatra applications. The rule is active for every customer, Free plans included, and anyone running Ruby web applications is concerned.
What to do now
- Product
- Ruby (Rails and Sinatra applications)
- Affected versions
- Default Rails and Sinatra applications; affected Ruby versions not stated in the source
- CVE
- CVE-2026-132825
On 20 November 2026, Cloudflare said its web application firewall now blocks exploitation attempts against ruby2shell, a vulnerability tracked as CVE-2026-132825. The company says the protection applies to all of its customers, including those on the Free plan.
According to Cloudflare, ruby2shell allows an attacker who has not logged in to corrupt memory in Rails and Sinatra applications running with default settings. Because no authentication is required, any internet-facing application of this kind is directly reachable by the vulnerable code path.
Cloudflare frames the WAF rule as a stopgap rather than a fix. Its main advice is to upgrade Ruby now. The post does not list which Ruby versions are affected or which ones contain the fix, so administrators will need to check the Ruby project's own announcements.
In practical terms, sites already proxied through Cloudflare get the rule without any change on their side. Applications exposed by other routes, and internal traffic that bypasses Cloudflare, are not covered by this protection.
What to do now
- Inventory exposed Ruby, Rails and Sinatra applications and upgrade Ruby to the fixed release published by the Ruby project, as the source does not name it.
- Confirm that traffic to these applications is routed through the Cloudflare proxy and that managed WAF rules are enabled.
- Find any direct paths to origin servers that bypass Cloudflare and restrict them until Ruby is upgraded.
- As general good practice, watch application logs for crashes or unusual behaviour in Ruby processes.