Cybersecurity news

Jessica Doner

Back to the list

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

The Hacker News,

Ruby fixed three regex engine bugs that allowed crafted patterns to corrupt memory and enable code execution on GitLab servers.

Vulnerabilities and patches

Overview

Ruby released versions 4.0.9, 3.4.12, and 3.3.13 to fix three bugs in Onigmo, the regular expressionA compact pattern string used by software to match, search, or filter text engine built into the language. These bugs caused four critical security flaws in GitLab that allowed attackers to corrupt memory and execute code on serversA computer or program on a network that stores data and responds to requests from client devices. The issue affects any application that compiles a regular expression from text an attacker controls. GitLab found that specially crafted patterns could trigger these bugs, leading to vulnerabilities rated 9.9 and 10.0 out of 10. Ruby 3.2 and earlier will not get a fix because they reached end of lifeThe date after which a vendor stops shipping security updates or fixes for an older product version on April 1, 2026. Users of Ruby 3.2 must move to 3.4 or 4.0, or stop compiling regular expressions from untrusted input.

Terms in this story

regular expression
A compact pattern string used by software to match, search, or filter text. Security scanners and firewalls use a regular expression to spot leaked API keys or malicious input, though a poorly written pattern can stall a server when fed crafted text.
servers
A computer or program on a network that stores data and responds to requests from client devices. Online stores, email systems, and multiplayer games all run on servers in data centers or the cloud, making unpatched servers a primary target for intruders.
end of life
The date after which a vendor stops shipping security updates or fixes for an older product version. When a router or server operating system reaches end-of-life, any new vulnerability discovered in it remains unpatched forever, making those devices prime targets for botnets. Security+ objective 2.3 lists the term
RCE
A flaw that lets an attacker run their own code on someone else's computer over a network. This is one of the most dangerous bug classes in the news because an attacker across the internet can send a crafted request and take control of a server.
patched
A software update released by a developer to fix a bug or close a security flaw. When a software flaw is discovered, the vendor ships a patch so administrators and ordinary users can update their systems before attackers exploit the bug. Security+ objective 4.3 lists the term
code execution
A flaw that lets an attacker run any commands or program they choose on the target machine. When an advisory warns that a bug allows arbitrary code execution, an attacker who triggers the flaw can install malware, read files, or take over the program's account.
advisory
An official bulletin from a vendor or agency warning users about a flaw and its fix. When a bug is patched, the vendor publishes a security advisory listing affected versions, the CVE code, the severity rating, and instructions for updating.
CI/CD
The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
configuration
A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
bug bounty program
A reward program where a company pays independent researchers who responsibly report security flaws in its systems. Through a bug bounty program, ethical hackers can test a company's websites and apps under clear rules and earn cash rewards for finding bugs before criminals do. Security+ objective 4.3 lists the term
Known Exploited Vulnerabilities catalog
A public government catalog of software security flaws that attackers are actively using in real incidents. When a bug is added to the Known Exploited Vulnerabilities catalog, federal agencies must patch it on a strict deadline and private companies treat it as a top priority. Security+ objective 4.3 lists the term
CVE identifiers
The public tracking code assigned to a specific known security flaw in software or hardware. Every cataloged software flaw gets a unique CVE label so security teams, vendors, and news reports can talk about the exact same bug without confusion. Security+ objective 2.3 lists the term

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.

Read the full article on The Hacker News (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related