Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to customer API
-
DeliveryStore payload in usageAttribution.subjectKeys
-
ExploitAwait meter/event query referencing customer
-
ExecutionPayload concatenated into ClickHouse map()
-
PersistInjected SQL executes on backend
-
ImpactExfiltrate or manipulate usage data
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | The attacker must have the ability to create or update a customer in OpenMeter and set the usageAttribution.key or usageAttribution.subjectKeys fields to a malicious value - that customer-write capability is the core prerequisite. Exploitation is second-order and therefore not self-triggering: the payload only executes when the affected customer is subsequently referenced in a meter or event query, so the attacker depends on a later legitimate query (by an operator or automated job) to fire the injection. Deployment must run an affected version (v1.0.0-beta.218 through v1.0.0-beta.231) backed by ClickHouse. The principal limiting factor is that customer creation/update typically requires authenticated/tenant-scoped API access despite the vendor's PR:N rating; confirm the exposure of that endpoint to assess whether truly unauthenticated exploitation is possible. |
| Impact | The vendor CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:H/SC:H/SI:L/SA:H, score 9.3) rates this network-reachable, low-complexity, and requires no privileges - but this conflicts with the description, which states the attacker must be able to 'create or update a customer,' an operation that in most deployments requires an authenticated API caller or tenant-scoped credential. Verify the actual auth model with the vendor: if customer management is exposed unauthenticated or self-service, PR:N holds; if it requires an API key/operator role, real-world risk is meaningfully lower than the raw score implies (this analysis assesses PR:L). No EPSS score, KEV listing, or public POC was provided, so exploitation likelihood signals are absent - this is a high-severity design flaw with no evidence of active exploitation. The high confidentiality and availability impact on ClickHouse (which holds usage/billing data) makes it a genuine priority for any exposed OpenMeter instance in the affected beta range, but the second-order nature and the customer-write prerequisite make opportunistic mass exploitation less likely than a targeted attack by a tenant or an actor with API access. |
| Exploit ScenarioDerived | A tenant or API-authorized actor calls the customer create/update endpoint and stores a crafted string in usageAttribution.subjectKeys that breaks out of the ClickHouse map(...) expression. Later, when an operator or automated process runs a meter or event query referencing that customer, the stored payload is concatenated into the SQL and executed against ClickHouse, letting the attacker read or manipulate usage/billing data. No public exploit code has been identified, but the low attack complexity makes weaponization straightforward once the injection point is understood. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 04, 2026
Stored (second-order) SQL injection in OpenMeter (v1.0.0-beta.218 through v1.0.0-beta.231) lets an actor who can create or update a customer plant a malicious payload in the usageAttribution.key or usageAttribution.subjectKeys fields, which is later concatenated unsanitized into a ClickHouse WITH map(...) expression when the customer is referenced in a meter or event query. The delayed execution means the injection fires during downstream analytics/metering operations rather than at input time, giving an attacker read/manipulation access to the ClickHouse backend that stores usage and billing telemetry. There is no public exploit identified at time of analysis, and the flaw is not listed in CISA KEV; the vendor-assigned CVSS 4.0 base score is 9.3 (Critical).
RemediationAI
Upgrade to a fixed OpenMeter release above v1.0.0-beta.231 as published in the vendor advisory GHSA-m2fw-9wxq-jgf5 (https://github.com/openmeterio/openmeter/security/advisories/GHSA-m2fw-9wxq-jgf5); no exact patched version number is provided in the available data, so consult that advisory for the precise fixed build rather than assuming one. If immediate patching is not possible, restrict who can create or update customers by tightening authentication and authorization on the customer-management API so untrusted or self-service actors cannot set usageAttribution values, and validate/allowlist those fields to safe character sets (e.g., alphanumeric subject keys) at the ingress layer - the trade-off is that overly strict validation may reject legitimate subject keys that contain special characters. As a defense-in-depth measure, run ClickHouse with a least-privilege account scoped only to the metering database and monitor for anomalous WITH map(...) query patterns; note this limits blast radius but does not close the injection itself.
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
OpenMeter is an open-source usage metering and billing platform that ingests event streams and aggregates them in ClickHouse, a columnar OLAP database. The vulnerable path is customer usage attribution: the usageAttribution.key and usageAttribution.subjectKeys values supplied when creating/updating a customer are persisted and, at query time, embedded into a dynamically built ClickHouse WITH map(...) common-table expression via raw string concatenation rather than parameterized/bound queries. This is a classic second-order injection - the untrusted value is stored safely-looking in one operation and only becomes dangerous when a separate meter or event query interpolates it into SQL. NVD assigns CWE-20 (Improper Input Validation) as the root-cause class, though the concrete manifestation is SQL injection (CWE-89); the CPE cpe:2.3:a:openmeter:openmeter:*:*:*:*:*:*:*:* confirms the application itself is the affected component.
Know when Openmeter 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:N/UI:N/VC:H/VI:L/VA:H/SC:H/SI:L/SA:H
Network-reachable and low-complexity, but storing the payload requires authenticated customer-write access (PR:L); injection into the separate ClickHouse backend justifies S:C with high confidentiality/availability and limited integrity impact.
Primary rating from Vendor (Kong).
CVSS VectorVendor: Kong
DescriptionCVE.org
OpenMeter contains a stored, or second-order, SQL injection vulnerability in the handling of customer usage-attribution values.
An attacker who can create or update a customer can store a malicious value in the usageAttribution.key or usageAttribution.subjectKeys fields. When that customer is subsequently used in a meter or event query, OpenMeter inserts the stored value into a ClickHouse WITH map(...) expression using string concatenation.
OpenMeter versions from v1.0.0-beta.218 through v1.0.0-beta.231 are affected.
Executive ViewAI
OpenMeter versions 1.0.0-beta.218 through 1.0.0-beta.231 contain a stored SQL injection vulnerability in the billing backend that allows authenticated actors with customer management privileges to inject payloads into the ClickHouse analytics database. Successful exploitation grants attackers read and manipulation access to usage telemetry and billing data, directly compromising revenue accuracy, financial controls, and compliance reporting.
No vendor-released patch identified at time of analysis. Interim mitigations: Enforce strict role-based access control restricting customer management to authenticated senior administrators; deploy database activity monitoring (DAM) on ClickHouse to detect and alert on anomalous queries; implement input validation and character restrictions on usageAttribution fields at application layer as defense-in-depth; establish daily automated backups of ClickHouse database with point-in-time recovery; restrict direct ClickHouse access to application service accounts only; conduct monthly billing data audits against external customer records until patch is available.
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-52725
GHSA-r49g-35qj-7264
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB