Skip to content
Exploit for CVE-2026

Exploit for CVE-2026

Sploitus • November 24, 2026

[![Research status: validated](

| **Component** | MISP — `app/Model/Warninglist.php` |

| **CWE** | CWE-1333 (Inefficient Regular Expression Complexity) |

| **Impact** | Warninglist regex entries that could be added by users below site admin were evaluated with the default (very large) PCRE backtrack limit. A catastrophic pattern could hang a PHP worker indefinitely — a regular-expression denial of service |

| **Vector** | lower-privileged user adding a malicious warninglist regex |

| **Trigger** | catastrophic backtracking pattern such as `(a+)+$` on crafted input |

// Warninglist.php — pre-fix (behavior in the lab)

if (preg_match($listValue, $value)) { ... } // default backtrack limit

// fixed (commit ab75b85, verbatim logic in the lab)

$originalLimit = ini_get('pcre.backtrack_limit');

ini_set('pcre.backtrack_limit', '100000');

$result = @preg_match($listValue, $value);

$this->failedRegexes[$listValue] = true; // skip + log once

User-controlled regex patterns were evaluated without constraining PCRE's

backtracking budget, so a pathological pattern could consume unbounded CPU. The

fix caps the backtrack limit around evaluation and skips patterns that exceed

| `rd-vuln` | `cve-2026-135256:vuln` | unbounded backtracking |

| `rd-fixed` | `cve-2026-135256:fixed` | verbatim backtrack cap |

| `poc` | `cve-2026-135256-poc:local` | stdlib-only Python driver |

The Python harness models the backtrack cap from both commits with a pattern

needing 2M backtracks against a 100000 limit.

./run-lab.sh build # builds both sides (python:3.12-alpine)

./run-lab.sh up # cve135256lab network: rd-vuln / rd-fixed

* **check** — exit 1 when the regex runs unbounded, 0 when it fails fast;

* **exploit** — narrated chain: malicious regex → unbounded backtracking →

* **mitigation** — `ab75b85` / `pcre.backtrack_limit=100000`.

A standalone full-chain exploit ships at `exploit/exploit.py`:

python3 exploit/exploit.py --host=rd-vuln

# exit 1 on confirmed ReDoS, 0 on a safe target

| | `rd-vuln` (pre-fix) | `rd-fixed` (`ab75b85`) |

| `(a+)+$` needing 2M backtracks | **`regex_matched`, ReDoS** | **`regex_failed_fast`** |

Captured runs: `evidence/check-*-run.txt`, `evidence/exploit-*-run.txt`,

`evidence/probe-*-run.txt`, `evidence/mitigation-*-run.txt`,

`evidence/exploit-standalone-run.txt`, `evidence/exploit-standalone-fixed-run.txt`,

`evidence/versions.txt`, `evidence/0day-sweep.txt`.

* Podman (or Docker); bounded containers on the isolated `cve135256lab`

* Real-world exploitation requires a user able to add warninglist regex entries

## 7. Additional findings (0-day sweep on the fixed line)

Regex evaluation caps `pcre.backtrack_limit` at 100000; pathological patterns

fail fast, are logged once, and are skipped rather than hanging the worker.

Normal warninglist regexes still evaluate on the fixed build.

run-lab.sh environment driver (build / up / sweep / down)

Makefile convenience targets

poc/poc.py the PoC (check / exploit / probe / mitigation)

exploit/exploit.py standalone full-chain exploit

lab/harness-*.py verbatim backtrack guard per side

lab/lab.Dockerfile builds both sides (python:3.12-alpine)

lab/service.py HTTP wrapper (POST /check), child-process isolation

evidence/ captured runs of every mode on both sides

TRACKING.md excluded (working record)

* CVE record —

* Fix commit —

Extracted Entities