Skip to navigation

Threat reportVulnerabilityTL-2026-0750

CVE-2026-9082: Highly Critical Anonymous SQL Injection in Drupal Core PostgreSQL Entity Query Driver (SA-CORE-2026-004)

criticalPATCHED

CVE-2026-9082 is a highly critical, unauthenticated SQL injection in Drupal core's database abstraction layer that is exploitable only on PostgreSQL-backed sites. Attacker-controlled PHP array KEYS (not values) flow unsanitized from HTTP requests into PostgreSQL PDO placeholder names, letting anonymous users break out of the named-parameter syntax and inject arbitrary SQL via JSON:API filters, the JSON login endpoint, Views exposed filters, and Entity autocomplete.

Key facts

IdentifiersTL-2026-0750, CVE-2026-9082
Also known asSA-CORE-2026-004, Keys to the Kingdom
SeverityCRITICAL
CVSS6.5
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-9082 (added )
EPSSCVE-2026-9082: 15.7% (96.7th percentile)
Affected productsDrupal Drupal core (PostgreSQL backend only)
Weaknesses (CWE)CWE-89
ToolsCVE-2026-9082.py (7h30th3r0n3 Drupal PoC)
MITRE ATT&CK techniquesT1027 Obfuscated Files or Information, T1078 Valid Accounts, T1082 System Information Discovery, T1087 Account Discovery, T1190 Exploit Public-Facing Application, T1203 Exploitation for Client Execution, T1212 Exploitation for Credential Access, T1213 Data from Information Repositories, T1505 Server Software Component, T1552 Unsecured Credentials, T1565 Data Manipulation, T1567 Exfiltration Over Web Service and 4 more in the attack flow
MotivationUNKNOWN
Target sectorsgovernment, financial, gaming, technology, media, education, healthcare, ecommerce
Target regionsNorth America, Europe, Asia, Global
Detection rules9 (1 shown free)
Sources14 cited sources

Detection coverage

As of 2026-06-10, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0750 across Splunk SPL, Microsoft KQL and Sigma, covering 17 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Drupal Boolean/Time-Based Blind SQLi Extraction Cadence (CVE-2026-9082) — Credential Access & Exfiltration

Detects the bit-by-bit blind-extraction behavior of CVE-2026-9082: bursts of near-identical anonymous /jsonapi/ (or /user/login?_format=json) requests differing by a single character in the value-array key, subqueries referencing users_field_data or 'WHERE uid = 1' (admin password-hash theft), and ~5s response latencies correlated with pg_sleep(5) time-based oracles. This is the data-exfiltration loop that follows a confirmed injection.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1212, T1552, T1087, T1567, T1213
  • Data sources: access_combined, W3CIISLog, nginx, webserver
  • Severity: critical
  • Confidence: high

Splunk SPL

index=web sourcetype="access_combined" (uri="*/jsonapi/*" OR (uri_path="/user/login" AND uri_query="*_format=json*"))
| eval q=urldecode(uri_query)
| eval admin_subquery=if(match(q,"(?i)users_field_data|WHERE\s+uid\s*=\s*1|SELECT\s+name\s+FROM"),1,0)
| eval timing_oracle=if(match(q,"(?i)pg_sleep") OR (isnotnull(response_time) AND response_time>=4.5),1,0)
| bin _time span=5m
| stats count AS req, dc(uri_query) AS distinct_payloads, sum(admin_subquery) AS admin_hits, sum(timing_oracle) AS timing_hits, values(status) AS statuses by _time, clientip
| where req >= 20 AND distinct_payloads >= 20 AND (admin_hits > 0 OR timing_hits > 0)
| eval severity="critical", cve="CVE-2026-9082", technique="boolean/time-based blind extraction"
| sort - req

Microsoft KQL

// Sentinel — CVE-2026-9082 blind-extraction burst cadence + admin-hash subquery + pg_sleep timing
let window = 24h;
let burst = 20;
W3CIISLog
| where TimeGenerated > ago(window)
| where csUriStem startswith "/jsonapi/" or (csUriStem == "/user/login" and csUriQuery has "_format=json")
| extend q = url_decode(csUriQuery)
| extend AdminSubquery = iff(q matches regex @"(?i)users_field_data|WHERE\s+uid\s*=\s*1|SELECT\s+name\s+FROM", 1, 0)
| extend TimingOracle = iff(q has "pg_sleep" or toint(TimeTaken) >= 4500, 1, 0)
| summarize req=count(), payloads=dcount(csUriQuery), adminHits=sum(AdminSubquery), timingHits=sum(TimingOracle), statuses=make_set(scStatus) by bin(TimeGenerated, 5m), cIP
| where req >= burst and payloads >= burst and (adminHits > 0 or timingHits > 0)
| extend Severity="Critical", CVE="CVE-2026-9082", Technique="boolean/time-based blind extraction"
| sort by req desc

Sigma

title: Drupal Blind SQLi Extraction Cadence and Admin-Hash Subquery (CVE-2026-9082)
id: c3f2e4a6-9082-4d33-ae23-0750spl00300
status: experimental
description: Detects the boolean/time-based blind extraction phase of CVE-2026-9082 — admin (uid=1) hash subqueries against users_field_data and pg_sleep time oracles delivered through JSON:API filter keys or the JSON login endpoint.
references:
    - https://www.drupal.org/sa-core-2026-004
    - https://github.com/7h30th3r0n3/CVE-2026-9082-Drupal-PoC
author: Threadlinqs Team
date: 2026/06/10
tags:
    - attack.credential_access
    - attack.t1212
    - attack.t1552
    - attack.exfiltration
    - attack.t1567
    - attack.discovery
    - attack.t1087
    - cve.2026.9082
logsource:
    category: webserver
detection:
    selection_ep:
        cs-uri-query|contains:
            - '[condition][value]['
            - '_format=json'
    selection_extract:
        cs-uri-query|contains:
            - 'users_field_data'
            - 'WHERE uid = 1'
            - 'WHERE uid=1'
            - 'SELECT name FROM'
            - 'pg_sleep'
            - 'substring('
    condition: selection_ep and selection_extract
falsepositives:
    - Authorized penetration tests performing blind-extraction validation (correlate with approved engagement window)
level: critical

Known false positives:

  • Authorized penetration testing performing CVE-2026-9082 extraction validation within an approved window
  • High-volume legitimate JSON:API consumers — but those will not contain users_field_data/uid=1/pg_sleep subqueries in the value key

Tuning notes: Tune the burst threshold (default 20 requests / 5 min per source IP) to your traffic baseline. The admin-subquery and pg_sleep conditions are high-fidelity on their own; the burst count guards against single benign requests. Surface response_time/TimeTaken indexing so the ~5s pg_sleep timing oracle is detectable even when the payload is obfuscated.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • WAF/AppGW JSON:API Array-Key SQLi Block & Probe (CVE-2026-9082) — Exploitation · unlock with TL Creds
  • Drupal JSON Login Endpoint SQLi via Object 'name' Field (CVE-2026-9082) — Credential Access / Auth Bypass · unlock with TL Creds
  • Drupal CVE-2026-9082 Mass-Scan & Distributed Probe Correlation — Reconnaissance / Resource Development · unlock with TL Creds
  • Drupal Views Exposed Filters / Entity Autocomplete Array-Key SQLi (CVE-2026-9082) — Alternate Exploitation Paths · unlock with TL Creds
  • Drupal Post-Exploitation: uid=1 Admin Hash Extraction & Credential Theft (CVE-2026-9082) · unlock with TL Creds
  • Drupal Time-Based Blind SQLi pg_sleep Oracle & Post-Exploit Persistence (CVE-2026-9082) · unlock with TL Creds
  • Drupal JSON:API Array-Key SQL Injection Probe (CVE-2026-9082) — Exploitation · unlock with TL Creds
  • Drupal Anonymous SQLi PostgreSQL Oracle Errors (HY093 / 22012) — Exploitation Confirmation · unlock with TL Creds

Indicators of compromise

As of 2026-06-10, Threadlinqs Intelligence tracks 17 indicators of compromise for TL-2026-0750.

17 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

It enables boolean/time-based blind extraction of any database-readable data, including admin (uid=1) password hashes.

CVE-2026-9082 (Drupal advisory SA-CORE-2026-004, rated 20/25 'Highly Critical') is a SQL injection vulnerability in Drupal core's Entity Query / database abstraction API. Unlike classic SQLi that targets parameter VALUES, this flaw abuses how PHP associative-array KEYS are converted into PostgreSQL PDO named-placeholder identifiers. PHP's request parser lets an attacker control array keys, and on the PostgreSQL code path those keys are interpolated directly into SQL text before PDO binding occurs.

Root cause: in core/modules/pgsql/src/EntityQuery/Condition.php, the PostgreSQL-specific case-insensitive IN-operator handler iterates over $condition['value'] using the raw array keys to build placeholder names: 'foreach ($condition[''value''] as $key => $value) { $where_id = $where_prefix . $key; $condition[''where''] .= ''LOWER(:'' . $where_id . ''),''; $condition[''where_args''][':'' . $where_id] = $value; }'. The loop assumes sequential numeric keys. If a caller supplies an associative array, $key becomes arbitrary attacker text embedded in the SQL string. Because PostgreSQL/PDO named placeholders only consume identifier characters [a-zA-Z0-9_], any metacharacter in the key (a backtick, single quote, bracket, closing paren, or the || concatenation operator) terminates the placeholder name and everything after it is parsed as literal SQL.

Exploitation paths: (1) JSON:API filter parameters - GET /jsonapi/node/{bundle}?filter[t][condition][value][KEY]=x. Symfony HttpFoundation auto-converts bracketed query parameters into nested PHP arrays, and JSON:API passes the value array straight into the entity query without sanitizing keys. (2) JSON login endpoint - POST /user/login?_format=json with the 'name' field submitted as a JSON object so JsonEncoder decodes it into an associative array, bypassing type validation. (3) Views exposed filters and (4) Entity autocomplete endpoints reach the same vulnerable condition handler. None require authentication or session state.

Data extraction is blind: a true predicate is signaled by an HTTP 500 with PostgreSQL SQLSTATE[22012] (division by zero) when payloads use a 1/(SELECT CASE WHEN ... THEN 0 END) construct, while a false predicate returns HTTP 400 ('unrecognized username or password') or an empty 200 result. A malformed placeholder key surfaces as SQLSTATE[HY093] ('Invalid parameter number'). This permits bit-by-bit boolean-blind and time-based (pg_sleep) extraction of any readable data, including users_field_data and the uid=1 admin password hash, enabling authentication bypass and full site compromise.

The fix resets the array to a sequential integer range with array_values() before the override iterates, applied across core/lib/Drupal/Core/Entity/Query/Sql/Condition.php, core/lib/Drupal/Core/Entity/Query/Sql/ConditionAggregate.php, and core/modules/pgsql/src/EntityQuery/Condition.php. MySQL/MariaDB/SQLite are NOT affected because they take a different code path via Connection::expandArguments(). Drupal 7 is unaffected (no JSON:API in core).

Disclosure and exploitation were rapid: a pre-release PSA on 2026-05-18, advisory + patches on 2026-05-20, a detection/verification PoC the same day, public exploitation tooling and active exploitation within 2-3 days, and CISA KEV addition on 2026-05-22. CVSS is reported as NVD 6.5 (base) versus Drupal's own 20/25 'Highly Critical' rating; researchers note an AI-assisted working exploit was reproduced in ~51 minutes from public information. Imperva reported 15,000+ attack attempts against ~6,000 sites across 65 countries, and CrowdSec observed 68 distinct attacking IPs through 2026-05-25.

MITRE ATT&CK techniques by tactic:

Defense Evasion

T1027 Obfuscated Files or Information

Initial Access

T1078 Valid Accounts; T1190 Exploit Public-Facing Application

Discovery

T1082 System Information Discovery; T1087 Account Discovery

Execution

T1203 Exploitation for Client Execution

Credential Access

T1212 Exploitation for Credential Access; T1552 Unsecured Credentials

Collection

T1213 Data from Information Repositories

Persistence

T1505 Server Software Component

Impact

T1565 Data Manipulation

Exfiltration

T1567 Exfiltration Over Web Service

Resource Development

T1583 Acquire Infrastructure; T1588 Obtain Capabilities

Reconnaissance

T1592 Gather Victim Host Information; T1595 Active Scanning

Remediation

Patches

  • Drupal core 11.3.10
  • Drupal core 11.2.12
  • Drupal core 11.1.10 (exceptional EOL release)
  • Drupal core 10.6.9
  • Drupal core 10.5.10
  • Drupal core 10.4.10 (exceptional EOL release)
  • Best-effort manual patches for EOL Drupal 9.5 and 8.9

Immediate actions

  • Upgrade Drupal core to the patched release for your branch: 11.3.10, 11.2.12, 11.1.10, 10.6.9, 10.5.10, or 10.4.10
  • If immediate upgrade is impossible, apply the official SA-CORE-2026-004 patch (array_values() reset in the Entity Query Condition handlers)
  • Disable or restrict the JSON:API module if not required; lock down /jsonapi/ and /user/login?_format=json at the WAF/reverse proxy
  • Block requests whose filter[*][condition][value] keys contain SQL metacharacters (backtick, single quote, parentheses, comment sequences, ||, OR/SELECT, pg_sleep)

Workarounds

  • Disable the JSON:API module
  • Restrict anonymous access to JSON:API, Views exposed filters and Entity autocomplete endpoints
  • Migrate the site database off PostgreSQL is NOT a recommended mitigation; patching is required

Longer-term hardening

  • Deploy WAF SQLi rule coverage (e.g. Akamai App & API Protector rules 950902, 959073, 981255, 3000101)
  • Hunt PostgreSQL/PHP logs for SQLSTATE[22012] and SQLSTATE[HY093] errors originating from JSON:API and login endpoints
  • Audit for end-of-life Drupal 8.9/9.5 installs and migrate to a supported, patched branch
  • Rotate all credentials and force password resets if blind extraction or admin-hash access is suspected

Affected and fixed versions

  • Drupal — Drupal core (PostgreSQL backend only)
    Vulnerable versions: 8.9.x and earlier 8.x; 9.0.x-9.5.x; 10.4.0-10.4.9; 10.5.0-10.5.9; 10.6.0-10.6.8; 11.0.0-11.1.9; 11.2.0-11.2.11; 11.3.0-11.3.9
    Fixed in: 10.4.10; 10.5.10; 10.6.9; 11.1.10; 11.2.12; 11.3.10

Timeline

  • Drupal Security Team issues a pre-release Public Service Announcement (PSA) warning of an upcoming highly critical core release.
  • A detection/verification proof-of-concept for CVE-2026-9082 is published.
  • Drupal publishes advisory SA-CORE-2026-004 (CVE-2026-9082), rated 20/25 'Highly Critical', along with patched releases 11.3.10, 11.2.12, 11.1.10, 10.6.9, 10.5.10 and 10.4.10. Credited reporter: Michael Maturi; JSON login variant analysis contributed by Animesh Acharya (Tanto Security).
  • CrowdSec observes early probing attempts against /jsonapi/ endpoints.
  • Akamai and Searchlight Cyber publish technical analyses ('Keys to the Kingdom') detailing the PHP array-key to PDO placeholder injection and blind extraction primitive.
  • CISA adds CVE-2026-9082 to the Known Exploited Vulnerabilities (KEV) catalog and orders federal agencies to patch.
  • Exploit attempts are detected in the wild; risk score updated to reflect active exploitation.
  • CrowdSec observes confirmed exploitation across its network; BleepingComputer reports CISA's patch order.
  • Miggo study reports an AI-assisted working exploit reproduced from public information in approximately 51 minutes.
  • CrowdSec reports 68 distinct attacking IPs through May 25; Imperva reports 15,000+ attack attempts against ~6,000 sites across 65 countries, concentrated on gaming and financial-services sites.

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 14 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats