Skip to content
Vulnerability PoC public Memory corruption CVE-2026-132825

Ruby heap overflow ruby2shell (CVE-2026-132825) fixed in 3.3.14, 3.4.13 and 4.0.10

Ruby has fixed a critical heap buffer overflow in string case conversion that can lead to remote code execution, with Rails and Sinatra apps exposed by default.

Covered by 2 outlets

First reported Summary updated

Read the coverage
Public PoC
Yes
Exploited
No
CVSS
7.4 High

What happened

The Ruby team disclosed ruby2shell (CVE-2026-132825), a heap buffer overflow in how Ruby changes the case of strings.2

The flaw occurs in legacy single-byte encodings such as ISO-8859-1 and Windows-1252, where the uppercase form of the German sharp s is two characters but Ruby checks for room for only one.2

Ruby has released fixes in versions 3.3.14, 3.4.13 and 4.0.10.2

Who is affected

  • Ruby, 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.92
  • Ruby on Rails and classic-style Sinatra applications, default configuration2
  • GitLab, GitHub Enterprise Server, Mastodon, OpenProject, Discourse and Chatwoot, latest releases at time of disclosure2

Is there a public exploit?

Yes, public Ruby is aware of proofs of concept that achieve remote code execution in some scenarios, and Veria Labs plans to publish its own proof of concept about a week after disclosure.2

Exploited in the wild?

Not yet No attacks have been reported yet.1

What to do

  • Upgrade Ruby to 3.3.14, 3.4.13 or 4.0.10 and restart application servers.1
  • If running Ruby 3.2 or older, move to a supported series as no fix will be provided.1
  • For self-hosted software such as GitLab, make the server private (for example behind a VPN or IP allowlist) until the vendor ships a fixed release.1

For bug hunters

This is a heap buffer overflow in string case conversion, a memory-corruption bug class. In bug bounty programs, look for any feature that changes the case of user-supplied strings, especially when legacy encodings can be specified. Test multipart form parameters, headers, and query strings that might be upcased or downcased before validation. Focus on Ruby applications and frameworks that use Rack middleware.

What to test

  • Send strings with repeated sharp s characters in legacy encodings to endpoints that call upcase or swapcase.
  • Try multipart POST requests with a _method parameter containing legacy-encoded sharp s characters.
  • Check if the application accepts user-controlled encoding declarations in form fields or headers.
  • Look for search, filtering, or admin features that process user input with case conversion.

The Memory corruption lesson Every Memory corruption report

Written by bugbounty.wiki with AI from the 2 outlets below. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.

Coverage

2 articles, oldest first. Each headline opens the outlet's own article.

  1. 1

    Aikido

    Ruby2Shell: critical Ruby RCE, affected versions and how to fix it (CVE-2026-132825)
    “You are affected if you run Ruby 2.4.0 to 3.3.13, 3.4.0 to 3.4.12 or 4.0.0 to 4.0.9, and your application changes the case of untrusted…”
  2. 2

    Cloudflare Blog

    How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)
    “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.”

Disclosed reports for Ruby

View all

The newest public reports from its bug bounty program.

Reports about Memory corruption

View all

Disclosed reports of the same bug class, clearest first.

More news

View all

Other stories from the last month, Memory corruption first.