Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-26521: CWE-200 Exposure of Sensitive Information to an Unauthorized Actor in Apache Software Foundation Apache CloudStack

0
High
VulnerabilityCVE-2025-26521cvecve-2025-26521cwe-200
Published: Tue Jun 10 2025 (06/10/2025, 23:08:48 UTC)
Source: CVE Database V5
Vendor/Project: Apache Software Foundation
Product: Apache CloudStack

Description

When an Apache CloudStack user-account creates a CKS-based Kubernetes cluster in a project, the API key and the secret key of the 'kubeadmin' user of the caller account are used to create the secret config in the CKS-based Kubernetes cluster. A member of the project who can access the CKS-based Kubernetes cluster, can also access the API key and secret key of the 'kubeadmin' user of the CKS cluster's creator's account. An attacker who's a member of the project can exploit this to impersonate and perform privileged actions that can result in complete compromise of the confidentiality, integrity, and availability of resources owned by the creator's account. CKS users are recommended to upgrade to version 4.19.3.0 or 4.20.1.0, which fixes this issue.Updating Existing Kubernetes Clusters in ProjectsA service account should be created for each project to provide limited access specifically for Kubernetes cluster providers and autoscaling. Follow the steps below to create a new service account, update the secret inside the cluster, and regenerate existing API and service keys:1. Create a New Service AccountCreate a new account using the role "Project Kubernetes Service Role" with the following details: Account Name kubeadmin-<FIRST_EIGHT_CHARACTERS_OF_PROJECT_ID> First Name Kubernetes Last Name Service User Account Type 0 (Normal User) Role ID <ID_OF_SERVICE_ROLE> 2. Add the Service Account to the ProjectAdd this account to the project where the Kubernetes cluster(s) are hosted. 3. Generate API and Secret KeysGenerate API Key and Secret Key for the default user of this account. 4. Update the CloudStack Secret in the Kubernetes ClusterCreate a temporary file `/tmp/cloud-config` with the following data:    api-url = <API_URL>     # For example: <MS_URL>/client/api   api-key = <SERVICE_USER_API_KEY>   secret-key = <SERVICE_USER_SECRET_KEY>   project-id = <PROJECT_ID> Delete the existing secret using kubectl and Kubernetes cluster config:    ./kubectl --kubeconfig kube.conf -n kube-system delete secret cloudstack-secret Create a new secret using kubectl and Kubernetes cluster config:     ./kubectl --kubeconfig kube.conf -n kube-system create secret generic cloudstack-secret --from-file=/tmp/cloud-config Remove the temporary file:     rm /tmp/cloud-config5. Regenerate API and Secret KeysRegenerate the API and secret keys for the original user account that was used to create the Kubernetes cluster.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 01:21:11 UTC

Technical Analysis

CVE-2025-26521 is a vulnerability classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor) affecting Apache CloudStack, specifically versions 4.17.0.0 to 4.20.0.0. The issue arises when a user-account creates a CKS-based Kubernetes cluster within a project: the API key and secret key of the 'kubeadmin' user associated with the creator's account are embedded into the Kubernetes cluster's secret configuration. Because project members who have access to the Kubernetes cluster can retrieve this secret, they gain access to the creator's API credentials. This exposure enables an attacker with project membership to impersonate the cluster creator, allowing them to perform privileged operations that can compromise the confidentiality, integrity, and availability of the creator's cloud resources. The vulnerability does not require user interaction but does require the attacker to have project membership and access to the Kubernetes cluster. Apache has addressed this issue in versions 4.19.3.0 and 4.20.1.0 by recommending the use of dedicated service accounts with limited permissions for Kubernetes cluster operations. The mitigation process involves creating a new service account with the 'Project Kubernetes Service Role', adding it to the project, generating new API and secret keys for this account, updating the Kubernetes cluster secret to use these credentials, and regenerating the original user's API keys to invalidate the exposed credentials. This approach limits the scope of credentials exposed within the Kubernetes cluster and reduces the risk of privilege escalation or lateral movement within the cloud environment.

Potential Impact

The vulnerability allows unauthorized project members to access sensitive API credentials of the cluster creator, enabling them to impersonate the creator and perform privileged actions. This can lead to a complete compromise of the confidentiality, integrity, and availability of cloud resources owned by the creator's account. Potential impacts include unauthorized data access or exfiltration, modification or deletion of cloud resources, disruption of services, and lateral movement within the cloud infrastructure. Organizations using affected versions of Apache CloudStack in multi-tenant or collaborative project environments face significant risks, especially if project membership is not tightly controlled. The ease of exploitation is moderate since the attacker must have project membership and Kubernetes cluster access, but no user interaction is required. The scope is limited to projects using CKS-based Kubernetes clusters within the affected CloudStack versions, but given CloudStack's use in private and public clouds, the impact can be substantial in environments with multiple users and projects.

Mitigation Recommendations

1. Upgrade Apache CloudStack to versions 4.19.3.0 or 4.20.1.0 where the vulnerability is fixed. 2. Implement the recommended service account model: create a dedicated service account with the 'Project Kubernetes Service Role' for Kubernetes cluster management, limiting permissions to only what is necessary. 3. Add the service account to the relevant project and generate new API and secret keys for it. 4. Update the Kubernetes cluster secret to use the new service account credentials by deleting the existing 'cloudstack-secret' and creating a new one with the updated keys. 5. Regenerate the original user's API and secret keys to invalidate any exposed credentials. 6. Review project membership and Kubernetes cluster access controls to ensure only authorized users have access. 7. Monitor API key usage and audit logs for suspicious activity related to Kubernetes clusters and project resources. 8. Educate administrators and users about the risks of credential exposure within shared projects and enforce the principle of least privilege for all accounts. These steps go beyond generic patching by restructuring credential management and access control to minimize future exposure risks.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
apache
Date Reserved
2025-02-12T09:12:55.769Z
Cvss Version
null
State
PUBLISHED

Threat ID: 6848bbe13cd93dcca83127a4

Added to database: 6/10/2025, 11:12:33 PM

Last enriched: 2/27/2026, 1:21:11 AM

Last updated: 3/24/2026, 7:05:38 PM

Views: 99

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses