Description
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.
Published: 2026-08-04
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

OpenMeter stores customer usage attribution fields without proper sanitization, allowing a stored, second‑order SQL injection that is later executed when the customer data is used in a ClickHouse query. An attacker who can create or update a customer can embed malicious SQL in usageAttribution.key or usageAttribution.subjectKeys, which is concatenated into a ClickHouse WITH map expression. This flaw can lead to arbitrary SQL execution on the ClickHouse database, compromising confidentiality, integrity, and availability of the data.

Affected Systems

The affected product is OpenMeter from the openmeter:openmeter CNA. Versions v1.0.0-beta.218 through v1.0.0-beta.231 are vulnerable. No other versions or related modules are listed as affected.

Risk and Exploitability

The CVSS score of 9.3 marks the issue as critical, and the absence of an EPSS score does not diminish the high likelihood of exploitation in environments where customers can be created or updated. The flaw requires an authenticated user with privileges to modify customer records; once a malicious value is stored, the next query that references that customer triggers the injection. The vulnerability is not listed in CISA KEV, but its severity suggests proactive mitigation. Attackers can deploy the exploit without network exposure, making it a high‑risk internal threat.

Generated by OpenCVE AI on August 4, 2026 at 20:12 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Verify that your OpenMeter instance is not running a version from v1.0.0-beta.218 through v1.0.0-beta.231; if it is, check vendor advisories for an update and apply it as soon as it becomes available.
  • Apply input validation or sanitization to the usageAttribution.key and usageAttribution.subjectKeys fields, allowing only safe characters (e.g., alphanumeric and limited punctuation) before storing values.
  • Restrict the permissions of users who can create or update customer records to trusted administrators only, thereby limiting the scope of potential malicious input.

Generated by OpenCVE AI on August 4, 2026 at 20:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 10:45:00 +0000

Type Values Removed Values Added
First Time appeared Openmeter
Openmeter openmeter
Vendors & Products Openmeter
Openmeter openmeter

Tue, 04 Aug 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 04 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Stored Clickhouse SQL Injection Through Customer Usage Attribution
Weaknesses CWE-20
References
Metrics cvssV4_0

{'score': 9.3, 'vector': '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'}


Subscriptions

Openmeter Openmeter
cve-icon MITRE

Status: PUBLISHED

Assigner: Kong

Published:

Updated: 2026-08-04T17:45:57.502Z

Reserved: 2026-08-04T11:15:31.572Z

Link: CVE-2026-18801

cve-icon Vulnrichment

Updated: 2026-08-04T17:45:52.882Z

cve-icon NVD

Status : Received

Published: 2026-08-04T16:16:22.647

Modified: 2026-08-04T19:16:44.933

Link: CVE-2026-18801

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T10:19:49Z

Weaknesses
  • CWE-20

    Improper Input Validation