CVE-2022-46167
Capsule Kubernetes Namespace Deletion Vulnerability (Arbitrary Privilege Escalation)
Description
Capsule is a multi-tenancy and policy-based framework for Kubernetes. Prior to version 0.1.3, 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. Patches have been released for version 0.1.3. No known workarounds are available.
INFO
Published Date :
Dec. 2, 2022, 7:15 p.m.
Last Modified :
Nov. 7, 2023, 3:55 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2022-46167
.
URL | Resource |
---|---|
https://github.com/clastix/capsule/commit/1df430e71be8c4778c82eca3459978ad7d0b4b7b | Patch Third Party Advisory |
https://github.com/clastix/capsule/commit/75525ac19254b0c5111e34d7985e2be7bc8b1ac1 | Patch Third Party Advisory |
https://github.com/clastix/capsule/releases/tag/v0.1.3 | Patch Release Notes Third Party Advisory |
https://github.com/clastix/capsule/security/advisories/GHSA-x45c-cvp8-q4fm | Third Party Advisory |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2022-46167
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2022-46167
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Changed Description Capsule is a multi-tenancy and policy-based framework for Kubernetes. Prior to version 0.1.3, 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. Patches have been released for version 0.1.3. No known workarounds are available. Capsule is a multi-tenancy and policy-based framework for Kubernetes. Prior to version 0.1.3, 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. Patches have been released for version 0.1.3. No known workarounds are available. -
Initial Analysis by [email protected]
Dec. 06, 2022
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/clastix/capsule/commit/1df430e71be8c4778c82eca3459978ad7d0b4b7b No Types Assigned https://github.com/clastix/capsule/commit/1df430e71be8c4778c82eca3459978ad7d0b4b7b Patch, Third Party Advisory Changed Reference Type https://github.com/clastix/capsule/commit/75525ac19254b0c5111e34d7985e2be7bc8b1ac1 No Types Assigned https://github.com/clastix/capsule/commit/75525ac19254b0c5111e34d7985e2be7bc8b1ac1 Patch, Third Party Advisory Changed Reference Type https://github.com/clastix/capsule/releases/tag/v0.1.3 No Types Assigned https://github.com/clastix/capsule/releases/tag/v0.1.3 Patch, Release Notes, Third Party Advisory Changed Reference Type https://github.com/clastix/capsule/security/advisories/GHSA-x45c-cvp8-q4fm No Types Assigned https://github.com/clastix/capsule/security/advisories/GHSA-x45c-cvp8-q4fm Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:clastix:capsule:*:*:*:*:*:*:*:* versions up to (excluding) 0.1.3
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2022-46167
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2022-46167
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.14 }} 0.01%
score
0.49960
percentile