Ruby releases new versions—4.0.9, 3.4.12, and 3.3.13—to address three memory-corruption vulnerabilities in Onigmo, the regular expression engine shipped with the Ruby language. The updates are aimed at reducing the risk that specially crafted regular expression patterns could lead to serious outcomes, including possible code execution.
Multiple outlets connect the Ruby issues to security problems GitLab patched in recent weeks. According to reporting, GitLab’s reports describe four critical flaws it addressed by incorporating patched Ruby versions, where crafted regex patterns could corrupt memory during Ruby compilation. The outlets also note that the exposure depends on how applications handle untrusted input used to build or interpret regex search rules, while applications that only use rules authored internally are not described as being impacted. One outlet also highlights that older Ruby versions (3.2 and below) are not receiving updates, and that mitigations like limiting execution time or input size do not directly prevent the underlying issue.
The coverage frames the update as a general security maintenance step for any Ruby-based system using regex on external text, with GitLab’s incident disclosures providing the concrete example of how the vulnerabilities can surface.