Critical ruby2shell vulnerability affects default Rails and Sinatra applications
11/22/2026
ruby2shell can lead to remote code execution, affecting default Rails and Sinatra applications.
Key points
•The vulnerability is a heap overflow in Ruby string case conversion, tracked as CVE-2026-132825.
•The fixed versions are Ruby 3.3.14, 3.4.13, and 4.0.10.
•Cloudflare WAF blocks it by default, including on the free plan.
Impact
•Affected: Rails with default configuration, classic Sinatra, and self-hosted products that bundle Ruby.
•It can be triggered by unauthenticated requests; GitLab, Mastodon, and others should verify as soon as possible.
Recommendations
1.Upgrade to Ruby 3.3.14, 3.4.13, or 4.0.10; this is the complete fix.
2.Check whether Cloudflare Managed Ruleset is enabled; it runs automatically on the free plan.
3.Restrict the origin to accept only Cloudflare traffic, and investigate non-HTTP entry points.