# Ruby releases complete regex-compiler fixes for GitLab CVEs

Cite as: Gloqo AI, "Ruby releases complete regex-compiler fixes for GitLab CVEs", reviewed 29 Oct 2026, https://www.gloqo.ai/security-updates/advisories/ruby-2026-10-23-regexp/.

Gloqo reviewed the vendor and CNA records on 29 Oct 2026. Those sources are the authority for the vulnerability.

Product: Ruby
Published: 2026-10-23
Reviewed: 2026-10-29T22:05:00Z

## Summary

Ruby fixes regular-expression compilation memory corruption that can lead to code execution when applications compile attacker-controlled patterns.

## Affected

Applications compiling untrusted patterns, including through Regexp.new, Regexp.union, Regexp.compile or interpolation, need the complete fixes. Fixed, developer-authored patterns are not affected.

## Fix

Upgrade to Ruby 4.0.9, 3.4.12 or 3.3.13, or later fixed releases in the relevant branch. Ruby 4.0.8 lacks the CVE-2026-110264 fix. If upgrading is not possible, avoid compiling untrusted patterns; Regexp.timeout and length restrictions are not reliable mitigations. Custom GitLab installations using their own Ruby must update the runtime as well; upgrading GitLab alone may not apply the bundled Ruby patches.

## Evidence

The Ruby advisory does not confirm malicious exploitation in the wild. CISA added CVE-2026-97229 to its Known Exploited Vulnerabilities Catalog on October 29. Alpine reported attempted exploitation against its GitLab instance; it found no evidence of successful code execution but could not rule it out and rebuilt the instance.

## Context

These are upstream runtime fixes for four previously assigned GitLab CVEs, not four new Ruby CVE assignments. GitLab's own October 21 patch remains a separate product update. GitLab describes CVE-2026-97229 as potentially allowing unauthenticated code execution through a crafted CI/CD configuration under certain conditions; its October 12 release addressed that issue in official packages.

## CVEs

- [CVE-2026-89078](https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/)
- [CVE-2026-93577](https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/)
- [CVE-2026-97229](https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/)
- [CVE-2026-110264](https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/)

## Related

- [GitLab patches a critical regular-expression compiler issue](https://www.gloqo.ai/security-updates/advisories/gitlab-2026-10-21.md)

## Sources

1. [Ruby: regular-expression fixes for GitLab CVEs](https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/)
2. [Ruby 4.0.9 release announcement](https://www.ruby-lang.org/en/news/2026/10/23/ruby-4-0-9-released/)
3. [Alpine Linux: attempted exploitation and custom GitLab Ruby builds](https://alpinelinux.org/posts/GitLab-security-incident-CVE-2026-97229.html)
4. [CISA Known Exploited Vulnerabilities Catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
5. [GitLab 19.5.1 patch announcement, October 21](https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-5-1-released/)
6. [GitLab critical patch release 19.4.2](https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/)
