Ruby has released security patches addressing seven vulnerabilities in its regular expression engine and string case conversion functionality, according to an advisory published on November 18, 2026.

The vulnerabilities span multiple attack vectors. Three vulnerabilities affect string case conversion: a one-byte heap buffer overflow (GHSA-34m4-m9fh-gqp5), an integer overflow causing heap-based buffer overflow (GHSA-87fm-7w84-j2px), and an out-of-bounds read in case-insensitive backreference matching (GHSA-pvgc-g7gj-pv6h).
Four additional vulnerabilities target the regular expression engine. These include a double free in regex compilation (GHSA-7x2q-68qv-6p8x), an out-of-bounds read in case-insensitive regex matching (GHSA-wpqw-5qxg-m68r), an integer overflow in regex compilation causing heap-based buffer overflow (GHSA-3p8q-wmhx-vm2w), and a heap buffer overflow in Regexp#to_s (GHSA-7whj-cfh7-xgm4).
According to the advisory, the Ruby project is aware of proof-of-concept exploits demonstrating that several vulnerabilities can be exploited to trigger remote code execution. The case conversion vulnerabilities can be triggered by processing crafted strings, while the regex vulnerabilities can be exploited in applications that compile attacker-controlled patterns.
Affected versions include Ruby 3.3.13 and earlier, Ruby 3.4.0 through 3.4.12, and Ruby 4.0.0 through 4.0.9. The Ruby project strongly recommends upgrading to Ruby 4.0.10, 3.4.13, or 3.3.14.
Ruby 3.3 remains in the security maintenance phase and will receive these fixes. However, Ruby 3.2 and earlier versions have reached end of life and will not be patched. CVE identifiers for these vulnerabilities have been requested but not yet assigned; they are currently referenced by GitHub Security Advisory identifiers.
The vulnerabilities were discovered by multiple researchers including teams from Ada Logics and Anthropic, as well as independent security researchers.
Key facts
- Seven vulnerabilities discovered in Ruby’s regex engine and string case conversion
- Proof-of-concept exploits demonstrate remote code execution potential
- Affected versions: Ruby 3.3.13 and earlier, 3.4.0-3.4.12, and 4.0.0-4.0.9
- Ruby 4.0.10, 3.4.13, and 3.3.14 released with fixes
- Ruby 3.2 and earlier no longer receive security updates
