The Ruby core team shipped Ruby 4.0.10, 3.4.13 and 3.3.14 on November 18, 2026, together with a security advisory covering seven memory safety bugs. The flaws sit in the regex engine and in the code that changes the case of strings.
The team says it knows of proof-of-concept exploits showing that several of these bugs can lead to remote code execution. Every supported Ruby branch is affected, so any team running Ruby in production, including Rails applications, should plan an upgrade now rather than waiting for a regular maintenance window.
What the advisory covers
CVE numbers have been requested but were not yet assigned when the advisory went out. For now, each issue is tracked only by its GitHub Security Advisory (GHSA) identifier.
The seven issues fall into two groups. Three affect string case conversion, the logic behind methods that turn text into upper or lower case:
- GHSA-34m4-m9fh-gqp5: a heap overflow of a single byte when the case of a specially crafted string is changed.
- GHSA-87fm-7w84-j2px: an integer overflow in the same conversion code that ends in a heap buffer overflow.
- GHSA-pvgc-g7gj-pv6h: an out-of-bounds read during case-insensitive backreference matching, which can leak memory or crash the process.
The other four live in the regular expression engine itself:
- GHSA-7x2q-68qv-6p8x: a double free while compiling a crafted pattern.
- GHSA-3p8q-wmhx-vm2w: an integer overflow during pattern compilation that leads to a heap overflow.
- GHSA-wpqw-5qxg-m68r: an out-of-bounds read in case-insensitive matching that a proof of concept turned into controlled memory corruption.
- GHSA-7whj-cfh7-xgm4: a heap overflow in Regexp#to_s when a crafted pattern is turned back into text, which may disclose data or allow code execution.
Researchers from Ada Logics, together with Anthropic, reported four of the bugs. Independent researchers and Ruby committers found the rest.
Affected and fixed versions
The advisory lists three vulnerable ranges: Ruby 4.0.0 up to 4.0.9, Ruby 3.4.0 up to 3.4.12, and every release of Ruby 3.3 up to 3.3.13. The fixed builds are 4.0.10, 3.4.13 and 3.3.14, and each one also carries other bug fixes listed in its GitHub release notes.
Ruby 3.2 and older branches are past end of life and will get no patch. Anyone still on those versions has no fixed build from the core team and needs to move to a supported branch.
The 3.3.14 release brings a policy change as well. Ruby 3.3 will now also get backports of bug fixes the team considers important, not only security patches, so the phase has been renamed from security maintenance to legacy maintenance. Its end date stays the same, with official support still due to stop when March 2027 ends.
What it means for developers
Regular expressions and case changes are everywhere in web code. Validation rules, routing, search features, slug creation and text normalisation all lean on them, often on data that comes straight from users.
The riskiest setups are those that build a Regexp from input an attacker can influence, such as a search box that accepts patterns or a configurable filter rule.
The string case bugs only need a crafted string, not a crafted pattern. That makes the attack surface wider than the usual regex denial-of-service worries, because upcase or downcase on a request field is a very common call.
Because these are bugs in the interpreter, no gem update will fix them, and code reviews cannot reliably work around them. Rebuilding on a patched Ruby is the only real remedy, so container images, CI runners and serverless layers that pin an older patch version all need attention.
How to upgrade
The quickest path is to bump the patch version and redeploy. A practical checklist:
- Check what each service actually runs with ruby -v, not what the lock files claim.
- Update .ruby-version, .tool-versions or Gemfile ruby lines to 4.0.10, 3.4.13 or 3.3.14, then rebuild with rbenv, asdf, mise or ruby-build.
- Pull refreshed official Docker images once they are rebuilt, and rebuild any derived images.
- Watch for patched packages from your Linux distribution or cloud platform if you rely on their Ruby builds.
- Plan a move off Ruby 3.2 or older, and keep the March 2027 end date for Ruby 3.3 in mind.
Source archives in tar.gz, tar.xz and zip form are available from the ruby-lang.org download cache for all three versions, with SHA256 and SHA512 checksums listed in each release post.
Conclusion
This is one of the more serious Ruby security drops in recent memory. Seven interpreter-level memory bugs, several with known code execution exploits, touch every supported branch at once.
Moving to Ruby 4.0.10, 3.4.13 or 3.3.14 is a small version bump with a large payoff, and teams that handle user-supplied text should treat it as urgent.
Sources
- Ruby: Security advisories for multiple vulnerabilities in Regexp and String case conversion
- Ruby 4.0.10 Released
- Ruby 3.4.13 Released
- Ruby 3.3.14 Released
See my articles more often when you search Google.
