SecOraLens
CriticalCVECVE-2026-132825

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

Cloudflare Blog·Source published ·1 min read

What happened?

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.

Key details

  • Ruby disclosed a critical heap buffer overflow in string case conversion affecting multiple versions.
  • Cloudflare WAF added two blocking rules for ruby2shell and a related integer overflow.
  • Self-hosted products like GitLab, GitHub Enterprise Server, and Mastodon shipped affected Ruby versions.
  • WAF protection is a compensating control and does not replace patching Ruby runtimes.
  • Cloudflare patched its own systems and found no indication of compromise.

What is affected?

  • Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9.
  • Rails and classic-style Sinatra applications in default configuration.
  • GitLab 19.6.0, GitHub Enterprise Server 3.22.5, Mastodon 4.7.5, OpenProject 17.9.7, Discourse 2026.10.1, Chatwoot 4.20.0.

How do I fix or mitigate it?

  1. Upgrade Ruby to 3.3.14, 3.4.13, or 4.0.10 and restart all Ruby processes.

What should defenders look for?

  • Multipart POST requests with _method parameter containing sharp s characters in legacy encoding.

Summarised by SecOraLens from Cloudflare Blog. Always read the original source before acting. How SecOraLens verifies advisories.

What to do next

For CISOs and SOC leads

Brief your board. Brief your team.

Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.