Ruby Releases Fixes for 7 Regex and String Flaws, Warns 5 Have Proof-of-Concept RCE
Ruby contains seven memory-safety flaws in its regular expression engine and its string case-conversion code. For five of them, its maintainers say, proof-of-concept exploits, or PoCs, have shown that crafted input can run code on the machine. "We are aware of PoCs that prove some of them can be used to trigger remote code execution," the maintainers said. The project released fixed versions
Ruby has patched seven memory safety issues in its regular expression engine and string case conversion code, with five of them proven to allow remote code execution through crafted input. The maintainers have released Ruby 4.0.10, 3.4.13, and 3.3.14, addressing the vulnerabilities. The significant flaws have been rated as critical, high, or moderate, impacting applications that build regular expressions from user-controlled input or perform case conversion on external text.
The maintainers credit four of the findings to Stephan Lipp of Ada Logics and Anthropic, and the other three to baba__yaga, aphantom, Hiroya Fujinami, and Hiroshi SHIBATA. Ruby users are advised to update to the supported versions, as older versions will not receive a fix. The seven flaws do not have CVE numbers yet, but GitHub advisory IDs are used to track them.
This is the second time in a month that Ruby's regular expression engine has been patched, following a previous fix in October to address compilation bugs.
Written by urgent.news from The Hacker News's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.