CVE-2026-18381 Details
Description
A flaw was found in the koku-metrics-operator for Red Hat OpenShift. The operator's CostManagementMetricsConfig custom resource allows a user able to edit the CR to specify an arbitrary upload URL. The operator attaches its own Kubernetes service-account bearer token to queries sent to this user-controlled URL, allowing the attacker to obtain the token.
A vulnerability exists in the Koku Metrics Operator for Red Hat OpenShift, specifically within the CostManagementMetricsConfig custom resource. This flaw allows users with permission to edit the custom resource to specify an arbitrary upload URL. The operator then sends PromQL queries to this user-controlled URL, attaching its own Kubernetes service account bearer token. This behavior enables an attacker to intercept the token, which carries the 'manager-role' ClusterRole, granting access to read all Secrets across the cluster.
To address this vulnerability, it is recommended to restrict the 'service_address' field to only allow in-cluster Prometheus or Thanos endpoints, using Custom Resource Definition (CRD) Common Expression Language (CEL) validation. Alternatively, a 'TokenRequest' API call can be made with the audience bound to 'prometheus-k8s' to ensure the token is not replayable against the Kubernetes API server.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 30, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/errata/RHSA-2026:81201 | [email protected] | |
| https://access.redhat.com/security/cve/CVE-2026-18381 | [email protected] | Vendor Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2509251 | [email protected] | Issue TrackingMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| redhat cost management metrics operator | All versions |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Oct 12, 2026 | CVE Modified | [email protected] |
| Aug 12, 2026 | Initial Analysis | [email protected] |
| Jul 30, 2026 | CVE Modified | CISA-ADP |
| Jul 30, 2026 | New CVE Received | [email protected] |