CloudflareDaniele Molteni
Cloudflare WAF adds protection against Ruby ruby2shell flaw
Part of the CVE-2026-132825 story · since 19 Nov
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Fri 20 Nov, 09:31 UTC. SecurityOnline, its first report on the story. GitLab patches Ruby flaw that could enable remote code execution.
- Fri 20 Nov, 11:00 UTC. SecurityWeek, its first report on the story. Ruby patches Ruby2Shell flaw that could enable remote code execution.
- Fri 20 Nov, 21:00 UTC. Cloudflare, its first report on the story. Cloudflare WAF adds protection against Ruby ruby2shell flaw. This article, 4th of 4.
On 19 November 2026, the Ruby team disclosed ruby2shell (CVE-2026-132825), a heap buffer overflow in how Ruby handles string case conversion. Ruby notes the flaw as Critical and says there are proofs of concept that can achieve remote code execution in some scenarios. Fixes are shipped in Ruby 3.3.14, 3.4.13, and 4.0.10.
Veria Labs notes that Ruby on Rails and classic-style Sinatra apps can be exposed in default configurations before authentication, and self-hosted products that bundle Ruby—such as GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot—were shipping an affected Ruby in their latest releases at disclosure.
Cloudflare says its WAF now blocks ruby2shell for all customers by adding two rules to the Free and Pro/Business/Enterprise managed rulesets, with Block as the default action: one for ruby2shell (CVE-2026-132825) and one for GHSA-87fm-7w84-j2px, an integer overflow in the same string case conversion code.
The article explains how the flaw arises: Ruby strings in legacy single-byte encodings can produce a two-byte uppercase form (ß to SS) that overflows a one-byte output buffer, potentially enabling memory corruption and code execution in unauthenticated paths such as pre-authentication requests that upcase legacy-encoded strings during routing.
It notes that UTF-8 is not affected, and that Rails’ default MethodOverride in Rack can expose attacks via a crafted multipart POST containing legacy-encoded sharp s sequences. Cloudflare cautions that a WAF cannot see every path to the vulnerable code and that patching Ruby remains essential.
Guidance includes verifying WAF coverage, upgrading Ruby to 3.3.14, 3.4.13 or 4.0.10, updating bundled software (GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse, Chatwoot), rebuilding containers, and using the Zero Wire briefing to locate affected runtimes. Cloudflare’s team will update protections as new techniques emerge.
How the story developed
4 articles from 4 outlets since 19 Nov. Still developing; the latest report was 11 hours ago. This was the 4th report, 2 days after the first.
- Thu 19 Nov, 08:24 UTC. cybersixt, first report. Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist.
- Fri 20 Nov, 09:31 UTC. SecurityOnline, its first report on the story. GitLab patches Ruby flaw that could enable remote code execution.
- Fri 20 Nov, 11:00 UTC. SecurityWeek, its first report on the story. Ruby patches Ruby2Shell flaw that could enable remote code execution.
- Fri 20 Nov, 21:00 UTC. Cloudflare, its first report on the story. Cloudflare WAF adds protection against Ruby ruby2shell flaw. This article, 4th of 4.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 4 articles as a listHide the list
- Thu 19 NovDay 01
- Ruby vulnerabilities: seven memory flaws fixed, RCE PoCs exist08:24 · cybersixt · First report
- Fri 20 NovDay 13
- GitLab patches Ruby flaw that could enable remote code execution09:31 · SecurityOnline
- Ruby patches Ruby2Shell flaw that could enable remote code execution11:00 · SecurityWeek
- Cloudflare WAF adds protection against Ruby ruby2shell flaw21:00 · Cloudflare · This article, 4th of 4