Ruby releases complete regex-compiler fixes for GitLab CVEs
Ruby fixes regular-expression compilation memory corruption that can lead to code execution when applications compile attacker-controlled patterns.[1]
Fix. Upgrade to Ruby 4.0.9, 3.4.12 or 3.3.13, or later fixed releases in the relevant branch.[1][2][3]
Versions, remediation & sources
- Affected systems & conditions
- 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.[1]
- Remediation
- 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.[1][2][3]
- Evidence at review time
- 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.[1][4][3]
- Related 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.[1][5][6]
Referenced CVEs
Related coverage: GitLab patches a critical regular-expression compiler issue