Technology1 min read

How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

By · Published by Everything Blog

In short

Tracked as CVE-2026-132825, the flaw stems from handling legacy single-byte encodings like ISO-8859-1 during uppercase conversion of the German sharp s character. Web frameworks such as Ruby on Rails and classic Sinatra parse affected parameters before enforcing access controls, exposing systems by default. While Cloudflare has introduced defensive rules across all customer tiers, patching directly through updated Ruby releases remains the only definitive safeguard.

Key points

  • Bundled self-hosted enterprise applications like GitLab, GitHub Enterprise Server, and Ma…: Bundled self-hosted enterprise applications like GitLab, GitHub Enterprise Server, and Mastodon initially shipped with vulnerable Ruby versions.
  • Cloudflare deployed default rules across all service tiers to block exploit traffic for r…: Cloudflare deployed default rules across all service tiers to block exploit traffic for ruby2shell and a related integer overflow flaw.
  • Edge web application firewalls serve solely as temporary mitigations, leaving underlying…: Edge web application firewalls serve solely as temporary mitigations, leaving underlying software updates as the only complete solution.

Sources checked by our analysis pipeline: 1

On November 19, 2026, the Ruby team disclosed ruby2shell (CVE-2026-132825), a heap buffer overflow in the way Ruby changes the case of strings. Ruby rates the flaw Critical and says it is aware of proofs of concept that achieve remote code execution in some scenarios. Fixes shipped in Ruby 3.3.14, 3.4.13, and 4.0.10.

The reach is wide. Veria Labs reports that Ruby on Rails and classic-style Sinatra applications reach the bug in their default configuration, before any authentication. Self-hosted products that bundle Ruby, including GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot, shipped an affected Ruby in their latest release at the time of disclosure.

Cloudflare WAF blocks ruby2shell for all customers, including those on the Free plan. We have added two rules to both the Cloudflare Free Managed Ruleset and the Cloudflare Managed Ruleset, with Block as the default action: one for ruby2shell and one for GHSA-87fm-7w84-j2px, a related integer overflow in Ruby string case conversion fixed in the same releases.

The WAF is a compensating control, not a replacement for patching. Exploits can reach the bug through…

Technology