
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-68476 is an Arbitrary File Read vulnerability in KEDA (Kubernetes-based Event Driven Autoscaling) affecting resources that use TriggerAuthentication to configure HashiCorp Vault authentication. The vulnerability was disclosed on December 22, 2025, and affects KEDA Operator versions ≤2.17.2 and ≤2.18.2, as well as Metrics Server versions <2.9.0. It carries a CVSS v3.1 base score of 7.7 (High) and a CVSS v4.0 base score of 8.2 (High) (GitHub Advisory, Microsoft MSRC).
The root cause is insufficient path validation (CWE-22: Path Traversal; CWE-863: Incorrect Authorization) in the hashicorpvault_handler.go file within KEDA's scaling resolver. Specifically, the spec.hashiCorpVault.credential.serviceAccount field in a TriggerAuthentication resource was passed directly to os.ReadFile() without validating that the path pointed to a legitimate Kubernetes service account token. An attacker with permissions to create or modify a TriggerAuthentication resource could supply an arbitrary filesystem path (e.g., /etc/passwd, /etc/shadow, or any secret file accessible to the KEDA pod) as the serviceAccount value, causing KEDA to read and transmit the file's contents to an attacker-controlled Vault server as part of the authentication request. The fix introduced a new readKubernetesServiceAccountProjectedToken() function that validates the file content is a valid Kubernetes JWT service account token (with a system:serviceaccount: subject prefix) before use (GitHub Advisory, Patch Commit).
Successful exploitation allows an authenticated attacker to exfiltrate the contents of any file readable by the KEDA operator pod on the Kubernetes node's filesystem. Sensitive data at risk includes Kubernetes secrets, service account tokens, TLS private keys, cloud provider credentials, and system files such as /etc/passwd. Because the KEDA operator typically runs with elevated privileges in a cluster, the scope of readable files can be broad, potentially enabling lateral movement or privilege escalation within the Kubernetes environment (GitHub Advisory).
kubectl get deploy keda-operator -n keda -o jsonpath="{.spec.template.spec.containers[0].image}".create or update permissions on TriggerAuthentication resources in any namespace (e.g., via a compromised developer account or misconfigured RBAC).TriggerAuthentication manifest specifying spec.hashiCorpVault.credential.serviceAccount with the target file path (e.g., /etc/shadow, /var/run/secrets/kubernetes.io/serviceaccount/token, or any sensitive file on the node) and point spec.hashiCorpVault.address to the attacker-controlled server.TriggerAuthentication to the cluster using kubectl apply -f malicious-triggerauth.yaml.create or update events on TriggerAuthentication resources by unexpected or low-privileged users, especially with spec.hashiCorpVault.credential.serviceAccount set to paths outside /var/run/secrets/kubernetes.io/serviceaccount/.TriggerAuthentication resources in the cluster with serviceAccount fields pointing to arbitrary filesystem paths (e.g., /etc/passwd, /etc/shadow, /proc/, or other sensitive locations) — auditable via kubectl get triggerauthentication -A -o yaml | grep serviceAccount.Upgrade KEDA Operator to version 2.17.3 or 2.18.3 (or any version ≥2.19.0), and Metrics Server to version ≥2.9.0, which contain the fix that validates service account token paths before reading (GitHub Advisory). For Microsoft Azure deployments, patched packages are available as cbl2_keda_2.4.0-30 and azl3_keda_2.14.1-7 (Microsoft MSRC). As a workaround if immediate upgrade is not possible, strictly restrict Kubernetes RBAC so that only trusted administrators have create or update permissions on TriggerAuthentication resources. Additionally, audit all existing TriggerAuthentication configurations for suspicious serviceAccount path values.
Red Hat acknowledged the vulnerability and published a security advisory tracking it (Red Hat CVE). The vulnerability was also picked up by GitLab's advisory database and INCIBE-CERT. Community discussion has been limited, with no major media coverage or notable researcher commentary beyond standard CVE tracking and aggregation sites.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."