CVE-2026-97229: GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound Vulnerability
GitLab Community Edition and Enterprise Edition contain a integer overflow or wraparound vulnerability that could allow an unauthenticated user to execute arbitrary code on the GitLab server via a specially crafted regular expression in a CI/CD configuration, due to insufficient regular expression validation.
Overview
GitLab CE/EE contains an integer overflow in the Ruby Onigmo regular expression compiler that allows an unauthenticated attacker to execute arbitrary code on the GitLab server. By submitting a specially crafted regular expression through the CI lint API, an attacker can trigger a memory corruption condition during pattern compilation, with no credentials or user interaction required. All versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 are affected across both Community and Enterprise editions, with 19.2.8, 19.3.5, and 19.4.2 as the first fixed releases on each line.
Vulnerability details
Affected vendor
GitLab
Affected product
Community Edition and Enterprise Edition
Weakness type (CWE)
CWE-190
GitLab passes user-supplied regular expression patterns from CI/CD configuration to Ruby's Onigmo engine via Regexp.new. An integer overflow occurs when Onigmo calculates the size of a compiled pattern, producing an undersized allocation. The resulting memory corruption can be turned into arbitrary code execution. The root cause sits in the underlying Ruby interpreter: the same overflow affects Ruby 3.3.x before 3.3.13, 3.4.x before 3.4.12, and 4.0.x before 4.0.8, and GitLab's fix involved patching the Ruby it ships alongside updating the application itself.
An attacker submits a crafted regular expression to GitLab's CI lint API endpoint, which accepts and compiles patterns without requiring authentication. The Metasploit module for this vulnerability creates a temporary payload branch in a project to stage the pattern, then sends the triggering CI lint request unauthenticated. Successful exploitation gives the attacker code execution with the privileges of the GitLab process, affecting confidentiality, integrity, and availability of the server. The only precondition is network reachability of the CI lint endpoint on an unpatched instance.
Severity and impact
10.0
Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Changed
Confidentiality impact
High
Integrity impact
High
Availability impact
High
Exploitation status
This vulnerability is confirmed as actively exploited in the wild — it is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
Known ransomware campaign use
Unknown
Detection and monitoring
- Monitor GitLab application logs and web access logs for unauthenticated POST requests to the CI lint API endpoint, particularly from sources with no prior authenticated session or from IPs outside expected user ranges.
- Audit GitLab project repositories for unexpected short-lived branches created and deleted in rapid succession, especially on projects not associated with the requesting account, which matches the Metasploit module's payload-staging behavior.
- Review GitLab security threat detection alerts: GitLab released six threat detections for self-managed instances specifically covering exploitation attempts of this vulnerability, and those signals should be treated as high-priority.
Remediation
Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see References) guidance and CISA’s “Forensics Triage Requirements” (see References). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Federal (FCEB) remediation due date
November 1, 2026
Additional hardening
- Upgrade GitLab CE/EE to 19.2.8, 19.3.5, or 19.4.2 (the first fixed releases for each active branch); GitLab.com and Dedicated instances were patched before public disclosure.
- Restrict network access to the CI lint API endpoint at the perimeter or load-balancer layer for instances where unauthenticated external access is not required, reducing the attack surface without requiring an immediate upgrade.
- If running Ruby independently of GitLab's bundled interpreter, upgrade to Ruby 3.3.13, 3.4.12, or 4.0.8, which contain the upstream Onigmo fix for the integer overflow in compiled pattern size calculation.
- Apply GitLab's six published threat detections on self-managed instances and route alerts to a monitored queue; treat any match as a potential active exploitation attempt requiring immediate triage.
Key dates
Published (NVD)
October 12, 2026
Added to CISA KEV
October 29, 2026
Remediation deadline
November 1, 2026
Last updated
November 2, 2026
References
- https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
- https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk
- https://nvd.nist.gov/vuln/detail/CVE-2026-97229
- https://github.com/rapid7/metasploit-framework/pull/22017
- https://www.ruby-lang.org/en/news/2026/10/23/regexp-fixes-for-gitlab-cves/
- https://gitlab.com/gitlab-org/gitlab/-/work_items/630686
Frequently Asked Questions
If GitLab Community Edition and Enterprise Edition runs inside your authorization boundary, yes. CVE-2026-97229 appears in CISA's Known Exploited Vulnerabilities (KEV) catalog, and its remediation deadline of November 1, 2026 has already passed. An unpatched KEV inside a FedRAMP authorization boundary is an assessor finding. An overdue one is visible to your assessor and sponsoring agency right now. Your options are to remediate immediately or formally document the mitigation and the delay.
Knox does not patch your software. Remediating GitLab Community Edition and Enterprise Edition is your responsibility under the FedRAMP shared-responsibility model. What Knox provides is the pre-authorized, single-tenant boundary to remediate within, along with continuous compliance monitoring and audit-artifact coverage that support documentation of the fix for your next assessment. The remediation work is yours to carry out; maintaining a compliant posture while you do it is not something you have to manage on your own.
Knox's automated continuous monitoring platform watches your environment for newly disclosed vulnerabilities and compliance issues on a continuous basis, including cases like CVE-2026-97229. Exposure surfaces during ongoing monitoring rather than only when an assessor reviews your posture, giving you earlier visibility into what needs to be addressed.
Knox runs a FedRAMP-as-a-Service platform. It gives SaaS vendors a pre-authorized cloud boundary on AWS, Azure, and GCP. Your application inherits 60-80% of the required security controls. You reach FedRAMP authorization in about 90 days for roughly 90% less than the traditional $3.5M path. Book a meeting and Knox will map your path to authorization.
If CVE-2026-97229 remains unremediated, it is already a Plan of Action and Milestones (POA&M) item. A growing POA&M list is what turns a routine continuous-monitoring review into a difficult conversation with your sponsoring agency. Closing out the finding and documenting why the deadline was missed is what keeps your authorization intact and the agency relationship on solid ground.
Access Continuous Compliance
We never compromise on security. Meet with our team to discuss scope, readiness, and map your company’s accelerated path to government certification.