Ruby2Shell flaw reaches default Rails apps; exploit code due November 25
Veria Labs says CVE-2026-132825, a one-byte heap overflow in Ruby's case conversion, can be reached without login in default Rails and classic Sinatra apps. It plans to publish exploit code on November 25; GitHub Enterprise Server has no fix yet.
Warden, covering security, outages and the rules for tech
, 3 min read
Nov 25Date Veria Labs plans to publish its Rails exploit
What to know
- Fixed in Ruby 4.0.10, 3.4.13 and 3.3.14, released November 18; Ruby 3.2 and older get no fix.
- Veria Labs lists Rails and classic Sinatra as exposed in their default configuration, without authentication.
- GitLab, Mastodon, Discourse, Chatwoot and OpenProject have shipped fixes; GitHub Enterprise Server 3.22.5 and earlier had none, per Veria.
Anyone running Ruby on a server now has a date to work back from. Veria Labs, the firm that turned one of Ruby's November 18 bugs into working remote code execution, says it will publish that exploit for a stock Rails app on November 25, later only if major vendors still have not shipped fixes. That gives Rails shops three days from today to get the interpreter upgraded.
The bug is the one-byte case-conversion overflow in the batch of seven we reported on November 19. It now has a CVE, CVE-2026-132825, and a name, Ruby2Shell. The new part is reach. When we wrote that story, the case bugs looked like a risk mainly for import jobs and odd normalization code. Veria's write-up lists Rails and classic-style Sinatra as exposed in their default configuration, to a network attacker with no login. Other Rack frameworks are not exposed by default, Veria says, though app code that changes the case of text in a legacy encoding still can be.
A capital letter that doesn't exist
Most single-byte encodings, such as ISO-8859-1 and Windows-1252, have no capital form of the German ß, so upcasing it writes two bytes, "SS". Veria's analysis shows Ruby's loop checks room for only one. The output buffer is the input length plus 20 bytes, so a string of 21 ß characters writes one byte past the end. That byte is always an "S" or an "s", which sounds harmless; Veria says it is enough. The bug has been in Ruby since 2.4.0. UTF-8 strings take a different path and are not affected.
Confirmed, claimed and unknown
Confirmed: the fix is in Ruby 4.0.10, 3.4.13 and 3.3.14. Ruby 3.2 and older are end of life and will not get one. MITRE's record scores it 7.4 (CVSS 3.1), while Ruby's own advisory calls it critical; our CVSS explainer covers why those two labels can disagree.
Not yet seen: attacks. watchTowr said on November 19 that no exploitation in the wild had been reported and that the flaw was not in CISA's Known Exploited Vulnerabilities catalog. watchTowr's Yordan Ganchev told SecurityWeek that a working attack in production is hard, given memory layout, allocators and address randomization, and that malformed requests are more likely to crash a process. A crash loop on a web tier is still an outage.
Disputed: credit. Veria says it found the bug independently. The Ruby advisory, as Veria cites it, also credits Stephan Lipp of Ada Logics working with Anthropic, and Moritz Sanft working with OpenAI. That makes it one more flaw this month that AI-assisted research found before attackers did, after Java4Shell and the PHP release.
Who has to move
Updating a gem does not fix this. watchTowr says the interpreter itself has to change: rebuild container images on a fixed Ruby, then restart every web server and background worker so the old binary is gone. No workaround has been published.
Self-hosted products bundle their own Ruby, so their owners wait on the vendor. Veria and SecurityOnline list fixed releases as GitLab 19.6.1, 19.5.8 and 19.4.10 (shipped November 20; GitLab.com is already patched), Mastodon 4.7.6, 4.6.12, 4.5.22 and 4.4.29, OpenProject 17.9.8 and 17.8.3, Chatwoot 4.20.1, and Discourse base image 2.0.20261119-0203.
The gap is GitHub Enterprise Server. Veria lists 3.22.5 and earlier as vulnerable with no fixed version as of its November 21 update. We found no statement from Microsoft-owned GitHub on when one will ship. If that patch is not out by Wednesday, GHES admins will be the ones holding an unpatched server on the day the exploit goes public, and the first question is whether Veria holds its release for them.
Sources
- Ruby2Shell (CVE-2026-132825), Veria Labs, updated November 21, 2026
- Ruby Patches Ruby2Shell Vulnerability That Could Lead to RCE, SecurityWeek, November 20, 2026
- Ruby2Shell (CVE-2026-132825) FAQ: Ruby Exposure and Fix, watchTowr, November 19, 2026
- GitLab Fixes Ruby2Shell (CVE-2026-132825) Remote Code Execution Flaws, SecurityOnline, November 20, 2026
Internet, outages and securityMicrosoftAnthropic
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.