Ruby’s November 2026 fixes for seven Regexp and String flaws: find every Ruby on your fleet and the copies other products bundle
Ruby released 4.0.10, 3.4.13 and 3.3.14 on November 18, 2026 for seven memory-safety flaws in its regular expression engine and in the code that changes the case of strings. Ruby’s maintainers say they know of proof-of-concept exploits that prove some of them can be used for remote code execution. The advisories rate three critical, three high and one moderate (The Hacker News). CVE numbers have been requested but not assigned yet. For now each flaw goes by its GitHub advisory ID. Nobody has reported attacks.
It’s the second round in a month. On October 23 Ruby fixed regex compilation bugs that GitLab had turned into remote code execution on GitLab servers. CISA added GitLab’s CVE-2026-97229 to its Known Exploited Vulnerabilities catalog on October 29.
The fixed versions
| Ruby line | Affected | Fixed |
|---|---|---|
| 4.0 | 4.0.0 to 4.0.9 | 4.0.10 |
| 3.4 | 3.4.0 to 3.4.12 | 3.4.13 |
| 3.3 | 3.3.13 and earlier | 3.3.14 |
| 3.2 and older | all | none (end of life) |
Ruby 3.3 now gets bug fixes as well as security fixes. Its support still ends in March 2027.
Which apps are exposed
Five of the seven are in the regex engine. An app is exposed when it compiles a regular expression from text an attacker controls. Look for Regexp.new, Regexp.union and /#{input}/ fed with user input. Ruby’s October advisory says Regexp.timeout doesn’t protect against bugs like these. Limiting the length of patterns doesn’t reliably protect either.
The two case-conversion flaws fire when an app changes the case of a crafted string.
The moderate one is an out-of-bounds read. It fires when a crafted string is matched against a fixed pattern with a case-insensitive backreference.
Products that ship their own Ruby
The flaws are in the Ruby interpreter. The fix is a new Ruby. A product that ships its own Ruby needs a release from its vendor.
I installed the current OpenVox agent (8.34.0, the community build of the Puppet agent) on a Debian 12 container. It runs its own Ruby from /opt/puppetlabs/puppet/bin/ruby. That Ruby is 3.2.11. Ruby 3.2 is end of life and gets no fix. Debian’s own ruby package on the same container was 3.1.2. The agent’s Ruby only changes when the openvox-agent package does.
GitLab ships its own Ruby too. Ruby’s October announcement says GitLab fixed its CVEs “by patching the Ruby it ships”. I only tested OpenVox. The check reports every Ruby it finds under /opt.
On Windows, RubyInstaller’s newest builds early on November 19 were still the October 23 ones (4.0.9, 3.4.12 and 3.3.13).
Distribution packages
Ubuntu, Debian and RHEL backport fixes and keep the old version number. The package changelog tells you whether you’re fixed. The lab containers had these on November 19:
| Distribution | Package | ruby -v |
|---|---|---|
| Ubuntu 24.04 | ruby3.2 3.2.3-1ubuntu0.24.04.8 | 3.2.3 |
| Debian 12 | ruby3.1 3.1.2-7+deb12u1 | 3.1.2 |
| Debian 13 | ruby3.3 3.3.13-0+deb13u1 | 3.3.13 |
| Rocky Linux 9 | ruby 3.0.7-170.el9_8 | 3.0.7 |
Watch your distribution’s advisory once the CVE numbers are out.
Check one server
On Linux:
for r in $(command -v ruby) /usr/bin/ruby[0-9]* /opt/*/embedded/bin/ruby /opt/*/bin/ruby /opt/puppetlabs/puppet/bin/ruby; do
[ -x "$r" ] && echo "$r: $("$r" -v)"
done
On Windows, in PowerShell as an administrator:
cmd /c "dir C:\ruby.exe /s /b 2>nul" | ForEach-Object { "{0}: {1}" -f $_, (& $_ -v) }
Use dir /s for the search. It’s much faster than Get-ChildItem -Recurse over a whole drive.
What I found in the lab
I ran the RFF check on the official Ruby container images for 4.0.9, 4.0.10, 3.4.12, 3.4.13, 3.3.13, 3.3.14 and 3.2. Each one had a Ruby process running. I also ran it on the Ubuntu, Debian, Rocky and OpenVox containers above.
- 4.0.9, 3.4.12 and 3.3.13 came back as needing the update. 4.0.10, 3.4.13 and 3.3.14 came back fixed. 3.2.11 came back end of life. Each one was marked as running.
- The OpenVox agent’s Ruby came back end of life. The check names OpenVox as the place the fix has to come from.
- The distribution packages came back as “check your distribution”. A Debian package whose changelog I edited to name one of the advisory IDs came back fixed.
- The check skipped an rbenv-style shim on
PATH(a shell script namedruby) and counted the real Ruby behind it once.
On Windows I unpacked the RubyInstaller builds of 4.0.9, 3.4.12 and 3.2.11 on a Windows Server 2025 lab VM. I started the 4.0.9 one and installed the OpenVox 8.34.0 MSI. Then I ran the check as SYSTEM. It found all four Rubies in 212 seconds. The agent’s Ruby in C:\Program Files\Puppet Labs\Puppet\puppet\bin is 3.2.11 on Windows too. All four verdicts were right. The check marked the running copy.
What to do
- Find every Ruby, including the bundled copies.
- Update Ruby you installed yourself to 4.0.10, 3.4.13 or 3.3.14. Restart whatever runs on it. Rebuild container images that start
FROM ruby. - Move anything on 3.2 or older to a supported line.
- For a bundled Ruby, update the product that ships it once its vendor has a release with the fixes.
- For distribution packages, install the update when your distribution ships it.
- Start with apps that compile regular expressions from user input. Search the code for
Regexp.new,Regexp.unionand/#{.
Doing it with RFF
The RFF Script Library has a new entry for Linux and one for Windows. Both are called “Ruby (November 2026 Regexp and String fixes) - Find Every Ruby and Its Version”. The Linux one checks PATH, the usual install paths, rbenv, rvm, asdf and mise installs, the Rubies bundled under /opt and the binary behind each running Ruby. It also reads the package changelog for a backported fix. The Windows one walks every fixed drive for ruby.exe as SYSTEM. Both report each copy as needing the update, end of life, check your distribution, or fixed. They name the product a bundled copy came with and say whether it’s running. I tested them on the containers and the lab VM above.
RFF is free for your first 100 endpoints: getrff.com.
Sources
- Ruby security advisories, November 18: the seven flaws, the GHSA IDs, the PoC statement, affected and fixed versions
- Ruby 3.3.14 released: legacy maintenance, end of support in March 2027
- Ruby, Regexp compilation fixes related to GitLab’s CVEs, October 23: GitLab’s four CVEs, GitLab patching the Ruby it ships, who is affected,
Regexp.timeout - CISA Known Exploited Vulnerabilities catalog: CVE-2026-97229, added October 29
- The Hacker News, November 19: the severity ratings, no attacks reported
- RubyInstaller releases: the newest Windows builds on November 19
Comments
Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.