Ruby patches 7 RCE-class bugs in Regexp and strings
Original: Multiple vulnerabilities in Regexp and String case conversion
Why This Matters
RCE-class bugs in Ruby's core string/regex engine affect a wide range of production apps.
Ruby released versions 4.0.10, 3.4.13, and 3.3.14 on Nov 18, 2026, fixing seven vulnerabilities—including heap overflows and double-free bugs—several with confirmed RCE proof-of-concept exploits.
The Ruby core team disclosed seven security vulnerabilities affecting the language's regular expression engine and string case-conversion logic. At least five carry confirmed proof-of-concept exploits demonstrating remote code execution. The flaws span a range of memory-safety issues: a one-byte heap buffer overflow in string case conversion (GHSA-34m4-m9fh-gqp5), a double-free in regex compilation (GHSA-7x2q-68qv-6p8x), an integer overflow leading to heap overflow in case conversion (GHSA-87fm-7w84-j2px), two out-of-bounds reads in case-insensitive regex matching and backreference matching (GHSA-wpqw-5qxg-m68r, GHSA-pvgc-g7gj-pv6h), an integer overflow in regex compilation causing heap overflow (GHSA-3p8q-wmhx-vm2w), and a heap buffer overflow in Regexp#to_s (GHSA-7whj-cfh7-xgm4). Applications that compile or match attacker-controlled regex patterns are most exposed. CVE IDs have been requested but not yet assigned. Ruby 3.2 and earlier are end-of-life and will not receive patches. Researchers from Ada Logics and Anthropic were credited with discovery.