Ruby patches seven Regexp and String flaws that can lead to remote code execution
Ruby released 4.0.10, 3.4.13 and 3.3.14 to fix seven vulnerabilities in its regular expression engine and in string case conversion, warning that proof-of-concept code shows some can trigger remote code execution. The advisory uses GHSA identifiers because CVE identifiers were requested but not yet assigned.
Why it matters
The advisory lists seven flaws, including a one-byte heap buffer overflow in string case conversion, a double free in regular expression compilation, an integer overflow in case conversion, and out-of-bounds reads in case-insensitive matching and backreference matching.
Each entry names its trigger: changing the case of a crafted string, compiling a crafted regular expression, or matching a crafted pattern. Several entries say remote code execution requires an application that compiles or matches attacker-controlled patterns, and the backreference flaw can also disclose memory contents or crash the process.
Ruby 4.0.10, 3.4.13 and 3.3.14 carry the fixes, and the team strongly recommends upgrading. The advisory credits Stephan Lipp of Ada Logics and Anthropic for four of the seven reports, and credits Hiroya Fujinami and Hiroshi SHIBATA for the backreference flaw.