Reproduction lab for CVE-2026-110264 - the 16-bit ID overflow in Onigmo, the regexp engine Ruby bundles (GitLab CE/EE, CVSS 10.0). Standalone engine build + A/B against the vendor fix. Trigger condition only; no weaponised exploit.
GitLab CE/EE, CVSS 10.0, unauthenticated RCE — root cause in Ruby's bundled regexp engine (Onigmo).
A standalone, unprivileged lab that reproduces the engine bug behind GitLab's CVE-2026-110264, with an A/B against the vendor's own fix. No GitLab install, no Ruby install, no container runtime, no root: the engine is compiled from source and driven by a 70-line C harness.
./run.sh # clones, builds 4 configurations, prints a verdict per step
cat RESULTS.txt # frozen output of a full run
Measured, not quoted: every number in RESULTS.txt comes from executing the code in this
directory.
A single self-contained page charting the measured level 1–3 results: the ID sawtooth and its wrap point, the write-window map, the read oracle, the two negative results, and the exploitation ladder with demonstrated / not-demonstrated tags.
It is an illustration of measurements taken from this repo's logs — not a live vulnerable service (a browser cannot run the vulnerable engine, and the page says so on its face).
| ✅ Demonstrates | The 16-bit internal-ID overflow in the regexp compiler, in the exact engine Ruby ships |
| ✅ Demonstrates | The index arithmetic: id = -32768 → access 262144 bytes before the base pointer |
| ✅ Demonstrates | Real memory-safety failure: SIGSEGV unsanitised, ASAN write into a retired heap block |
| ✅ Demonstrates | The vuln-vs-patched behavioural delta on byte-identical input |
| ✅ Demonstrates | The complete upstream fix: 4 hunks, 3 files, +8 lines |
| ✅ Demonstrates | Trigger cost: 557,073 bytes of plain ASCII, no authentication, no headers |
| ❌ Does not show | Weaponised RCE on GitLab (heap grooming against a live GitLab worker is out of scope) |
| ❌ Does not show | Which GitLab route is reachable unauthenticated — GitLab's HackerOne report (4093475) is still restricted, and the tracking work item is not public until 90 days after the patch release |
| ❌ Does not show | The null-check arm driven to a memory fault — measured only as accept-vs-reject on our subject |
| ❌ Does not show | A patched GitLab instance; the A/B is at the engine layer, which is where the bug lives |
Isolation: loopback-free, no network target, no external hosts contacted after the source clone,
disposable vendor/ and build-*/ directories, nothing installed system-wide.
Threat model. This lab analyses the primitive itself: whether a reachable memory-safety fault exists in the engine, and how far the attacker controls it. It is not a weaponisation study, and it deliberately does not supply an exploit — no heap-grooming recipe, no allocator-specific chain, no bypass for ASLR or NX. The point is to make the distance between a vendor severity score and deployed exploitability legible, not to close it.
Disclosure status. GitLab released the fixing versions (19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13) on 2026-10-21, and the CVE record went public 2026-10-22T00:33Z. This analysis was first published on 2026-10-24. It is post-patch public analysis: the trigger condition and the fix were already public before this repository existed, and nothing here predates the patch or describes a route that was hidden at disclosure time.
What this is. GitLab's CVE-2026-110264 (CVSS 10.0) is an integer overflow in the regular expression compiler, and the root cause is not GitLab's code: it lives in Onigmo, the regexp engine Ruby bundles. GitLab shipped the fix by patching the Ruby it builds.
Why it happens. Onigmo counts repeat and null-check IDs in an unbounded int, but stores each
one as typedef short int MemNumType — 16 bits. It already bounds the capture-group counter at
ONIG_MAX_CAPTURE_GROUP_NUM = 32767 (exactly the 16-bit range, added in 2014 after a crash at that
count), while ONIG_MAX_REPEAT_NUM is 100000 and the null-check counter had no limit at all. At
the 32,768th range-repeat the ID wraps to -32768, is written into the bytecode, and is then used
verbatim as an array index.
What this lab proves. The trigger condition; the exact index arithmetic (id = -32768 → a write
262,144 bytes before the ID block, i.e. id × 8); a real memory-safety failure on an unsanitised
build; the behavioural delta against the vendor's own fix on byte-identical input; and the complete
upstream patch (4 hunks, 3 files, +8 lines). Trigger cost: 557,073 bytes of plain ASCII, no
authentication, no headers.
What it does not prove. No weaponised RCE. The unauthenticated route GitLab's advisory refers to
is not public (the HackerOne report is restricted; the tracking item stays private for 90 days after
the patch release). Two plausible escalation arms were tested and no reachable path was found
under this lab's configuration — see the scope note in
docs/LEVEL-2-3.md for what that result does and does not cover.
One consequence deserves stating plainly: GitLab's advisory names an Org-mode render path as the trigger surface, and that surface is not one this lab exercises. The surface behind the 10.0 score is precisely the one left untested here.
Who should act. Anyone on self-managed GitLab older than 19.5.1 / 19.4.3 / 19.3.6 / 19.2.9 / 19.1.9 / 19.0.10 / 18.11.13 — or on Ruby older than 4.0.9 / 3.4.12 / 3.3.13. The 10.0 score is a patch-prioritisation signal for worst-case theoretical impact; this lab quantifies the distance between that score and what is publicly demonstrated.
| Field | Value | Source |
|---|---|---|
| Identifier | CVE-2026-110264 | CVE record (CNA: GitLab) |
| Title | Integer Overflow or Wraparound in GitLab (CWE-190) | CVE record |
| CVSS 3.1 | 10.0 — AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H | CVE record metrics + GitLab advisory |
| Reserved / published | 2026-10-13 / 2026-10-22T00:33Z | CVE record metadata |
| Vendor advisory | GitLab Critical Patch Release 19.5.1, 19.4.3, 19.3.6, 19.2.9, 19.1.9, 19.0.10, 18.11.13 | docs.gitlab.com |
| Affected | all versions from 7.0; 7 branches + an 18.11.13 backport | CVE record affected |
| SaaS | GitLab.com and GitLab Dedicated patched pre-disclosure | GitLab advisory |
| Reporter | joaxcar, via GitLab's HackerOne program (report 4093475, restricted) | CVE record credits |
| CISA SSVC | Exploitation: none · Automatable: yes · Technical Impact: total | CVE record ADP |
| Threat detections shipped | "Onigmo native worker crash", "Org mode render error burst" | GitLab advisory |
| Root cause owner | Ruby's bundled Onigmo — not GitLab code | ruby-lang.org news, 2026-10-23 |
| Ruby fix | 4.0.9 / 3.4.12 / 3.3.13 (Ruby declined to request its own CVE) | ruby-lang.org |
| Upstream Ruby change | PR #16801, commit 493d26dc "Reject overflowed repeat/null-check IDs in huge regexps" (Hiroya Fujinami) | ruby/ruby |
| In GitLab's build | config/patches/ruby/regexp-repeat-id-overflow-{3.3,3.4,4.0}.patch (omnibus-gitlab) | omnibus-gitlab commit 73cec6d8 |
GitLab shipped four CVEs in under two weeks from the same engine, each needing its own Ruby patch in omnibus-gitlab:
| GitLab CVE | Bug in Ruby | Fixed in GitLab | Ruby change |
|---|---|---|---|
| CVE-2026-89078 | Double free when parsing fails after an alternation | 19.4.1 | #13332 |
| CVE-2026-93577 | Integer overflow in the size of a compiled pattern | 19.4.1 | #19020 |
| CVE-2026-97229 | Same overflow, CI/CD regexp compile path | 19.4.2 | #19020 |
| CVE-2026-110264 | Overflow of internal IDs in a pattern with many repeats | 19.5.1 | #16801 |