Ruby Fixes Three Regex Engine Bugs Responsible for Four Critical GitLab RCE Flaws
AI-summarised brief · reviewed before publication
Ruby released versions 4.0.9, 3.4.12 and 3.3.13 that patch three bugs in its Onigmo regular‑expression engine, the flaws that underpinned four critical GitLab remote‑code‑execution vulnerabilities disclosed between September 23 and October 21. The bugs allow memory corruption when Ruby compiles a pattern supplied by an attacker, and any application that builds a Regexp from untrusted input is vulnerable. GitLab’s bug‑bounty researcher joaxcar reported the issues, which received CVE scores of 9.9 and 10.0. Ruby’s advisory advises upgrading to the new releases or, if that is not possible, avoiding dynamic Regexp compilation; timeout and pattern‑length limits do not mitigate the risk. Ruby will not back‑port fixes to the end‑of‑life 3.2 series. Developers are urged to audit codebases for Regexp usage immediately.
💡 Why It Matters
- · Exploitable regex compilation opens a direct path to code execution on any Ruby‑based service, forcing rapid upgrades across a broad ecosystem.