Este artigo está disponível apenas em inglês.
By UNST33R
Kong AI Gateway CVE-2026-92544: SQL injection rides in on the model name field
Kong patched CVE-2026-92544 on November 10, 2026 in AI Gateway 2.2.1 and Gateway Enterprise 3.16.0.2. A client-supplied model name reached the license_llm_data usage-counter table without escaping, letting an API consumer run arbitrary SQL against the gateway database. Here is the advisory breakdown, the metering-plane attack pattern, a probe recipe for authorized testers, and the fixes that actually close this class.
On November 10, 2026, Kong shipped a security-heavy patch release for its AI Gateway line. Buried between a Brotli decompression RCE fix and an Admin API RBAC bypass fix sits CVE-2026-92544, rated 8.7 High on CVSS 4.0 in the NVD record. The injection vector deserves attention from anyone who runs or tests an OpenAI-compatible gateway: the model field of an ordinary chat completion request. The gateway's LLM usage counters wrote that client-controlled string into SQL without escaping it first.
This post breaks down what the advisory actually says, why the metering plane of an AI gateway is a productive injection surface, how to test for the pattern in authorized engagements, and which fixes close the class rather than the instance. If you run Kong AI Gateway or Kong Gateway Enterprise with LLM plugins, the patch section is the part to forward to your platform team.
The facts in one table
| Field | Value | Source |
|---|---|---|
| CVE | CVE-2026-92544 | NVD record |
| Severity | CVSS 4.0 8.7 High (secondary), vector AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H | NVD |
| Affected products | Kong Gateway Enterprise, Kong AI Gateway (LLM usage counters) | NVD description |
| Fixed in Kong AI Gateway | 2.2.1, released November 10, 2026 | AI Gateway changelog |
| Fixed in Kong Gateway Enterprise | 3.16.0.2 | Gateway changelog |
| Vendor fix text | "Fixed CVE-2026-92544 in the LLM usage counters by escaping every value before running the SQL statement, preventing SQL injection when a client-supplied model name is written to the license_llm_data table" | Both changelogs above |
The NVD description compresses the story into one sentence: SQL injection in the LLM usage counters "may allow a client to execute arbitrary SQL against the Kong database via a crafted model name." Three words in that sentence carry the whole lesson. Client, meaning any API consumer holding a valid credential, which is why the CVSS vector carries PR:L rather than PR:N. Crafted model name, meaning the payload travels in a field most teams treat as configuration metadata. License, in the sink table name license_llm_data, meaning the corrupted data feeds entitlement and billing accounting, where wrong numbers cost real money and get replicated into invoices.
Why the model name is an attack surface
Every OpenAI-compatible request carries a model string. In a routed deployment that string is simultaneously routing input, authorization input, and telemetry input. The gateway resolves it against a model catalog, applies per-model rate limits and ACLs, then writes a usage row so the metering system can answer "which consumer used which model, how many tokens, at what cost." That usage row is exactly where CVE-2026-92544 lived.
The field has three properties that make it dangerous in SQL contexts:
- It is client-controlled on every request, at high volume, from every consumer.
- It looks like a low-risk identifier, so it slips past the input validation effort that guards request bodies, headers, and paths.
- It flows downstream into tables that analytics jobs, dashboards, and license enforcement read later, which creates a second-order blast radius beyond the write path.
A quote character in a model name is never legitimate traffic. Yet the vulnerable code path accepted it far enough to reach a SQL statement. The fix Kong describes, "escaping every value before running the SQL statement," confirms the sink was string interpolation into SQL built from request-derived values.
The attack pattern, step by step
In an authorized engagement against your own gateway deployment, the metering-plane injection pattern looks like this:
| Step | Action | Signal to record |
|---|---|---|
| 1 | Send a completion request with a benign but unusual model name, such as probe-alpha-001 | Does the request succeed, and does the name appear in usage analytics verbatim? |
| 2 | Send a quoting probe such as probe')-- | A 400 from model validation is a good sign. A 500, a stack trace, or a latency spike is a finding. |
| 3 | Send a time-based payload with a delay primitive appropriate to the backend database | Compare response time against the baseline from step 1. A 5-second delta on a 5-second payload is a finding. |
| 4 | After steps 2 and 3, pull the usage dashboard and license accounting reports | Corrupted aggregates, dropped rows, or escaped-quote artifacts in reports confirm the write path reached persistence. |
| 5 | Re-test after patching | The patched gateway escapes every value before the SQL statement, so probes in step 3 should show flat latency. |
A minimal probe against your own OpenAI-compatible endpoint, using a payload that never leaves your own deployment:
# Baseline: unusual but harmless model name
curl -s https://your-gateway.example/v1/chat/completions \
-H "Authorization: Bearer $GATEWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"probe-alpha-001","messages":[{"role":"user","content":"ping"}]}'
# Quoting probe: does the string survive into persistence?
curl -s -w '\ntime_total=%{time_total}\n' https://your-gateway.example/v1/chat/completions \
-H "Authorization: Bearer $GATEWAY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"model":"probe'"'"')--","messages":[{"role":"user","content":"ping"}]}'
Run each probe three times and record status codes, response bodies, and time_total. The artifact that matters for the report is the delta between baseline and probe, plus what shows up in the metering tables afterward. This is a black-box test you can run before and after any gateway patch, which makes it a cheap regression gate for the whole class of bugs, well beyond Kong.
The patch release was carrying more than one reason to upgrade
Kong AI Gateway 2.2.1 fixed three other security issues in the same release, and the list sketches the attack surface of a modern gateway better than any architecture diagram:
| CVE | Component | Fix summary |
|---|---|---|
| CVE-2026-111497 | Bundled Brotli | Bumped 1.1.0 to 1.2.1, closing an out-of-bounds write that could allow RCE during compression or decompression |
| CVE-2026-105986 | Admin API | Applied RBAC self-protection checks consistently, closing a protection bypass |
| CVE-2026-92441 | Gateway core | Normalized and percent-escaped X-Forwarded-Path and X-Forwarded-Prefix, preventing header injection and request smuggling upstream |
The neighboring ecosystem tells the same story. On October 27, 2026, LiteLLM published two advisories of its own: a privilege escalation to proxy admin through cross-domain reuse of a salt key (GHSA-7hp6-4w63-5g45) and an arbitrary local file read through the vertex_ai_credentials parameter (GHSA-g5ff-637f-6q2m). Our earlier writeups on testing LiteLLM gateways and the LiteLLM 1.107.0 backdoor analysis cover the surrounding pattern. Gateways sit on credentials, metering, and routing decisions all at once, and each of those planes keeps producing findings.
Fixes that close the class
Kong's fix escapes every value before the SQL statement runs. That closes this instance. The class needs three more layers:
- Parameterized statements everywhere metering writes. Escaping is a per-call-site discipline; parameter binding is a per-driver default. Telemetry code is usually written fast and reviewed rarely, which makes it the wrong place for string-built SQL.
- Reject unknown model IDs at the edge. A model catalog is a finite list. When the request router validates
modelagainst that list before anything downstream sees it, quoting payloads die at validation with a 400, and the metering writer only ever sees server-resolved catalog entries. - Least-privilege the telemetry database. The account that writes usage counters needs INSERT and nothing else. Arbitrary SQL from a compromised counter path should hit a wall before it can read consumer tables or drop anything.
For operators, the monitoring rule is cheap to add: alert on any model name containing quote characters, semicolons, or SQL comments in request logs and in metering rows. Legitimate traffic never contains those bytes in that field, so the false-positive rate rounds to zero.
Where a strict catalog fits for red team work
Our own API accepts exactly three model identifiers, unst33r-flash, unst33r-deepseek, and unst33r-pro, and rejects every unknown string before the request reaches persistence. Metering rows are written from the server-side resolution, so there is no client-controlled string flowing into storage. That constraint also keeps probe loops honest: when a harness sweeps a gateway for metering bugs, the model field on our side can only ever be one of three known-safe values.
| SKU | Base model | Input / output per 1M tokens | Fit for gateway testing loops |
|---|---|---|---|
unst33r-deepseek | DeepSeek-V4.1-Flash generation, abliterated | $0.15 / $0.5625 ($0.03125 cached input) | Bulk probe sweeps and advisory triage at cents per thousand requests |
unst33r-flash | GLM-5.3-Flash generation, uncensored | $0.50 / $1.50 | Fast iterative harness debugging mid-engagement |
unst33r-pro | GLM-5.3 generation, uncensored | $2.50 / $4.50 | Deep reasoning passes over findings and report drafting |
Current prices live on the pricing page, and the DeepSeek SKU guide covers the bulk-sweep setup. Scope all testing to systems you own or are contracted to test, per our acceptable use policy.
What to do this week
- If you run Kong AI Gateway, upgrade to 2.2.1 or later; on Kong Gateway Enterprise, get to 3.16.0.2 or later. The release also carries the Brotli RCE fix, so the upgrade case stands even if you discount the SQLi.
- Add the model-name probe from the table above to your gateway regression suite. Our vLLM max_patches writeup and the LM Studio hardening guide cover the same class of cheap pre- and post-patch checks for serving stacks.
- Audit every place your stack persists a request-derived string: usage counters, prompt logs, cost dashboards, license accounting. The question to ask per table is whether a 30-character hostile string in a
modelfield could reach it.
The model name field has quietly become part of the trust boundary of every routed LLM deployment. Kong's advisory is the cleanest demonstration of that this month, and the census numbers in our 2026 LLM-stack CVE data report suggest the metering plane will keep producing findings into next year.