Kedacore KEDA operator token exposure enables namespace-to-cluster privilege escalation

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-77524?

CVE-2026-77524 is a vulnerability classified as Improper Privilege Management and Server-Side Request Forgery, affecting keda (affected versions: < 2.21.0). This vulnerability is rated Critical, with a CVSS score of 9.9. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

KEDA is a Kubernetes-based Event Driven Autoscaling component. In version 2.20.2 and earlier, a namespace administrator who can create TriggerAuthentication and ScaledObject resources can set hashiCorpVault.address to a tenant-controlled endpoint and select Kubernetes authentication without an explicit credential. KEDA then uses the operator pod's projected ServiceAccount token and sends it to that endpoint as a Vault login credential. The JWT-shape filter from the prior CVE-2025-68476 remediation accepts the operator token because its subject is a Kubernetes ServiceAccount, so the attacker can obtain the operator's cluster-wide permissions, including broad Secret reads and workload or admission-related operations. This vulnerability is fixed in 2.21.0.

Affected products and scope

  • The normalized record identifies KEDA v2 versions < 2.21.0 as affected; the vendor identifies 2.21.0 as the fixed release.
  • The vendor release note identifies Vault Kubernetes authentication configurations for review, including the operator token, an existing projected token, or credential.serviceAccountName.
  • Any TriggerAuthentication or ClusterTriggerAuthentication using boundServiceAccountToken, including integrations with Metrics API, Prometheus, Loki, Datadog Cluster Agent, and other token-authenticated receivers, is also within the documented exposure scope.
  • According to the vendor release note, configurations using ordinary Vault tokens, API keys, OAuth credentials, or another authentication method that does not use a bound ServiceAccount token are not affected by this configuration-specific scope.
  • The GitHub Advisory Database separately displays a legacy Go module entry for github.com/kedacore/keda through 1.5.0 with no patched version listed for that entry. The normalized record does not enumerate this legacy range, so deployments on that older module line require separate verification and should not be assumed to be fixed.

Technical details

Kedacore KEDA processes TriggerAuthentication and ScaledObject resources to configure scaler authentication. When HashiCorp Vault Kubernetes authentication is selected without an explicit credential, a namespace administrator can set hashiCorpVault.address to an endpoint controlled by the tenant. The operator then uses its projected ServiceAccount token and sends that token to the endpoint as a Vault login credential. The earlier JWT-shape filter only checks that the token resembles a JWT whose subject begins with system:serviceaccount:, so the operator's own token is accepted without verifying its intended audience or whether the tenant is entitled to use it. Exploitation requires an attacker-controlled principal with permission to create the relevant authentication and scaling resources, plus network reachability from the operator to the controlled endpoint. The supplied evidence does not establish the precise internal function or file responsible for the behavior.

Exploitability

The attack requires an authenticated principal that can create TriggerAuthentication and ScaledObject resources in the principal's namespace; the advisory also documents related ClusterTriggerAuthentication and bound ServiceAccount token configurations. The vulnerable interaction is network-based from the KEDA operator to a tenant-controlled endpoint, and no additional victim interaction is required. The normalized record characterizes the attack complexity as low. Public exploit material is available, and the vendor advisory contains a live reproduction showing the operator token being sent in a Vault login request. The available evidence does not identify a named campaign, victim, or compromised cluster.

Technical impact

The flaw changes the attacker's effective scope from a namespace to the KEDA operator identity across the cluster. The advisory states that this identity can broadly read Secrets and can create or delete batch/jobs and horizontalpodautoscalers, update */scale on workloads, modify validatingwebhookconfigurations, and update apiservices. These capabilities can expose credentials, alter or disrupt workloads, weaken admission control, and affect API aggregation routing. In some clusters, the ability to create workloads in namespaces permitted by Pod Security Admission or exempt from it may provide a path to deeper node or control-plane impact, but that outcome depends on deployment configuration and is not uniform across clusters.

Business impact

  • Tenant isolation can fail: namespace-scoped permissions may lead to use of an identity with cluster-wide authority.
  • The exposed identity may read Secrets across namespaces, increasing the risk of disclosure of credentials, tokens, and sensitive configuration.
  • The advisory identifies permissions to create or delete workloads and HPAs, update workload scaling, modify validating admission configuration, and change API aggregation.
  • Possible operational consequences include data exposure, workload tampering, service disruption, and weakened admission controls. Actual impact depends on the operator's RBAC, Pod Security Admission, and cluster network policy.

Remediation

  1. Upgrade KEDA v2 deployments to exactly 2.21.0, the fixed release identified by the vendor. Do not treat this as an open-ended fix for other release branches that have not been verified.
  2. During the upgrade, review the vendor migration guidance because the fix introduces explicit ServiceAccount token audience enforcement and Vault projection controls, and the release includes breaking changes.
  3. Until the upgrade is complete, reduce exposure by restricting tenant permissions to create or modify TriggerAuthentication, ClusterTriggerAuthentication, and ScaledObject resources, especially configurations that use ServiceAccount tokens or Vault Kubernetes authentication. This is containment, not a vendor-confirmed fix.
  4. Review configured hashiCorpVault.address values and remove tenant-controlled destinations where permitted by the deployment's security model.
  5. If telemetry indicates that an operator token was sent to an untrusted endpoint, treat the credential as potentially exposed and follow the cluster's credential incident-response process, including assessment of accessible Secrets and resources.

Detection

  1. Inventory KEDA deployments, images, charts, and modules, then compare them with the affected and fixed boundaries in affected_summary.
  2. Enumerate TriggerAuthentication and ClusterTriggerAuthentication resources and review hashiCorpVault.address, Kubernetes authentication, credential.serviceAccountName, boundServiceAccountToken, and other receivers that use ServiceAccount tokens.
  3. Inspect KEDA operator network telemetry for connections to tenant-controlled or otherwise unexpected Vault endpoints. Pay particular attention to Vault Kubernetes login requests, while avoiding collection or redistribution of token contents.
  4. Review Kubernetes audit logs for creation or modification of authentication and scaling resources, followed by activity from the operator ServiceAccount involving Secrets, workloads, admission configuration, or API aggregation.
  5. These are detection and precautionary monitoring checks; the absence of matching logs does not prove that a cluster is safe.
Sources (21)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.