Cloudflare WAF protects customers against ruby2shell, the company says, a critical Ruby vulnerability that can lead to remote code execution. The company added blocking rules for the flaw to its managed rulesets, but says organizations still need to upgrade every affected Ruby runtime.
Ruby disclosed the vulnerability, tracked as CVE-2026-132825, on November 19, 2026. The Ruby project rates it Critical. Fixed releases are Ruby 3.3.14, 3.4.13 and 4.0.10. Cloudflare’s WAF protection announcement describes its rules as a temporary layer while teams patch.
Who Needs to Update Ruby
The affected releases include Ruby 3.3.13 and earlier, versions 3.4.0 through 3.4.12, and versions 4.0.0 through 4.0.9. Ruby 3.2 and earlier are end-of-life and will not receive this fix. Distribution maintainers may backport security changes without changing the Ruby version number, so administrators should compare the complete package version with their distributor’s advisory.

Veria Labs reported that Ruby on Rails and classic-style Sinatra applications are affected in their default configurations. The source also lists self-hosted products whose latest release at disclosure time bundled an affected Ruby: GitLab 19.6.0, GitHub Enterprise Server 3.22.5, Mastodon 4.7.5, OpenProject 17.9.7, Discourse 2026.10.1 and Chatwoot 4.20.0. Those version references describe the releases available as of November 19, 2026.
For Discourse Docker installations, the source says the base image moved to Ruby 4.0.10 on November 19, and rebuilding picks up the fixed runtime. Other self-hosted product operators should apply each vendor’s fixed release when it becomes available. Teams should also inventory Ruby runtimes inside containers and bundled products, not only system packages.
How Cloudflare WAF Protects Ruby Applications
Cloudflare WAF protects against ruby2shell with a rule included in both its Free Managed Ruleset and Cloudflare Managed Ruleset, with Block as the default action. The company also added a second blocking rule for a related Ruby flaw fixed in the same releases. The Free plan’s ruleset runs automatically. Paid-plan customers should confirm that the Cloudflare Managed Ruleset is deployed and that the rules remain enabled.
Cloudflare WAF protects against some web traffic and can reduce exposure when traffic passes through Cloudflare, but it cannot cover every path to vulnerable Ruby code. Direct traffic that bypasses Cloudflare and internal service traffic do not pass through the WAF. Ruby applications may also process data through routes outside web requests. These limits make the managed rules a compensating measure, not a substitute for installing the fixed Ruby release.
Patch and Check Coverage
Cloudflare says it patched its own Ruby systems and found no indication of compromise. Its analysts continue monitoring activity and may update the rules as techniques change. Customers can review the WAF changelog for rule updates, while security teams should confirm protection settings in their own zones rather than assume every paid-plan zone uses the ruleset.
The release also fixes six other memory-safety flaws, according to Ruby. The source says several can lead to code execution, including an integer-overflow issue in string case conversion. It does not provide a basis for treating WAF coverage as a complete fix for those issues. Administrators should use the fixed Ruby releases and assess relevant vendor advisories for bundled software.
Cloudflare’s account of origin protection is also relevant to the broader question of traffic reaching an application: its coverage of origin protection discusses keeping requests in the protected path. For teams maintaining services alongside runtime upgrades, the site has also covered how hosting providers handle PHP security updates. Cloudflare’s deployment options are a separate operational topic, explained in its report on Cloudflare cache rules.
Administrators should upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10, restart Ruby processes, and rebuild affected container images. They should verify vendor guidance for products that bundle Ruby and check whether the managed WAF rules are active during the update. The complete fix remains a patched Ruby runtime across each affected deployment.









