CVE-2025-26521
Last modified
CVE-2025-26521 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.58% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Apache | Cloudstack | >= 4.17.0.0, < 4.19.3.0 |
| Apache | Cloudstack | >= 4.20.0.0, < 4.20.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-26521?
How severe is CVE-2025-26521?
How do I fix CVE-2025-26521?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-26515StorageGRID (formerly StorageGRID Webscale) versions prior …7.5
- CVE-2025-26516StorageGRID (formerly StorageGRID Webscale) versions prior …5.3
- CVE-2025-26517StorageGRID (formerly StorageGRID Webscale) versions prior …5.4
- CVE-2025-26519musl libc 0.9.13 through 1.2.5 before 1.2.6 has an out-of-bo…7
- CVE-2025-2652A vulnerability has been found in SourceCodester Employee an…7.5
- CVE-2025-26520Cacti through 1.2.29 allows SQL injection in the template fu…9.8
- CVE-2025-26522This vulnerability exists in RupeeWeb trading platform due t…7.5
- CVE-2025-26523This vulnerability exists in RupeeWeb trading platform due t…7.4
- CVE-2025-26524This vulnerability exists in RupeeWeb trading platform due t…5.1
- CVE-2025-26525Insufficient sanitizing in the TeX notation filter resulted …8.6
- CVE-2025-26526Separate Groups mode restrictions were not factored into per…6.5
- CVE-2025-26527Tags not expected to be visible to a user could still be dis…5.3
Are you affected by CVE-2025-26521?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
