ENGINEERING

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 lineAffectedFixed
4.04.0.0 to 4.0.94.0.10
3.43.4.0 to 3.4.123.4.13
3.33.3.13 and earlier3.3.14
3.2 and olderallnone (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:

DistributionPackageruby -v
Ubuntu 24.04ruby3.2 3.2.3-1ubuntu0.24.04.83.2.3
Debian 12ruby3.1 3.1.2-7+deb12u13.1.2
Debian 13ruby3.3 3.3.13-0+deb13u13.3.13
Rocky Linux 9ruby 3.0.7-170.el9_83.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.

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

  1. Find every Ruby, including the bundled copies.
  2. 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.
  3. Move anything on 3.2 or older to a supported line.
  4. For a bundled Ruby, update the product that ships it once its vendor has a release with the fixes.
  5. For distribution packages, install the update when your distribution ships it.
  6. Start with apps that compile regular expressions from user input. Search the code for Regexp.new, Regexp.union and /#{.

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

One email per new post, nothing else. Unsubscribe in one click. Or use the RSS feed.

Comments

Comments use GitHub Discussions, so you'll need a GitHub account to post. Corrections are especially welcome.