Regexp compilation fixes related to GitLab's CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264
Oct 23, 2026
AI summary AI-generated, may contain mistakes
Ruby has released versions 4.0.9, 3.4.12 and 3.3.13 to fix bugs in its Onigmo regular expression engine that GitLab found could cause memory corruption and remote code execution when compiling attacker-controlled patterns, corresponding to CVE-2026-89078, CVE-2026-93577, CVE-2026-97229 and CVE-2026-110264. Only applications that compile regular expressions from untrusted input (e.g., via Regexp.new or string interpolation into a regexp literal) are affected, and timeouts or length limits do not protect against these bugs. Users are advised to upgrade to the fixed releases or avoid compiling regular expressions from untrusted input, and Ruby has published security advisories treating these memory corruption issues as vulnerabilities.
We have released Ruby 4.0.9, 3.4.12 and 3.3.13. They fix several bugs in Ruby’s regular expression engine (Onigmo) that GitLab found could be used for remote code execution on GitLab servers. GitLab published four CVEs for these issues, and the Ruby releases contain the fixes for the underlying bugs in Ruby.
Background
GitLab compiles regular expressions supplied by its users, such as patterns in CI configuration, with Regexp.new. GitLab found that specially crafted patterns could corrupt memory while Ruby compiles them, and that this could be turned into remote code execution on GitLab servers. GitLab addressed these issues in its own releases by patching the Ruby it ships, and assigned the following CVE identifiers:
Keep reading
Out of respect for the author only the opening is shown here. Read the rest on the original site, or in HorizonReader with highlights, notes and AI help.
AI summarySeven vulnerabilities have been discovered in Ruby's regular expression engine and string case conversion, some of which have proof-of-concept exploits that can trigger remote code execution. The flaws affect Ruby 3.3.13 and earlier, 3.4.0 through 3.4.12, and 4.0.0 through 4.0.9, and have been fixed in Ruby 4.0.10, 3.4.13, and 3.3.14. Users are strongly recommended to upgrade, though CVE identifiers have not yet been assigned, so the advisories use GitHub Security Advisory (GHSA) identifiers.
AI summaryRuby 3.3.14 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion. Starting with this release, Ruby 3.3 will also receive backported bug fixes rather than security fixes only, so the phase has been renamed from the security maintenance phase to the legacy maintenance phase, with official support still scheduled to end at the end of March 2027. The release includes download links and checksums for the tar.gz, tar.xz, and zip packages, with further details available on GitHub releases.
AI summaryRuby 3.4.13 has been released, including security fixes for multiple vulnerabilities in Regexp and String case conversion, along with other bug fixes. Download links and checksums for the tar.gz, tar.xz, and zip packages are provided. The release thanks the many committers, developers, and users who contributed bug reports.
AI summaryRuby 4.0.10 has been released, featuring security fixes for multiple vulnerabilities in Regexp and String case conversion, along with additional bug fixes. Download links for the tar.gz, tar.xz, and zip packages are provided with checksum details. The release credits many committers, developers, and users who contributed bug reports.
AI summaryRuby 3.3.13 has been released with security fixes, including an update to the default resolv gem (version 0.3.2) that addresses CVE-2026-80212 and CVE-2026-80213. As an exception during Ruby 3.3's security maintenance phase, this release also includes Regexp compilation bug fixes related to several GitLab CVEs (CVE-2026-89078, CVE-2026-93577, CVE-2026-97229, and CVE-2026-110264). Further details are available on the GitHub releases page.