Home
Trends
Vulnerabilities
News
Researchers
Why dbugs?

Maxfedotov

#30023of 53,630
8.8Total CVSS
Vulnerabilities · 1
PT-2022-27782
8.8
2022-12-02
Capsule · Capsule · CVE-2022-46167
**Name of the Vulnerable Software and Affected Versions** Capsule versions prior to 0.1.3 **Description** Capsule is a multi-tenancy and policy-based framework for Kubernetes. A ServiceAccount deployed in a Tenant Namespace, when granted with `PATCH` capabilities on its own Namespace, is able to edit it and remove the Owner Reference, breaking the reconciliation of the Capsule Operator and removing all the enforcement like Pod Security annotations, Network Policies, Limit Range and Resource Quota items. An attacker could detach the Namespace from a Tenant that is forbidding starting privileged Pods using the Pod Security labels by removing the OwnerReference, removing the enforcement labels, and being able to start privileged containers that would be able to start a generic Kubernetes privilege escalation. **Recommendations** For versions prior to 0.1.3, upgrade to version 0.1.3 to resolve the issue. As a temporary workaround, consider restricting the `PATCH` capabilities on the Namespace for the ServiceAccount deployed in the Tenant Namespace until the upgrade is applied. Additionally, restrict access to the vulnerable `OwnerReference` and enforcement labels, such as Pod Security annotations, Network Policies, Limit Range, and Resource Quota items, to minimize the risk of exploitation.