Ruby Releases Security Patches for Regex Engine Bugs Linked to GitLab RCE Flaws

Ruby’s latest update addresses three regex engine bugs that underpinned four critical remote code execution vulnerabilities previously remedied by GitLab.

File photo: Ruby Beauties: Stunning Seamless Tile Art - Perfect for Backgrounds and Graphic Design - Digital Wallpaper Pattern Download july stone gems
EtsyCA (etsyca) · www.etsy.com / License metadata unavailable · Image source & licence

Ruby has issued new patches—versions 4.0.9, 3.4.12 and 3.3.13—to address three bugs in Onigmo, the regular expression engine built into the language.

The same bugs were the root of four critical security flaws that prompted GitLab to release its own patches over the past month.

A specially crafted pattern can corrupt memory while Ruby compiles it, creating an opportunity for code execution on affected servers, a weakness that GitLab recently encountered.

The updates aim to eliminate these vulnerabilities and prevent future exploitation of the Onigmo engine.

Sources1

Reporting and evidence linked in this story.

  1. The Hacker NewsRuby Fixes Three Regex Engine Bugs Responsible for Four Critical GitLab RCE Flaws
Claim connections3

Ruby released Ruby 4.0.9, 3.4.12, and 3.3.13 to fix three bugs in Onigmo.

confirmed
Connected sources1

The bugs lie behind four critical security flaws that GitLab patched over the past month.

confirmed
Connected sources1

GitLab found that a specially crafted pattern could corrupt memory while Ruby compiles it, potentially leading to code execution on its own servers.

confirmed
Connected sources1

Report an error · [email protected]