Wheels (CFWheels) ≤ 4.1.2 — SQL Injection via Backslash-Escape Breakout (CVE-2026-111444)
Published: 2026-11-25 • Researcher: Syscallh00k (repo owner); [L] Labubus (exploit author per script header; repo README states the script was generated by AI); Wheels Dev Team (advisory GHSA-mvr9-2h5x-w6cq)
- Severity
- Critical
- CVE
- CVE-2026-111444 / GHSA-mvr9-2h5x-w6cq
- Category
- web
- Affected product
- Wheels (CFWheels) — ColdFusion/CFML MVC framework
- Affected versions
- ≤ 4.1.2 per the GHSA advisory (patched in 4.2.0); NVD enumerates no CPE product ranges for this CVE — See references
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-10-15 |
| Author / Researcher | Syscallh00k (repo owner); [L] Labubus (exploit author per script header; repo README states the script was generated by AI); Wheels Dev Team (advisory GHSA-mvr9-2h5x-w6cq) |
| CVE / Advisory | CVE-2026-111444 / GHSA-mvr9-2h5x-w6cq |
| Category | web |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) |
| Status | PoC |
| Tags | SQLi, Wheels, CFWheels, ColdFusion, Lucee, MySQL, MariaDB, backslash-escape, blind-sqli, unauthenticated |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Wheels (CFWheels) — ColdFusion/CFML MVC framework |
| Versions Affected | ≤ 4.1.2 per the GHSA advisory (patched in 4.2.0); NVD enumerates no CPE product ranges for this CVE — See references |
| Language / Platform | CFML on Lucee or Adobe ColdFusion; MySQL/MariaDB backend with default sql_mode (NO_BACKSLASH_ESCAPES not set) |
| Authentication Required | No (the injection itself needs no session, but the affected app endpoint must accept the parameter) |
| Network Access Required | Yes |
Summary
Wheels through 4.1.2 writes some SQL values into the query as inline quoted literals instead of binding them, and escapes only single quotes. On MySQL or MariaDB with the default SQL mode, a backslash is an escape character inside a string literal, so a value ending in a backslash and quote breaks out of the literal and the remainder is parsed as SQL. The affected paths are opt-in queries run with parameterize set to false (including IN lists) and literals inside developer-written where strings that the WHERE parser does not bind, such as BETWEEN bounds, function arguments, and LIKE ESCAPE literals. An attacker who controls request data that reaches one of those paths can alter the query and read or modify data the application did not intend to expose; bound paths are unaffected and whereBetween is bound from 4.1.2.
Vulnerability Details
Root Cause
Wheels builds SQL text by hand in a few code paths and quotes values with single-quote doubling only (' → ''). That is safe only when the database treats the quote as the sole escape mechanism. With MySQL/MariaDB default sql_mode, the parser also honours backslash escapes inside string literals, so the sequence \' is consumed as an escaped quote by the database even though Wheels has already doubled the quote. The literal therefore closes early and the rest of the attacker value becomes SQL syntax. The vulnerable paths are: Base.cfc $executeQuery when parameterize is false (every value inlined through $quoteValue(str, sqlType), including IN-list handling), and literal positions the WHERE parser leaves unbound — BETWEEN ... AND ... bounds, function arguments, and LIKE ... ESCAPE '...' literals. Bound parameters and whereBetween() (bound since 4.1.2) do not have the flaw.
Attack Vector
The attacker supplies a value such as \' OR (1=1) -- to any application request parameter that the app passes into an inline-literal path. Wheels rewrites it to \'' OR (1=1) -- , the database reads \' as a quoted quote, the string closes, and the OR predicate executes with the trailing quote commented out. The PoC script wraps this breakout in a boolean or time-based blind oracle (IF((predicate),SLEEP(n),0)) and binary-searches the response to extract arbitrary scalar subqueries, so no UNION or error output is needed.
Impact
Full read access to data reachable by the application’s database user: credential and secret tables, user records, and any table the DB account can select. Because the injected predicate is arbitrary SQL, integrity and availability impact is also possible where the statement allows stacked or write-capable expressions. CVSS 9.8 reflects network-reachable, unauthenticated confidentiality/integrity/availability loss; the practical scope is bounded by the privileges of the Wheels datasource.
Environment / Lab Setup
OS: Linux (any distro with Python 3.8+) — upstream script header says
"Tested on: Wheels 4.1.2 + Lucee 6 + MariaDB 11"
Target: A Wheels ≤ 4.1.2 app with MySQL/MariaDB and default sql_mode,
exposing a parameter that reaches an inline-literal path
Attacker: Python 3 (requests optional — urllib fallback), curl, Burp Suite
Tools: python3, requests (optional), docker (for a Lucee/MariaDB lab you build)Setup Steps
| |
Note: the script’s docstring references a lab/ tree with a vulnerable Wheels app and docker compose file, but that directory is not present in the cloned repository — the public repo ships only README.md and cve_2026_111444.py. To reproduce you must supply your own Wheels 4.1.2 app (Lucee 6 + MariaDB 11, default sql_mode) with a controller/action that feeds request data into parameterize=false, an IN list, or an unbound where= literal.
Proof of Concept
Step-by-Step Reproduction
- Identify a sink — find a Wheels ≤ 4.1.2 endpoint where a request parameter reaches a
parameterize=falsequery, an IN list, a BETWEEN bound, a function argument, or a LIKE ESCAPE literal.Shell script1 2# Example generic target; choose the parameter that hits the inline-literal path curl -s "http://app.local/search?q=test" - Check the boolean oracle — send the breakout with a true and a false predicate and compare responses (data vs no data).Shell script
1python cve_2026_111444.py -u "http://app.local/search" -p q --check - Extract a scalar — once the oracle is verified, binary-search an arbitrary subquery through the injection.Shell script
1 2python cve_2026_111444.py -u "http://app.local/search" -p q \ --query "SELECT secret FROM users LIMIT 1" - Fall back to the time oracle — if the response body does not change reliably, force SLEEP-based extraction.Shell script
1 2python cve_2026_111444.py -u "http://app.local/search" -p q --time \ --query "SELECT user()" - Raw request template — when the value sits inside a larger expression (e.g. a BETWEEN high bound), supply the surrounding SQL yourself.Shell script
1python cve_2026_111444.py -u "http://app.local/search" --template "email='{payload}'&x=1"
Exploit Code
See
cve_2026_111444.pyin this folder, and the upstream usage notes inupstream-README.md.
The core primitive is the breakout value, followed by a blind extraction loop:
| |
Expected Output
| |
Detection & Indicators of Compromise
- Request parameters containing the literal sequence
\'immediately followed by SQL keywords (OR, AND, UNION), comment markers (--,#,/*), orSLEEP(,BENCHMARK(,IF(. - Repeated near-identical requests differing by one comparison (
ASCII(SUBSTR(...))>N) — the signature of binary-search blind extraction; high request rate to a single endpoint from one client. - Query strings or form bodies where the value ends in an odd number of backslashes before a quote, or contains doubled quotes combined with a backslash.
- Database slow-query logs showing
SLEEP()inside WHERE clauses, orIF((...),SLEEP(...),0)predicates attributed to the Wheels datasource account. - DB error logs referencing malformed quoted literals in queries generated by the Wheels ORM.
- Wheels application logs showing
parameterize=falsequery paths invoked from controller actions that take request data.
| |
SIEM / IDS Rule (example):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade Wheels to 4.2.0 or later. The fix makes MySQLModel.$inlineStringLiteral emit any backslash-bearing value as a _utf8mb4 X'...' hex literal, which is immune to sql_mode differences. |
| Workaround | If upgrading is not possible, remove parameterize=false from application queries, pass BETWEEN bounds/function args/ESCAPE literals as bound parameters, and avoid building where= strings from request data. A WAF rule blocking \'-prefixed SQL keywords reduces exposure but is bypassable. |
| Config Hardening | Run MySQL/MariaDB with sql_mode=NO_BACKSLASH_ESCAPES as defense in depth (note this changes escaping semantics for the whole application — test first), give the Wheels datasource a least-privilege account, log and alert on SLEEP() in queries, and monitor for blind-extraction request patterns. |
References
Notes
Auto-ingested from https://github.com/Syscallh00k/CVE-2026-111444 on 2026-11-25. Review verdict: real exploit code, not a detector or scanner — the script implements the backslash breakout, a boolean oracle, a time-based SLEEP oracle, binary-search extraction of arbitrary scalar subqueries, and a users-table dump path. It is archived as a PoC rather than Weaponized because it is sink-dependent (you must point it at a vulnerable application endpoint), the bundled lab/ app referenced in its docstring is absent from the repository, and no successful run evidence is published. The upstream README states the script was generated by AI and that the repository owner is not the exploit author; the file header credits [L] Labubus. The repository has no license file, so the code is archived with attribution for authorized research only. Limitations: blind extraction is slow (binary search, one character per request set), the false-positive-prone heuristic treats any non-empty non-JSON response as data, and --template must be supplied manually for BETWEEN/ESCAPE sinks. Do not execute against systems without written authorization.
| |