Skip to main content

koku-metrics-operator CVE-2026-18382

| EUVDEUVD-2026-51095 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-07-30 secalert@redhat.com GHSA-3f36-c5m8-4frw
6.8
CVSS 3.1 · Vendor: redhat
Share

Severity by source

Vendor (redhat) PRIMARY
6.8 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
vuln.today AI
6.8 MEDIUM

PR:H required to edit the CR; S:C because the operator acts as a confused deputy forwarding credentials the CR editor cannot access directly; no integrity or availability impact applies.

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Red Hat
6.8 MEDIUM
qualitative

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Analysis Generated
Jul 30, 2026 - 12:31 vuln.today

DescriptionCVE.org

A flaw was found in koku-metrics-operator. The operator's CostManagementMetricsConfig custom resource allows a user able to edit the CR to specify an arbitrary OAuth token endpoint. When authentication.type is set to service-account, the operator sends the tenant's Red Hat SSO client_id and client_secret to this user-controlled URL, allowing the attacker to obtain the credentials.

AnalysisAI

Credential exfiltration in koku-metrics-operator allows a privileged user with edit access to the CostManagementMetricsConfig custom resource to redirect the operator's OAuth token requests to an attacker-controlled endpoint, exposing the tenant's Red Hat SSO client_id and client_secret. The operator's service-account authentication mode unconditionally forwards these credentials to whatever OAuth token URL is configured in the CR, acting as a confused deputy on behalf of the CR editor. No public exploit code has been identified and the vulnerability is not listed in CISA KEV, but the CVSS Scope:Changed metric reflects that the operator process holds credentials inaccessible to the CR editor directly, amplifying impact beyond the initial access tier.

Technical ContextAI

koku-metrics-operator is a Kubernetes operator deployed in OpenShift clusters that reconciles the CostManagementMetricsConfig custom resource (CR) to facilitate cloud cost reporting through Red Hat's cost management service. When authentication.type is set to service-account, the operator implements OAuth client-credentials flow, constructing an HTTP POST to a configurable token endpoint and including the tenant's client_id and client_secret. CWE-918 (Server-Side Request Forgery) applies precisely here: the operator trusts a user-supplied URL embedded in the CR and makes outbound requests on behalf of the cluster, carrying secrets that the CR editor would not otherwise have direct access to. The absence of URL allowlisting or validation in the CR reconciliation loop is the root cause - the operator is weaponized as a credential-forwarding proxy by anyone who can write to the CR.

RemediationAI

The primary remediation is to apply the vendor-released patch from Red Hat once published; monitor https://access.redhat.com/security/cve/CVE-2026-18382 for the patched operator version and upgrade instructions, as no specific fix version was confirmed in the available intelligence. Until a patch is available, two compensating controls are recommended. First, audit and restrict Kubernetes RBAC immediately: run 'kubectl get rolebindings,clusterrolebindings -A -o yaml | grep CostManagementMetricsConfig' to enumerate who currently holds edit or patch rights on these CRs, and remove access from any non-admin principals - trade-off is potential disruption to delegated cost management workflows. Second, enforce network egress policy on the operator's pod namespace to permit outbound traffic only to known Red Hat SSO endpoints (e.g., sso.redhat.com), preventing the operator from reaching an attacker-controlled URL even if the CR is tampered - test thoroughly before production deployment, as overly broad egress blocks may disrupt legitimate cost-reporting telemetry.

Vendor StatusVendor

Share

CVE-2026-18382 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy