One letter is enough. The sharp s, ß, becomes SS when it is uppercased. In 14 legacy single-byte encodings Ruby writes those two bytes but checks for room for only one. One byte past the buffer. That is ruby2shell.
Fact
The facts: on 19 November 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. According to Veria Labs, Ruby on Rails and classic-style Sinatra applications reach the bug in their default configuration, before any authentication. Affected are Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12 and 4.0.0 through 4.0.9; according to Veria Labs the bug has been present since Ruby 2.4.0, and Ruby 3.2 and earlier have reached end of life and will not receive the fix. According to Veria Labs, as of 19 November 2026 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 shipped an affected Ruby in their latest release. According to Veria Labs, a string with 21 sharp s characters overflows the output buffer by one byte. The methods that reach the bug are upcase, swapcase, downcase(:fold) and casecmp?; UTF-8 strings take a different code path and are not affected. Cloudflare added two rules to both its Free Managed Ruleset and its Managed Ruleset, with Block as the default action: one for ruby2shell and one for GHSA-87fm-7w84-j2px, a related integer overflow in the same string case conversion code, fixed in the same releases.
Why you reach it before login. HTML forms can only send GET and POST. To simulate PUT, PATCH or DELETE, many frameworks accept a _method parameter in a POST request. Rack, the interface most Ruby web frameworks build on, does this in its MethodOverride middleware, which converts the value of _method to uppercase. Rails includes it by default, classic-style Sinatra enables it. An attacker sends a multipart POST whose _method part declares a legacy character set and contains a run of sharp s characters. The framework upcases the value while it is still routing the request, before any application code or authentication check runs.
One byte past the buffer can be enough to corrupt an adjacent object.
Cloudflare says it plainly: the WAF is a compensating control, not a replacement for patching. An exploit can reach the bug through paths a WAF does not see: a request sent straight to your origin address, traffic between internal services, or code that changes the case of strings from email, file imports, message queues or background jobs. The only complete fix is to upgrade Ruby. Cloudflare has patched its own systems that use Ruby, and says it has found no indication of compromise.
Upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10. If Ruby comes bundled in a product you host yourself, check the full package version against your distribution's advisory: fixes get backported without a version number change. Cloudflare's rules are on for all customers, including those on the Free plan. They cover only the path through HTTP.
Official primary sources
Cloudflare - How Cloudflare WAF protects against ruby2shell (CVE-2026-132825), 20.11.2026The visual is generated code-art, no third-party images.