Response playbooks, investigation guides, and Atomic Red Team tests are Pro-only. Upgrade to unlock the full detection package for CVE-2026-54658.

Unlock with Pro - from £29/user/mo
CVE-2026-54658

CVE-2026-54658 - @hypequery/clickhouse SQL Injection via Parameter Escaping

@hypequery/clickhouse versions prior to 2.0.2 contain a SQL injection vulnerability (CWE-89) in their parameter escaping logic, allowing an attacker who controls query parameter input to inject arbitrary ClickHouse SQL. Successful exploitation permits unauthorized data disclosure, modification, or execution of arbitrary SQL statements against the backing ClickHouse database. CVSS 9.8. A public PoC/advisory exists (GHSA-6wcc-39rp-hh9p). Detections target anomalous ClickHouse query patterns (union-based, stacked queries, system table access, sleep/benchmark-based blind injection) originating from application service accounts using the hypequery client, as well as npm dependency footprint indicating vulnerable package versions.

Vulnerability Intelligence

Public PoC

What is CVE-2026-54658 CVE-2026-54658 - @hypequery/clickhouse SQL Injection via Parameter Escaping?

CVE-2026-54658 - @hypequery/clickhouse SQL Injection via Parameter Escaping (CVE-2026-54658) maps to the Initial Access and Collection and Impact and Execution tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for CVE-2026-54658 - @hypequery/clickhouse SQL Injection via Parameter Escaping, covering the data sources and telemetry it touches: Azure App Service Logs, Container Logs, Application Logs. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Collection Impact Execution
Microsoft Sentinel / Defender
kusto
let SuspiciousTokens = dynamic(["UNION SELECT","union select","; DROP","; drop","sleep(","SLEEP(","benchmark(","BENCHMARK(","system.tables","system.users","system.processes","xp_cmdshell","information_schema","' OR '1'='1","' or '1'='1"]);
AppServiceHTTPLogs
| where TimeGenerated > ago(1h)
| where CsUriQuery has_any ("clickhouse", "query") or CsUriStem has_any ("clickhouse","query","analytics")
| extend DecodedQuery = url_decode(CsUriQuery)
| where DecodedQuery has_any (SuspiciousTokens)
| project TimeGenerated, CIp, CsUriStem, DecodedQuery, ScStatus, _ResourceId
| union (
  ContainerLogV2
  | where TimeGenerated > ago(1h)
  | where LogMessage has "clickhouse" or LogMessage has "hypequery"
  | where LogMessage has_any (SuspiciousTokens)
  | project TimeGenerated, ContainerId, LogMessage
)
| sort by TimeGenerated desc

Detects HTTP requests or application logs containing SQL injection patterns targeting ClickHouse queries, consistent with exploitation of the @hypequery/clickhouse parameter escaping vulnerability.

high severity medium confidence

Data Sources

Azure App Service Logs Container Logs Application Logs

Required Tables

AppServiceHTTPLogs ContainerLogV2

False Positives

  • Legitimate analytics queries that reference system tables for monitoring/introspection
  • Automated security scanning or QA fuzz testing hitting the application endpoints
  • Developers testing edge cases with SQL-like strings in staging environments
  • Log aggregation tools that legitimately reference 'union' or 'select' in non-SQL contexts

Sigma rule & cross-platform mapping

The detection logic for CVE-2026-54658 - @hypequery/clickhouse SQL Injection via Parameter Escaping (CVE-2026-54658) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  product: azure

Browse the community-maintained Sigma rules for this technique:


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Basic UNION-based SQL injection against hypequery endpoint

    Expected signal: HTTP access log entry with URI query parameter containing 'UNION SELECT' and 'system.users'; ClickHouse system.query_log entry reflecting the injected query.

  2. Test 2Blind time-based SQL injection via sleep()

    Expected signal: Delayed HTTP response (~5s) correlated with an access log entry containing 'sleep(' in the query string; ClickHouse query log shows sleep() function execution.

  3. Test 3Stacked query injection attempting DROP TABLE

    Expected signal: Access log entry containing '; DROP TABLE'; ClickHouse system.query_log showing an attempted or executed DROP TABLE statement outside expected application queries.

  4. Test 4System table enumeration via injected query

    Expected signal: Web server access log and ClickHouse query log entries referencing 'system.tables' combined with a UNION SELECT clause.

Unlock playbooks & atomic tests with Pro

Get the full detection package for CVE-2026-54658 — response playbook and atomic red team tests, plus investigation guidance and hunting queries.

df00tech Pro — £29/user/month

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections