{"id":"CVE-2022-46167","published":"2022-12-02T18:22:21Z","modified":"2025-04-23T16:32:56Z","title":"Capsule vulnerable to privilege escalation by ServiceAccount deployed in a Tenant Namespace","vendor":"clastix","product":"capsule","tier":"tail","description":{"text":"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.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00961,"percentile":0.62442,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/clastix/capsule/security/advisories/GHSA-x45c-cvp8-q4fm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/clastix/capsule/commit/1df430e71be8c4778c82eca3459978ad7d0b4b7b","tags":["x_refsource_MISC"]},{"url":"https://github.com/clastix/capsule/commit/75525ac19254b0c5111e34d7985e2be7bc8b1ac1","tags":["x_refsource_MISC"]},{"url":"https://github.com/clastix/capsule/releases/tag/v0.1.3","tags":["x_refsource_MISC"]}],"priority":{"score":18.6,"factors":[{"name":"EPSS percentile","points":12.49},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"clastix","affectedVersions":[{"vendor":"clastix","product":"capsule","versions":["< 0.1.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:46:12.013257Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/clastix/capsule","vulnerableRanges":["<0.1.3"],"patched":["0.1.3"],"from":["GHSA-x45c-cvp8-q4fm","GO-2022-1135"],"provenance":"source"}],"summary":{"text":"Capsule, a multi-tenancy and policy framework for Kubernetes, has an incorrect authorization flaw in versions before 0.1.3 that lets a ServiceAccount in a Tenant Namespace that has PATCH rights on its own Namespace edit it and remove the Owner Reference. An attacker holding such a ServiceAccount over the network with low privileges and no user interaction could detach the Namespace from its Tenant, strip the policy enforcement labels and Pod Security, Network Policy, Limit Range and Resource Quota controls, and then start privileged containers to escalate privileges within the cluster.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:33Z"},"euvd":{"id":"EUVD-2022-7769","exploited":false,"provenance":"source"}}