Copy
id: CVE-2026-97229
info:
name: GitLab CE/EE 19.2, 19.3, and 19.4 - CI/CD Regex Integer Overflow (Version Detection)
author: rapid7
severity: critical
description: |
GitLab CE/EE 19.2.0 through 19.2.7, 19.3.0 through 19.3.4, and 19.4.0 through 19.4.1 contain an integer overflow in the Onigmo regular expression compiler used by CI/CD configuration validation. A specially crafted expression in an attacker-controlled project branch can lead to remote code execution when the public project lint endpoint processes it. This authenticated template identifies affected GitLab versions through /api/v4/version and does not execute the exploit.
impact: |
After preparing a project branch containing a malicious CI/CD expression, an attacker can trigger code execution through an unauthenticated lint request and compromise the GitLab server.
remediation: |
Upgrade to GitLab CE/EE 19.2.8, 19.3.5, 19.4.2, or a later supported version.
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://github.com/cisagov/kev-data/blob/develop/known_exploited_vulnerabilities.json
- 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.9964
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,authenticated,passive,vkev
variables:
token: ""
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:
- |
GET /api/v4/version HTTP/1.1
Host: {{Hostname}}
PRIVATE-TOKEN: {{token}}
Accept: application/json
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'compare_versions(version, ">= 19.2.0", "< 19.2.8") || compare_versions(version, ">= 19.3.0", "< 19.3.5") || compare_versions(version, ">= 19.4.0", "< 19.4.2")'
condition: and
extractors:
- type: regex
name: version
part: body
group: 1
regex:
- '"version"\s*:\s*"([0-9]+\.[0-9]+\.[0-9]+)'
# digest: 490a00463044022055aac0467d7590450377e322d4cb56544ee02c08ec9f0086e7157b9a25db25250220191eb16b63960ba12684e142868910d3e8cef7b5711b21de798d54f20f6ab6e9:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.