Ruby Releases Fixes for 7 Regex and String Flaws, Warns 5 Have Proof-of-Concept RCE
Key Points:
- Ruby has disclosed seven memory-safety vulnerabilities in its regular expression engine and string case-conversion code, with five having proof-of-concept exploits demonstrating potential remote code execution.
- Fixed versions Ruby 4.0.10, 3.4.13, and 3.3.14 were released, but older unsupported versions like Ruby 3.2 and earlier remain unpatched, prompting recommendations to upgrade.
- The critical vulnerabilities include heap overflows and double frees triggered by crafted input in regex compilation and string case changes, while other flaws involve out-of-bounds reads and memory corruption.
- Exploitation risk depends on whether applications process attacker-controlled regex patterns or strings; simply matching untrusted text against fixed patterns generally poses less risk.
- These vulnerabilities do not yet have CVE identifiers, and updating Ruby interpreters is necessary for protection since gem or framework updates alone do not fix the underlying engine flaws.