RC RANDOM CHAOS

Ruby Patches Regex Bugs Enabling Critical GitLab RCE Attacks

· via The Hacker News

Original source

Ruby Fixes Three Regex Engine Bugs Responsible for Four Critical GitLab RCE Flaws

The Hacker News →

Three bugs in Ruby’s Onigmo regex engine allow specially crafted patterns to corrupt memory during compilation, potentially enabling remote code execution. GitLab discovered the flaw when it compiles regular expressions from user-supplied input like CI/CD configuration files. The company patched four resulting vulnerabilities between late September and October, with the most severe affecting all GitLab versions from 7.0 onward. Two vulnerabilities required authentication while two required none, with the unauthenticated variants receiving maximum severity ratings.

Any Ruby application that constructs regex patterns from untrusted input faces equivalent risk. Ruby patched versions 4.0.9, 3.4.12, and 3.3.13, but older branches including 3.2 won’t receive fixes following their end-of-life status. Users unable to upgrade must stop compiling user-controlled patterns, as common mitigations like timeout limits and pattern length capping prove ineffective against these specific bugs.

A significant tracking gap exists because Ruby has not requested its own CVE identifiers for these engine fixes, instead directing users to monitor GitLab’s four vulnerability records. Security scanners hunting for Ruby CVEs will find no matches, creating blind spots for organizations tracking this critical dependency.

Read the full article

Continue reading at The Hacker News →

This is an AI-generated summary. Read the original for the full story.