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
poc-gitlab-onigmo-cve-2026-110264 — CVE-2026-110264 — GitLab Unauthenticated RCE (Onigmo regex repeat-ID overflow, CVSS 10.0). Docker-verified crash PoC on ruby 3.4.11 + measured heap analysis. Crash-level, non-weaponized. | Kitploit
Tools/GitHubGitHub/tahucryptsi/poc-gitlab-onigmo-cve-2026-110264
Memory ForensicsVulnerability AnalysisExploitationReverse EngineeringWeb Application ExploitationFuzzingPapers & ResearchBinary Exploitation
GitHubtahucryptsi/poc-gitlab-onigmo-cve-2026-110264

poc-gitlab-onigmo-cve-2026-110264

CVE-2026-110264 — GitLab Unauthenticated RCE (Onigmo regex repeat-ID overflow, CVSS 10.0). Docker-verified crash PoC on ruby 3.4.11 + measured heap analysis. Crash-level, non-weaponized.

11 month agoNot yet reviewed
Share
View Repository

CVE-2026-110264 — GitLab Onigmo Regex Repeat-ID Overflow

severity type verified affects

Root cause → Impact → Exploit → Local lab → Files → Remediation → Disclosure


Root cause

Ruby's Onigmo regex engine (vendored by GitLab) stores regex bytecode operands in a short int:

// regint.h:693
typedef short int MemNumType;   // 16-bit signed

The compiler counts repeat operators with an unbounded int but writes each OP_REPEAT id through add_mem_num() (regcomp.c:704) — a truncating cast. Any regex with more than 32,767 range-repeats wraps subsequent ids negative.

At match time the interpreter dereferences both:

  • OOB read — reg->repeat_range[repeat_mem].lower (regexec.c:403, match-cache counter)
  • OOB write — repeat_stk[mem] = GET_STACK_INDEX(stk) (regexec.c:3845)

with the wrapped negative index = a read/write window of [-256 KB, base) below the allocation — in mapped attacker-adjacent memory (see Heap note).

Impact

  • Class: memory corruption → unauthenticated RCE on self-managed GitLab (CVSS 10.0 AV:N/AC:L/PR:N/UI:N/S:C); GitLab fixed it 2026-10-21 after a sibling (CVE-2026-97229, same engine, different path) on 2026-10-12.
  • Every GitLab CE/EE from 7.0 (2014) is in the affected range: the engine ships inside the Omnibus Ruby.
  • Distro Rubies (3.3.x, 3.4.x, 4.0.x) are unpatched; the fix landed on Ruby master (4.1) and backports (ruby commit 493d26dc); GitLab backports it inside its omnibus packages.

Exploit path (GitLab delivery)

attacker .org file (issue/wiki/snippet, unauth)
  └─ org-ruby interpolates raw #+TODO: keyword into Regexp.new   (delivery)
       └─ pattern with >32767 {n,m} repeats → repeat-ID wrap     (this PoC)
            ├─ OOB read at repeat_range[id<0]                    (regexec.c:403)
            └─ OOB write at repeat_stk[id<0] = stack index       (regexec.c:3845)
                 └─ heap grooming → control-flow hijack → system() as `git` user
                    (GitLab detection: "Onigmo native worker crash"; RCE arb noted by vendor)

This repository demonstrates steps up to the deterministic memory-corruption crash. The full system() grooming is engineering work on top; the write primitive and its delivery path are proven here.

Local lab (verified)

python3 poc.py

Verified output (2026-10-22, docker, ruby 3.4.11 — the line GitLab bundles):

[*] CVE-2026-110264 Onigmo repeat-ID overflow -- PoC driver
[*] running probe in vulnerable runtime (ruby:3.4-slim == 3.4.11)...
    COMPILE: accepted (no guard) -- vulnerable path
[+] VERDICT: VULNERABLE -- native SIGSEGV inside Onigmo (repeat-ID wrap, RSI=0xffff8000)

Actual crash signature (evidence/crash-ruby3411.txt):

-e:4: [BUG] Segmentation fault at 0x00007dac53ee1010
 RDI: 0xfffffffffffc0000   # = -32768 * sizeof(idx) — wrap arithmetic visible
 RSI: 0x00000000ffff8000   # = -32768 — the wrapped repeat ID
 RAX: 0xffffffffffff8000

Patched-behavior control: Ruby master raises RegexpError: too many range repeat at compile (upstream regression test asserts exactly this). Distro Ruby 3.3.8/4.0 remain vulnerable (verified: pattern compiles).

Heap note (measured, live gdb — full doc in HEAP-ANALYSIS.md)

The engine's compiled bytecode mmap sits directly above repeat_range (Linux top-down mmap ordering). The OOB window therefore lands in attacker-authored pattern bytes — i.e. the .org file's own content fills the overflow window. "Heap grooming" here reduces to shaping the regex source text; no allocator Feng-Shui or ASLR defeat is required to place controlled structures in the window.

Files

poc.py                  — driver: probes engine, classifies patched/vulnerable (exit 0/1/2)
src/                    — (in-lab probe embedded)
evidence/crash-ruby3411.txt   — native crash transcript w/ register dump
evidence/patched-4.0-note.txt — control: 4.0 compiles (fix only on master)
lab/docker-compose.yml  — alternative compose form of the lab

Remediation

  • Self-managed GitLab: upgrade immediately to 19.5.1 / 19.4.3 / 19.3.6 / 19.2.9 / 19.1.9 / 19.0.10 / 18.11.13 (Oct-21 backports). Instances on Oct-12 versions (19.4.2/19.3.4/19.2.8) are still vulnerable — the two fixes are different bugs.
  • Ruby users generally: unpatched on every released line ≤4.0; only master has the guard. Regex from untrusted input = affected everywhere.
  • Workaround (weak): none disclosed by vendor.

Disclosure

  • Fixed by GitLab 2026-10-21 (CVE-2026-110264, credit: reported via HackerOne by joaxcar).
  • Ruby-side fix: ruby/ruby commit 493d26dc "Reject overflowed repeat/null-check IDs in huge regexps" (Hiroya Fujinami), backported into Omnibus Ruby 3.3/3.4 by GitLab.
  • This PoC is crash-level (safe, local); no exploit against any GitLab instance.

License

MIT.


Update 2026-10-22 late-night: heap-corruption stage CONFIRMED (bukan crash-buta lagi)

Dengan glibc dynamic mmap-threshold bump (alloc+free 2MB) + brk prefill dengan data terkontrol, out-of-bound write repeat_stk[-32768] = stack_index mendarat di metadata malloc:

COMPILED-OK
double free or corruption (!prev)     ← glibc MELAPORKAN chunk metadata dirusak

Ini transisi bukti: unmapped-read crash → detected heap-metadata corruption (asertif glibc sendiri). Primitive yang dimiliki: write small-integer (stack-depth controlled) ke window [-256KB, base) di bawah blok alokasi engine.

Yang memisahkan ini dari RCE penuh (jujur, bukan basa-basi)

  1. Nilai yang ditulis = integer kecil (indeks stack match), bukan pointer — tcache fd poisoning langsung tidak bisa; butuh pivot: korupsi SIZE FIELD → overlapping chunks → baru string content (full control) jadi fake fd (safe-linking butuh heap leak dulu).
  2. ASLR + PIE + safe-linking aktif di runtime modern; tidak ada info-leak di rantai ini.
  3. Estimasi kerja nyata menuju system("id"): riset multi-hari (2-stage heap exploit), bukan PoC satu file.

Jadi status: bug terbukti korupsi memori (terukur, live glibc assertion), jalur RCE nyata tapi belum ditunjukkan sampai id. Tidak ada overclaim.

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 →