bundle update will not fix Ruby2Shell. The flaw is in the Ruby interpreter, so a Rails application with every gem current is still exposed if the Ruby underneath it is not.
On November 18, 2026, the Ruby core team published a security advisory covering seven vulnerabilities in Ruby's regular expression engine and in string case conversion. It released Ruby 4.0.10, 3.4.13, and 3.3.14 to fix them. The fix for a Rails application is to move the Ruby it actually runs to one of those releases, then rebuild and redeploy. Updating gems is a separate job.
We build and maintain Rails applications. The Ruby version is the item we most often find with no owner: the Gemfile gets attention every sprint, and the interpreter was chosen once, years ago.
What is Ruby2Shell?
Ruby2Shell is the name the security firm Veria Labs gave to one of the seven flaws: a one-byte heap overflow in how Ruby changes the case of a string. Veria Labs' write-up tracks it as CVE-2026-132825 and rates it critical. The Ruby advisory lists it as GHSA-34m4-m9fh-gqp5 and says the team is aware of proofs of concept that reach remote code execution in some scenarios.
The mechanics matter for judging exposure. According to Veria Labs, the overflow happens when Ruby upcases or case-folds a string in certain single-byte encodings, such as the ISO-8859 and Windows-125x families. UTF-8 strings take a different code path and are not affected. The firm reports that Rails and classic-style Sinatra can be reached in their default configuration, with no authentication. Other frameworks are not exposed by default, but application code that upcases input received in a legacy encoding may be.
Veria Labs says it plans to publish a proof of concept for stock Rails on November 25, 2026, or later if major vendors have not shipped fixes.
Is my Rails app affected?
A Rails application is affected when it runs on an unpatched Ruby. The Ruby advisory lists the affected versions:
- Ruby 4.0.0 through 4.0.9. Fixed in 4.0.10.
- Ruby 3.4.0 through 3.4.12. Fixed in 3.4.13.
- Ruby 3.3.13 and earlier. Fixed in 3.3.14 for the 3.3 series.
The advisory also states that Ruby 3.2 and earlier have reached end of life and will not receive these fixes. Veria Labs reports the vulnerable code has been present since Ruby 2.4.0. An application on Ruby 3.2 or older has no patch release to install.
Five steps for every Rails application
Find the Ruby each application runs in production. Check the .ruby-version file, the ruby line in the Gemfile, and the base image tag in the Dockerfile. Then confirm on the running system with ruby -v. The files say what someone intended. The running process says what is true.
Compare it to the advisory. Record the result per deployed application, including background workers and one-off script servers. They often run a different image than the web process.
Upgrade within the same series. Move 3.3 to 3.3.14, 3.4 to 3.4.13, and 4.0 to 4.0.10. A patch release inside one series is a low-risk change. Run the test suite and deploy.
Rebuild container images without the cache. A Dockerfile that says ruby:3.4 can keep building from a cached base image that predates the fix. Pull the base image fresh, rebuild, and check ruby -v inside the new image before you deploy it.
Plan the larger move for Ruby 3.2 and older. There is no patch for these versions. Moving to a supported series is an upgrade project with gem compatibility work. Start it now, and in the meantime reduce exposure at the edge of the application. We cover the triage for older applications in what we check in a legacy Rails app after the Ruby Marshal RCE.
Check the Ruby you did not install
Self-hosted products written in Ruby bundle their own interpreter. Your patching does not reach it. Veria Labs' write-up notes that for these products the fix has to come from the vendor. List the Ruby-based tools you host yourself, such as source control, support desks, and forums, and install each vendor's fixed release as it ships.
Ruby2Shell follows the same pattern as the Java4Shell flaw under ColdFusion disclosed on November 17, 2026: the runtime under the framework had the bug, and the framework's own update process did not cover it. Add one line to your patch checklist: runtime version, per deployed application, checked after every runtime advisory. The same habit belongs in the build, as we describe in Rails supply chain security starts in the build pipeline.
If you are not sure which Ruby your Rails applications run in production, our Rails team can inventory and patch them with you this week.

