The Ruby development team published a security advisory on November 19, 2026 (JST) disclosing seven vulnerabilities in Ruby's regular expression engine and in its string case conversion code. It also released the fixed versions Ruby 4.0.10, Ruby 3.4.13 and Ruby 3.3.14. The team says it is aware of proof-of-concept (PoC) code showing that some of the flaws can be used for remote code execution (RCE), and it strongly recommends upgrading.
All Seven Are Memory-Safety Bugs
The seven issues are memory-handling flaws such as heap buffer overflows, a double free and out-of-bounds reads. CVE identifiers have been requested but had not been assigned as of this writing, so the issues are tracked by their GitHub Security Advisory (GHSA) IDs.
| ID | Flaw | Triggered by | Possible impact |
|---|---|---|---|
| GHSA-34m4-m9fh-gqp5 | Heap buffer overflow (one byte) | Changing the case of a crafted string | RCE |
| GHSA-7x2q-68qv-6p8x | Double free | Compiling a crafted regex | RCE |
| GHSA-87fm-7w84-j2px | Integer overflow leading to a heap buffer overflow | Changing the case of a crafted string | RCE |
| GHSA-wpqw-5qxg-m68r | Out-of-bounds read | Case-insensitive regex matching | RCE |
| GHSA-3p8q-wmhx-vm2w | Heap buffer overflow | Compiling a crafted regex | RCE |
| GHSA-7whj-cfh7-xgm4 | Heap buffer overflow | Converting a crafted regex to a string with Regexp#to_s | Information disclosure or RCE |
| GHSA-pvgc-g7gj-pv6h | Out-of-bounds read | Case-insensitive backreference matching | Memory disclosure or process crash |
According to the team, PoCs show that five of the seven can lead to RCE in some scenarios. For GHSA-wpqw-5qxg-m68r, a PoC shows memory can be corrupted in an attacker-controlled way. The impact of the remaining GHSA-pvgc-g7gj-pv6h is expected to be limited to leaking memory contents or crashing the process.
Ruby 4.0.9, 3.4.12, 3.3.13 and Earlier Are Affected
The affected versions span three release series:
- Ruby 4.0.0 through 4.0.9
- Ruby 3.4.0 through 3.4.12
- Ruby 3.3.13 and earlier
The fixes ship in Ruby 4.0.10, 3.4.13 and 3.3.14, respectively. The release announcements say each version also includes other bug fixes. Ruby 3.2 and earlier have reached end of life and will not receive these fixes, so environments still on those series need to move to a supported one.
The Ruby 3.3.14 announcement also changes how the 3.3 series is maintained. Until now it received only security fixes; starting with this release, it will also get backports of bug fixes the team judges necessary, and the phase has been renamed the "legacy maintenance phase." Official support for Ruby 3.3 is still scheduled to end at the end of March 2027.
Apps That Handle External Regexes or Strings Are Most Exposed
The flaws are triggered when a crafted regular expression is compiled or used for matching, or when the case of a crafted string is converted. The team says RCE is possible in applications that compile attacker-controlled regex patterns. Web applications and tools that build regular expressions from user input are therefore especially at risk.
Because the bugs are in Ruby's own regex engine and string handling, the fix is to replace the Ruby interpreter itself with a patched version. Besides Ruby installed directly on servers, the Ruby versions bundled in container images and CI environments should also be checked.
The advisory credits Stephan Lipp of Ada Logics and Anthropic (four issues), two HackerOne reporters (one issue each), and Hiroya Fujinami and Hiroshi SHIBATA (one issue).
Our Take
Disclosing all seven at once and shipping fixed versions for three series on the same day makes the upgrade decision straightforward for users. That said, with RCE PoCs reported for five of the seven, applications that treat externally supplied strings as regular expressions likely cannot afford to delay. Because no CVE IDs have been assigned yet, environments that rely on automated detection such as vulnerability scanners may miss these issues. Still, the fix is just a patch-level update, so a practical first step is to inventory which Ruby versions are running.
Summary
Seven vulnerabilities were found in Ruby's regex engine and string case conversion, and the fixed versions Ruby 4.0.10, 3.4.13 and 3.3.14 have been released. Every environment running Ruby 4.0.9, 3.4.12, 3.3.13 or earlier is affected, and no fixes will be provided for end-of-life Ruby 3.2 and earlier. CVE IDs were still pending as of this writing and are expected to appear in vulnerability databases once assigned.
Sources: Ruby security advisory / Ruby 4.0.10 release announcement / Ruby 3.3.14 release announcement