Most of us treat the Ruby interpreter as plumbing that gets bumped whenever a distribution feels like it. Ruby2Shell breaks that habit. On 18 November 2026 the Ruby core team disclosed seven vulnerabilities in the regular expression engine and in string case conversion, and said it knows of proofs of concept that reach remote code execution. One of them already has an identifier, CVE-2026-132825, a heap overflow in case conversion. It’s reachable through middleware that every new Rails app, API-only ones aside, loads by default.
This page answers the first question straight away: is the Ruby that serves your requests one of the fixed builds? The tables and check commands come first. Then we explain why a stock Rails app is exposed and cover the patch paths for rbenv, Docker, Alpine and Fedora, the GitLab lockdown, and the stopgap for distribution Ruby that has no fix yet. Every vendor row was checked on 19 and 20 November 2026. The Ruby, Rails and GitLab steps ran on Ubuntu 24.04 and 26.04 lab hosts, and the Alpine and Fedora packages were tested in containers on them.
Which Ruby builds are affected and which fix them
You’re fixed when the process serving traffic runs Ruby 3.3.14, 3.4.13 or 4.0.10, or a distribution build whose changelog names these fixes. The upstream picture comes from the Ruby security advisory, which covers all seven vulnerabilities in one release per branch:
| Ruby series | Vulnerable | Fixed build | Official Docker tag |
|---|---|---|---|
| Ruby 4.0 | 4.0.0 through 4.0.9 | 4.0.10 | ruby:4.0.10 |
| Ruby 3.4 | 3.4.0 through 3.4.12 | 3.4.13 | ruby:3.4.13 |
| Ruby 3.3 | 3.3.13 and earlier | 3.3.14 | ruby:3.3.14 |
| Ruby 3.2 and older | All builds | None upstream (end of life) | None; vendor backports only |
Two older regular expression bugs now carry critical Ruby advisories of their own. On 17 November 2026 at 04:17 UTC the Ruby team published GitHub security advisories in the ruby/ruby repository for CVE-2026-93577, an integer overflow in regular expression compilation, and CVE-2026-89078, a double free in regular expression parsing. GitLab found both and assigned the CVE IDs, and its 19.4.1 patch release from 23 September already rated them critical. The Ruby fixes shipped well before Ruby2Shell: 4.0 had them by 4.0.8, and the 3.4 and 3.3 fixes came in the 23 October releases described in Ruby’s regexp fixes notice for the GitLab CVEs. We re-read both advisories and that notice on 20 November 2026:
| CVE | Ruby advisory | Bug | First fixed in 4.0 | First fixed in 3.4 | First fixed in 3.3 |
|---|---|---|---|---|---|
| CVE-2026-93577 (critical) | GHSA-22mf-ggw7-pxfx | Integer overflow in regular expression compilation | 4.0.8 | 3.4.12 | 3.3.13 |
| CVE-2026-89078 (critical) | GHSA-gfj3-8wj9-qx8p | Double free in regular expression parsing | 4.0.0 (the 4.0 series was never affected) | 3.4.12 | 3.3.13 |
The 18 November builds, 3.3.14, 3.4.13 and 4.0.10, contain both fixes, so a host on a Ruby2Shell fixed build is covered for these two as well. The reverse doesn’t hold. A scanner that clears 3.4.12 or 3.3.13 for CVE-2026-93577 and CVE-2026-89078 is right about them and still says nothing about the seven November bugs. Both are reached only when an app compiles a pattern built from attacker input, for example through Regexp.new, Regexp.union, Regexp.compile or interpolation into a regexp literal, and Regexp.timeout doesn’t stop either one. GitLab also tracks the same compilation overflow as CVE-2026-97229.
Distribution packages are where it splits, because a vendor patch keeps the old version string. Ubuntu’s fix for ruby3.2 on 24.04 will still say 3.2.3 with a higher package suffix, never 3.4.13. So the package status below matters more than ruby -v on those hosts. We read each tracker between 22:00 UTC on 19 November and 02:30 UTC on 20 November 2026:
| Platform | Package | Fixed build | Status when checked |
|---|---|---|---|
| Ubuntu 26.04 | ruby3.3 (3.3.8-2ubuntu3.2) | None | Needs evaluation, 2026-11-20 |
| Ubuntu 24.04 | ruby3.2 (3.2.3-1ubuntu0.24.04.9) | None | Needs evaluation, 2026-11-20 |
| Ubuntu 22.04 | ruby3.0 | None | Needs evaluation, 2026-11-20 |
| Debian 13 trixie | ruby3.3 (3.3.13-0+deb13u1 in security) | None | All seven listed vulnerable, 2026-11-20 |
| Debian 12 bookworm | ruby3.1 | None | Vulnerable, 2026-11-20 |
| RHEL 10, 9, 8 (Rocky, Alma) | ruby module streams | None | No Red Hat CVE page yet; Bugzilla 2576211 open, 2026-11-20 |
| Amazon Linux 2023 | ruby3.2, ruby3.4, ruby4.0 | None | Pending fix, 2026-11-19 |
| Amazon Linux 2 | core ruby; Extras ruby 2.4, 2.6, 3.0 | None | Core not affected; Extras no fix planned, 2026-11-19 |
| Alpine 3.22, 3.23, 3.24, edge | ruby | 3.4.13-r0 | Fixed, lab verified 2026-11-19 |
| Fedora 45, 44 | ruby | 4.0.10-41 | updates-testing only, lab verified 2026-11-19 |
| Fedora 43 | ruby | 3.4.13-34.fc43 | updates-testing per Bodhi, 2026-11-19 |
| Docker official ruby image | 3.3.14, 3.4.13, 4.0.10 and floating tags | Rebuilt | Fixed, lab verified 2026-11-19 |
Products that bundle their own Ruby do not care what the host has installed. They move only when the vendor ships a new build, and on 20 November most of them had not:
| Product | Bundled Ruby | Status when checked |
|---|---|---|
| GitLab CE/EE 19.6.0 (Omnibus) | 3.3.13 (lab verified) | Vulnerable. No patch release yet; the Omnibus bump to Ruby 3.3.14 and 3.4.13 is merged for 19.6 and 19.3 and still open for 18.11 |
| Mastodon 4.7.6 | Fixed in the Docker images | Fixed. Veria and Semgrep also list 4.6.12, 4.5.22 and 4.4.29. Non-Docker installs need a fixed Ruby on the host |
| Discourse (discourse_docker) | 4.0.10 from 19 Nov | Fixed after ./launcher rebuild app |
| OpenProject 17.9.8 | 4.0.10 (.ruby-version at the v17.9.8 tag) | Fixed, released 19 Nov; the release notes don’t mention Ruby |
| GitHub Enterprise Server 3.22.5 | 4.0.9 according to Semgrep | No fix announced |
| Chatwoot 4.20.0 | 3.4.4 according to Semgrep | No fix announced |
We didn’t check SUSE, Arch, FreeBSD ports, macOS Homebrew or Windows RubyInstaller. If you run one of those, apply the same rule: find the build string the vendor publishes for the fix, then confirm the running process uses it.
What we know about exploitation on 20 November 2026
Nothing public shows attacks yet, but the clock is short, as the five sources we read on 19 and 20 November show.
- Severity: NVD has not scored CVE-2026-132825. The vector MITRE filed as CNA (AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) works out to 7.4, while Amazon rates it Important at 8.1 with a network attack vector.
- EPSS: 0.00174 on 19 November, a score computed before any public code execution exploit existed.
- In the wild: watchTowr’s write-up says no exploitation had been reported as of 19 November 2026.
- CISA KEV: the newest catalog we could read (2026.11.18, through the cisagov/kev-data mirror) was cut the day before the CVE was published, so its silence tells us nothing yet.
- Public exploit: Veria Labs says it will publish remote code execution against stock Rails on 25 November 2026, or later if major vendors have not shipped fixes by then.
That last line sets the deadline. A low EPSS score and no KEV entry describe the days before a working exploit is published, not the days after it. Plan to have Internet facing Rails apps on a fixed build before 25 November.
How to check every Ruby on a host
The check is local because no HTTP probe can tell you the answer. Rails does not advertise its interpreter in headers, a fixed distribution build keeps the old version number, and a scanner that sends a crafted request would be running the exploit. So you work from a shell on each host, starting with whatever ruby is first on the PATH:
ruby -v
That’s only the default interpreter for your login shell. Version managers keep their own trees, and a service unit often points straight at one of them. This loop walks the usual rbenv, RVM and chruby locations plus the system paths, and asks each binary for its version:
for r in ~/.rbenv/versions/*/bin/ruby ~/.rvm/rubies/*/bin/ruby /opt/rubies/*/bin/ruby /usr/bin/ruby /usr/local/bin/ruby; do [ -x "$r" ] && echo "$r: $("$r" -e 'print RUBY_VERSION')"; done
Run it as each user that owns an app, since ~ expands to the current user. If you use asdf or mise, add ~/.asdf/installs/ruby/*/bin/ruby and ~/.local/share/mise/installs/ruby/*/bin/ruby to the list. What matters most is the binary behind the running processes, and /proc/<pid>/exe answers that without guessing which shim or wrapper started them:
for p in $(pgrep -f 'puma|unicorn|sidekiq'); do echo "$p $(readlink /proc/$p/exe)"; done
On our lab host the Puma worker reports its exact interpreter path, and the loop finds two Rubies, the rbenv build the app uses and the distribution’s own:

Both are vulnerable: 3.4.12 sits one release below the fix, and 3.2.3 is an Ubuntu package. Run as root, readlink also resolves processes owned by other users. If you serve with Passenger or Falcon, or run jobs through GoodJob or Resque, add those names to the pgrep pattern. For distribution packages, list what is installed with the package manager that applies:
dpkg -l 'ruby*' | grep '^ii'
rpm -qa 'ruby*'
On Ubuntu, pro fix goes one step further and asks Canonical’s tracker about the exact CVE. On our 24.04 host it named the affected source package and confirmed there is no fix to install yet:

Ubuntu 26.04 gave the same answer for ruby3.3 3.3.8-2ubuntu3.2. When Canonical ships a build, pro fix will install it and the package version will change, while ruby -v keeps saying 3.2.3. That’s the backport trap: on distribution Ruby, trust the package status, not the version string.
Two places hide their own Ruby. GitLab’s Omnibus package ships one under /opt/gitlab/embedded, and every container image carries one. Check both directly:
sudo /opt/gitlab/embedded/bin/ruby --version
docker run --rm your-app:latest ruby -v
If your image’s entrypoint swallows the arguments, use docker run --rm --entrypoint ruby your-app:latest -v instead. Do this for each image tag that is actually deployed, not the one in your registry’s latest tag.
Why a plain Rails app is reachable
The bug needs an attacker’s bytes to reach a case conversion call in a vulnerable single byte charset, and Rails provides that path before your code runs. The mechanism, without the exploit, goes in four moves:
- The request arrives as multipart form data. Each part can declare its own charset, and Rack honours it when it builds the string.
- Rack::MethodOverride reads the
_methodfield. That middleware lets HTML forms send PUT or DELETE, and it’s in the default stack of every full Rails app (API-only apps leave it out), as the Rails on Rack guide lists. - The field gets upcased. When the declared charset is one of the affected ISO-8859 or Windows code pages,
String#upcasetakes the vulnerable conversion path. - The one byte overflow corrupts the heap. Researchers report turning that into code execution in the Ruby web server process, which runs as the app’s user.
We confirmed the first precondition on a fresh Rails 8.1 app, generated with --minimal to keep the stack small. MethodOverride is still the ninth middleware, and nothing in the app pins the interpreter except .ruby-version:

Removing MethodOverride narrows one path but doesn’t fix anything. Write-ups from durendal and Semgrep name the String methods that reach the bug in affected charsets, namely upcase, swapcase, downcase with the fold option and casecmp?, along with their bang and Symbol forms. Any app or gem that applies one of these to request data in an affected charset has the same exposure, both to this bug and to the second case conversion bug, an integer overflow. The five regular expression bugs matter wherever user input becomes a pattern. Veria and Semgrep also name classic-style Sinatra apps, which load the same MethodOverride middleware before any login check. UTF-8 strings are not affected by the case conversion bug, which is why most traffic is safe and why a crafted charset is the whole trick.
How to move an app to a fixed Ruby with rbenv
For apps on a version manager, the fix is a new interpreter build, a pin change and a restart. The restart is the step people skip. We’ll show why with a Rails app running under systemd as user gedion. If you’re setting rbenv up from scratch, our guide to installing Ruby on Ubuntu covers the build dependencies. On an existing install, update ruby-build first, since it only knows about releases that existed when you last pulled it:
git -C ~/.rbenv/plugins/ruby-build pull
rbenv install --list | grep -E '^(3\.3|3\.4|4\.0)\.'
ruby-build v20261119 is the first release that lists 3.3.14, 3.4.13 and 4.0.10. Pick the fixed build in the series your app already uses, so the upgrade stays a patch release and the same gem versions resolve. Then build it, pin the app to it, and reinstall the bundle:
rbenv install 3.4.13
cd ~/shop
rbenv local 3.4.13
bundle install
The compile took six minutes on four vCPUs. rbenv local rewrites .ruby-version, which is what rbenv and most CI setups read. The Rails Dockerfile keeps its own copy of the version, covered in the container section below.

Rails 8 apps have no ruby line in the Gemfile, but older apps often do, as ruby "3.4.12" or similar. Change it to the fixed version in the same commit. Bundler refuses to load a bundle when the running interpreter doesn’t match that line, so a missed edit shows up as a failed boot rather than a silent downgrade. RVM’s known Ruby list stopped at 3.3.13 and 3.4.12 when we checked, so ruby-build or ruby-install is the safer route for now.
Why the old Ruby keeps serving until you restart
A running process has the old binary mapped into memory, and nothing you install on disk changes that. Right after bundle install our app still answered with the old version, and /proc still pointed at the 3.4.12 tree. A full service restart is what moves it:
sudo systemctl restart shop
The before and after makes the point. It is the same check on the same app, and only the restart changed the binary, now behind PID 36092.

Restart everything that loads the app, not just the web server. In practice that means three kinds of process.
- Puma: stop and start the service. A phased restart keeps the master process, and new workers fork from that master’s old interpreter.
- Unicorn: restart the service rather than sending USR2, unless you’ve confirmed the re-exec resolves through the shim to the new build.
- Sidekiq and other job runners: restart them too, since job arguments often carry user data through the same String methods.
Then rerun the /proc loop and expect every PID to resolve to the fixed tree. Once nothing references the old build, rbenv uninstall -f 3.4.12 removes it so a stale .ruby-version can’t quietly bring it back. Our unit’s ExecStart calls rbenv exec, which is why the restart alone picked up the new pin; a unit that hardcodes ~/.rbenv/versions/3.4.12/bin/ruby needs that path edited too.
How to rebuild container images on a fixed base
Containers fix the other way round: the image is the interpreter, so you rebuild on a fixed base and redeploy. Docker’s official ruby image was rebuilt on 19 November for all three fixed releases, and the floating series tags moved with them:

A Dockerfile from rails new pins the exact build in an ARG RUBY_VERSION line, with a comment saying it must match .ruby-version. Bump that argument and rebuild with --pull, so Docker fetches the new base instead of reusing a cached layer:
sed -i 's/^ARG RUBY_VERSION=.*/ARG RUBY_VERSION=3.4.13/' Dockerfile
docker build --pull -t shop:new .
Our test image showed the old and new builds side by side, from the same Dockerfile before and after the edit.

If your base is a floating tag such as ruby:3.4-slim, there is nothing to edit, but --pull becomes mandatory, because a builder with the old tag cached will happily reuse it. Either way, the job is not done until the new image replaces every running container. Check with docker run on the deployed tag, or kubectl exec into a live pod, not on the image you think you shipped.
What Alpine and Fedora packages ship today
Alpine is the one distribution that had the fix in its stable branches within a day, and Fedora has it waiting in testing. We installed the package on clean containers of each release to see what a reader would actually get:

On Alpine 3.22, 3.23 and 3.24 a normal upgrade brings ruby 3.4.13-r0. That also covers images built FROM alpine that add Ruby with apk, as long as you rebuild them:
apk -U upgrade ruby
Fedora 45 and 44 still install 4.0.9 from the stable repositories. The fixed 4.0.10 build is in updates-testing, which you can pull for this one package without moving the rest of the system onto testing:
sudo dnf --enablerepo=updates-testing upgrade ruby
Fedora 43 has ruby 3.4.13 in testing according to Bodhi; we did not install that one. Once the update reaches stable a plain dnf upgrade picks it up, and either way you restart the app services afterwards, for the same reason as with rbenv.
Why GitLab needs a different plan
A GitLab Omnibus server runs its own Ruby, and you can’t swap it. Patching the host’s system Ruby changes nothing, because Puma and Sidekiq inside GitLab load /opt/gitlab/embedded/bin/ruby. We installed the newest release, 19.6.0 from 19 November, and asked that binary directly:

Ruby 3.3.13 is the last vulnerable 3.3 build, so even a GitLab installed this week is exposed. That build does carry the fixes for CVE-2026-93577 and CVE-2026-89078, which GitLab had already patched in 19.4.1, so the open gap on GitLab is the seven November bugs. The newest patch releases in GitLab’s feed when we checked were 19.5.6, 19.4.8 and 19.3.9 from 16 November, which predate the Ruby fix. The Omnibus change that bumps Ruby to 3.3.14 and 3.4.13 was merged into the 19.6 and 19.3 stable branches on 19 November and is still open for 18.11. So a patch release is coming, but it had not shipped by 20 November.
Until it does, take the instance off the public Internet. Put it behind your VPN, an IP allowlist at the load balancer, or a host firewall that admits only trusted networks. With ufw on the GitLab host, keep SSH open first so you don’t lock yourself out, then allow the web ports from the VPN subnet and deny everyone else:
sudo ufw allow OpenSSH
sudo ufw allow from 10.8.0.0/24 to any port 443 proto tcp
sudo ufw allow from 10.8.0.0/24 to any port 80 proto tcp
sudo ufw deny 80/tcp
sudo ufw deny 443/tcp
sudo ufw --force enable
sudo ufw status numbered
Order matters in ufw: the allow rules for 10.8.0.0/24 have to sit above the denies, which the numbered status confirms:

Replace 10.8.0.0/24 with your VPN or office range. Docker published ports bypass ufw. A GitLab container therefore needs the same restriction at your cloud firewall or in the DOCKER-USER chain. SSH stays open here for administration, so make sure it accepts keys only, and allow your port explicitly if sshd doesn’t listen on 22. One trade-off: if GitLab renews its own Let’s Encrypt certificate over HTTP, denying port 80 to the world breaks renewal, so reopen it briefly or switch to DNS validation while the lockdown lasts. When the patch release lands, upgrade the usual way and check the embedded binary again. Our GitLab CE install guide for Ubuntu shows the package upgrade path. The earlier GitLab CVE-2026-110264 patch notes and wiki XSS fix in CVE-2026-105739 list the November patch releases you should already be on.
Other self-hosted Ruby apps follow the same rule: the vendor’s build is the fix. Mastodon’s 4.7.6 images and a Discourse ./launcher rebuild app are already fixed. A Mastodon install from source, like the one in our Mastodon on Ubuntu guide, needs a fixed Ruby through rbenv as above. A Chatwoot server gets the GitLab treatment until Chatwoot ships a fixed release.
What to do on distribution Ruby with no fix yet
Move the app off the distribution’s Ruby and onto a fixed one you control. Ruby itself publishes no workaround, so there is no setting that turns the vulnerable code off. On Ubuntu, Debian, RHEL and Amazon Linux the packaged interpreter will stay vulnerable until each vendor ships, and some old ones, such as Ruby 3.0 in Amazon Linux 2 Extras, are marked no fix planned. Waiting is a real risk with a public exploit due on 25 November. You have two practical routes:
- rbenv build per app user: install 3.4.13 or 3.3.14 under the app’s account as shown above, point the service at
rbenv exec, and leave the system package alone for whatever else depends on it. On Rocky or AlmaLinux the build dependencies differ, and our Rails on Rocky and AlmaLinux guide lists them. - A fixed container image: run the app from
ruby:3.4.13-slimor another fixed tag, which takes the interpreter out of the distribution’s release cycle entirely.
Jumping series, for example from distribution Ruby 3.2 to 3.4.13, is a real upgrade, so run the test suite before you switch production. If that cannot happen before 25 November, restrict the app’s network exposure the way we did for GitLab, and keep it restricted until the switch is done.
Where the version check misleads
The checks above are simple, but a few assumptions about them catch people out. Each one below comes from something we saw in the lab or in vendor data this week.
- “ruby -v says 3.3.13, so the Debian host is fixed”: Debian 13’s security archive already carries 3.3.13 from an earlier update, and the tracker still lists all seven of these vulnerabilities against it.
- “We upgraded Ruby, so the app is safe”: not until the processes restart. Our Puma kept serving from the 3.4.12 binary after the new build and the bundle were in place.
- “The server’s Ruby is fixed, so GitLab is fixed”: GitLab never uses it. Only a GitLab release with a new embedded Ruby fixes GitLab.
- “It’s one CVE”: it’s seven vulnerabilities, and only one had a CVE ID when we checked. Trackers that key on CVE-2026-132825 alone can miss the regular expression bugs, so judge by the fixed build, not the CVE list. The critical regex CVEs Ruby published advisories for on 17 November, CVE-2026-93577 and CVE-2026-89078, point the other way: 3.3.13, 3.4.12 and 4.0.8 already fix them, yet those builds are still open to Ruby2Shell.
- “A scanner said the site isn’t vulnerable”: nothing remote can see the interpreter version. A clean external scan of a Rails app tells you nothing about this bug.
The reliable test is the one from the top of this page: resolve the running process to its binary, then match that binary against the fixed builds or the vendor’s published package. We’ll update the status tables as Ubuntu, Debian, Red Hat, Amazon and GitLab ship their builds.