Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege tenant
-
DeliveryCall affected stats API endpoint
-
ExploitInject UNION ALL via filter parameter
-
ExecutionBypass app_id tenant filter in ClickHouse
-
ImpactExfiltrate other tenants' event data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated Aptabase account (CVSS PR:L) and a deployment serving multiple tenants for the cross-tenant impact to be meaningful; the attacker must reach one of the 13 affected stats API endpoints and pass a malicious value through one of the specific filter parameters EventName, CountryCode, OsName, DeviceModel, AppVersion, or SessionId, which are interpolated into Liquid SQL templates. No special non-default feature toggle is needed - the injection exists in the standard ClickHouse-backed stats query path. Limiting factors: a valid tenant login is mandatory (not unauthenticated), the impact is read-only (no data modification), and single-tenant/self-hosted instances with only one app_id have little to steal from other tenants. Two of the fifteen stats endpoints are reported as not affected. |
| Impact | The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N, score 7.1) describes a network-reachable, low-complexity attack requiring low privileges (a valid authenticated account) with high confidentiality impact and no integrity or availability impact - consistent with a read-only cross-tenant data leak. Publicly available exploit code raises practical risk, but the vulnerability is NOT in CISA KEV and there is no EPSS score in the provided data, so widespread automated exploitation is not evidenced; treat this as a real but authentication-gated confidentiality issue rather than an unauthenticated internet-wide emergency. The main limiting factors are the PR:L requirement (attacker needs a tenant account, easy on multi-tenant/self-service SaaS deployments, harder on closed single-tenant installs) and the read-only nature of the flaw. No conflicting signals were found between the CVSS vector and the description; both agree the attacker is authenticated and impact is confidentiality-only. |
| Exploit ScenarioDerived | An attacker registers or already holds a low-privilege account on a multi-tenant Aptabase instance and calls a stats endpoint, supplying a crafted EventName (or CountryCode/OsName/DeviceModel/AppVersion/SessionId) value that closes the SQL string and appends a UNION ALL selecting event rows without the app_id restriction. The response returns event data belonging to other tenants, disclosing their analytics across the platform. Public exploit code for this technique is already available, lowering the skill needed to reproduce it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 21, 2026
Cross-tenant data disclosure in Aptabase (open-source privacy-friendly analytics) up to commit 5a89368 lets an authenticated tenant read every other tenant's event data by abusing a ClickHouse SQL injection in the stats API. Filter parameters (EventName, CountryCode, OsName, DeviceModel, AppVersion, SessionId) are interpolated unsanitized into Liquid SQL templates, letting an attacker append a UNION ALL that defeats the app_id tenant-isolation filter on 13 of 15 stats endpoints. Publicly available exploit code exists and the issue was reported by VulnCheck; no active exploitation is confirmed (not in CISA KEV).
RemediationAI
No vendor-released fixed version number is identified in the provided data; the fix is described relative to commit 5a89368, so upgrade to a build newer than that commit once the maintainers publish it and monitor the Aptabase repository and the VulnCheck advisory (https://www.vulncheck.com/advisories/aptabase-sql-injection-via-clickhouse-query-backend) for the patched revision. Until a patched build is deployed, the durable fix is to convert the Liquid SQL templates to parameterized/bound ClickHouse queries or to strictly allowlist-validate the EventName, CountryCode, OsName, DeviceModel, AppVersion, and SessionId filter values (reject characters that can break out of a string literal, such as quotes, semicolons, and the UNION keyword). As compensating controls, restrict access to the stats API endpoints to trusted accounts and apply per-tenant network or WAF rules that block SQL meta-characters and UNION patterns in filter parameters, accepting that aggressive WAF filtering may reject legitimate event names containing quotes; on single-tenant deployments the cross-tenant impact is inherently reduced, so isolating tenants into separate ClickHouse databases/instances is an effective architectural mitigation at the cost of operational overhead.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Aptabase renders ClickHouse queries from Liquid SQL templates, a text-templating approach where user-controlled filter values are substituted directly into the query string rather than passed as bound parameters. Because the filter fields are concatenated into the SQL text, the classic CWE-89 (Improper Neutralization of Special Elements used in an SQL Command) root cause applies: a value such as EventName can close the intended string literal and introduce attacker-controlled SQL. The tenant boundary in Aptabase is enforced logically by a WHERE app_id = <tenant> predicate; a UNION ALL sub-select does not inherit that predicate, so injected queries can read rows belonging to any app_id. The affected component per CPE is cpe:2.3:a:aptabase:aptabase (all versions through commit 5a89368), and the vulnerable surface is the ClickHouse query backend serving the stats API.
Know when Aptabase gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Network-reachable stats API with low-privilege tenant auth (PR:L) and low complexity; read-only cross-tenant leak gives C:H with no integrity or availability impact; scope kept unchanged as the same application enforces the bypassed filter.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Aptabase through commit 5a89368 contains a SQL injection vulnerability in the ClickHouse query backend that allows authenticated attackers to read event data across all tenants by injecting unsanitized filter parameters into Liquid SQL templates. Attackers can supply malicious values through EventName, CountryCode, OsName, DeviceModel, AppVersion, or SessionId parameters to inject a UNION ALL statement that bypasses the app_id tenant isolation filter across thirteen of the fifteen stats API endpoints.
Executive ViewAI
Aptabase analytics instances prior to commit 5a89368 contain a cross-tenant data disclosure vulnerability in the stats API that allows one tenant to access other organizations' event data through SQL injection. No vendor patch is currently available, creating immediate data confidentiality and compliance risk for all affected deployments.
No vendor-released patch identified at time of analysis. Interim mitigations: restrict API access to stats endpoints via network segmentation or firewall rules; disable or strongly constrain the affected filter parameters; implement rate limiting on affected endpoints; deploy Web Application Firewall signatures to detect and block UNION-based SQL injection patterns in API query parameters; review cross-tenant data sharing policies and access logs for evidence of exploitation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
EUVD-2026-46431
GHSA-8c62-2f67-357x
NVD
CVE.org
EPSS
Exploit-DB