id: CVE-2026-97229 info: name: GitLab CE/EE < 19.2.8 / 19.3.5 / 19.4.2 - Unauthenticated RCE via Onigmo Integer Overflow author: rapid7 severity: critical description: | GitLab CE/EE 19.2.0–19.2.7, 19.3.0–19.3.4, and 19.4.0–19.4.1 contain a remote code execution caused by insufficient regular expression validation in CI/CD configuration, letting unauthenticated users execute arbitrary code remotely, exploit requires crafted regex in CI/CD config impact: | Unauthenticated attackers can execute arbitrary code on the GitLab server, potentially leading to full system compromise. remediation: | Upgrade to GitLab CE/EE 19.2.8, 19.3.5, 19.4.2 or later. reference: - https://github.com/jburgess-r7/CVE-2026-97229-PoC - https://www.rapid7.com/blog/post/etr-cve-2026-97229-critical-unauthenticated-remote-code-execution-in-gitlab - https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/ - https://nvd.nist.gov/vuln/detail/CVE-2026-97229 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H cvss-score: 10.0 cve-id: CVE-2026-97229 epss-score: 0.74315 epss-percentile: 0.99499 cwe-id: CWE-190 metadata: max-request: 2 verified: true vendor: gitlab product: gitlab shodan-query: product:"GitLab" fofa-query: app="GitLab" tags: cve,cve2026,gitlab,rce,critical,kev,cicd,onigmo,regex,unauthenticated,vkev flow: http(1) && http(2) http: - raw: - | GET /users/sign_in HTTP/1.1 Host: {{Hostname}} matchers: - type: dsl dsl: - 'contains(to_lower(header), "x-gitlab-meta")' internal: true - raw: - | POST /api/v4/ci/lint HTTP/1.1 Host: {{Hostname}} Content-Type: application/json Accept: application/json {"content":"stages:\n - scan\ncve_97229_probe:\n stage: scan\n rules:\n - exists:\n regexp: \"{5(?#)7805}\"\n script:\n - echo 1\n"} matchers: - type: dsl dsl: - 'status_code == 200' - 'regex("valid.{0,5}true", body)' - 'regex("errors.{0,5}\\[\\]", body)' condition: and extractors: - type: regex name: gitlab_version part: header regex: - '(?i)x-gitlab-meta:\s*\{"version"\s*:\s*"([^"]+)"' group: 1 # digest: 4a0a00473045022057f4edf50a1979ef63367b8ebec39f4d8e3b3f7e50c944f221bf58d946ca0b330221008f7db04b4a77d6f882278fd2bfbe3926db0b320b92a17ae56253f7d5d9829c48:922c64590222798bb761d5b6d8e72950