Ruby has released new versions 4.0.9, 3.4.12, and 3.3.13 to address three bugs within its built-in regular expression engine, Onigmo. These updates are critical as the identified bugs are linked to four severe security vulnerabilities that GitLab recently patched.
The vulnerabilities affect applications that compile regular expressions from text controlled by an attacker. This occurs when a program uses functions like Regexp.new, Regexp.union, Regexp.compile, or interpolates untrusted input into a pattern. Applications that only use developer-written regular expressions are not at risk. Ruby 3.2 and older versions will not receive these fixes, with Ruby recommending an upgrade to 3.4 or 4.0.
GitLab discovered that specially crafted regular expression patterns, supplied by users for features like CI/CD configurations, could corrupt memory during compilation, potentially leading to remote code execution. GitLab issued four CVEs between September 23 and October 21 to address these issues. The two October CVEs, CVE-2026-97229 and CVE-2026-110264, were rated 10.0 (critical) and did not require authentication. CVE-2026-110264 affects all GitLab versions from 7.0 onwards.
For users unable to upgrade Ruby immediately, the advisory suggests ceasing the compilation of regular expressions from untrusted input. Setting Regexp.timeout or capping pattern length are not effective defenses against these specific bugs. The vulnerabilities were reported by researcher joaxcar through GitLab's bug bounty program.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Ruby released versions 4.0.9, 3.4.12, and 3.3.13 to patch three bugs in its Onigmo regular expression engine. These bugs were responsible for four critical remote code execution vulnerabilities in GitLab, which were patched over the past month. Any application that compiles regular expressions from attacker-controlled text is affected, not just GitLab.