The Ruby core team released Ruby 4.0.10, 3.4.13 and 3.3.14 on November 18, 2026 (the advisory’s page history logs it as November 19 at 00:00 UTC), fixing seven memory-safety bugs in the interpreter’s regular expression engine and in its string case conversion. Three are rated critical, three high and one moderate. Proof-of-concept code showing remote code execution exists for five of them, and no attacks have been reported. If you run Ruby 4.0.0 through 4.0.9, 3.4.0 through 3.4.12, or 3.3.13 and earlier, you’re affected.
A bug that goes back to Ruby 2.4
The worst of the seven is in code most Rubyists have called for years without thinking twice. Ruby 2.4.0, released on Christmas Day 2016, changed upcase, downcase, swapcase and capitalize so they handled Unicode case mappings and not just ASCII, as the Ruby 2.4.0 release announcement noted at the time. Veria Labs, which named the flaw Ruby2Shell, says the bug has been there since that release. Back then, changing a string’s case was about the least worrying line in a codebase.
Here is how it works. Most of Ruby’s single-byte encodings, such as ISO-8859-1 and Windows-1252, have no capital ß, so upcasing one writes two bytes (“SS”), but the loop only bounds-checks one. The output buffer is the input length plus 20 bytes, so 21 ß characters overflow it by one byte. UTF-8 strings go through a different code path and aren’t affected.

Why Rails apps are exposed
That one-byte overflow, now tracked as CVE-2026-132825, can be reached over the network without authentication in the default configuration of Rails and classic-style Sinatra apps, according to Veria Labs’ Ruby2Shell write-up. In his analysis, Moritz Sanft traces the Rails path to Rack, which changes the case of input while it processes a crafted form submission. That means a freshly generated app hits the bug before any of its own code runs. Plain Rack and other frameworks aren’t exposed by default, though application code that upcases strings in a legacy encoding still can be.
The other six need different conditions. Five are in the regex engine: a double free when compiling patterns that use && character-class intersection, heap overflows in pattern compilation and in Regexp#to_s, and two out-of-bounds reads during case-insensitive matching. Most of them require an app to compile or run patterns an attacker controls. Matching untrusted text against your own patterns is generally safe, except for the moderate backreference bug. The second case-conversion bug only triggers when the result is larger than 4 GiB, which makes it impractical for most requests. Only Ruby2Shell has a CVE so far, and the rest are tracked by GitHub advisory IDs until CVEs are assigned. Stephan Lipp of Ada Logics and Anthropic reported four of the seven.
Upgrading
As with the Node.js security releases that patched 16 CVEs, the fix is in the runtime itself, so updating gems or Rails won’t help. You need to change the Ruby version on app servers, background workers and container images, then restart the services or rebuild the images. The project’s security advisory says Ruby 3.2 and earlier won’t get these fixes, since 3.2 reached end of life on April 1, 2026. Ruby 3.3 is now in legacy maintenance, with end of life expected on March 31, 2027, and the project calls those dates preliminary.
Self-hosted products that bundle their own Ruby need a vendor release. Veria Labs’ tracker, last updated November 20, lists fixed versions of GitLab (19.6.1, 19.5.8 and 19.4.10), Mastodon, Chatwoot, OpenProject and Discourse’s base image. It lists GitHub Enterprise Server 3.22.5 and earlier as still unpatched. Veria plans to publish its exploit for stock Rails on November 25, 2026, or later if major vendors haven’t shipped fixes by then.