{"answers":{"affected":"3 open source packages ship an affected version, including github.com/clastix/capsule. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46167 in the wild and no public exploit code.","fix":"Upgrade github.com/clastix/capsule to 0.1.3 or later.","what":"CVE-2022-46167 is a high-severity vulnerability in clastix capsule, published on 2 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-46167 and fix it if it is affected.\n\nWhat it is: CVE-2022-46167 is a high-severity vulnerability in clastix capsule, published on 2 Dec 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-46167 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/clastix/capsule (Go): affected all versions; fixed in 0.1.3\n- github.com/clastix/capsule (Go): affected all versions; fixed in 0.1.3\n- github.com/clastix/capsule (Go): affected all versions; fixed in 0.1.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-46167/ (Markdown: https://insights.sbomify.com/CVE-2022-46167/index.md)","id":"CVE-2022-46167","markdown":"https://insights.sbomify.com/CVE-2022-46167/index.md","name":"CVE-2022-46167","record":{"aliases":["GHSA-x45c-cvp8-q4fm","GO-2022-1135"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Kubernetes multi-tenancy framework","requires_auth":"low_privilege","summary":"Attackers with specific namespace permissions can remove owner references to bypass security policies and escalate privileges within the Kubernetes cluster.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"capsule","vendor":"clastix"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Capsule vulnerable to privilege escalation by ServiceAccount deployed in a Tenant Namespace","id":"CVE-2022-46167","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2022"},"n_packages":3,"n_references":4,"next":{"headline":"Group SMTP user emails are exposed in CC email header","id":"CVE-2022-46168"},"packages":[{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/clastix/capsule","purl":null,"source":"GHSA-x45c-cvp8-q4fm"},{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/clastix/capsule","purl":"pkg:golang/github.com/clastix/capsule","source":"GHSA-x45c-cvp8-q4fm"},{"ecosystem":"Go","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"github.com/clastix/capsule","purl":"pkg:golang/github.com/clastix/capsule","source":"GO-2022-1135"}],"prev":{"headline":"Spring Boot Admins integrated notifier support allows arbitrary code execution","id":"CVE-2022-46166"},"products":["capsule"],"published":"2022-12-02","related":[{"cvss_score":4.3,"headline":"Service accounts can see namespaces of other tenants in capsule-proxy","id":"CVE-2023-46254","kev_date_added":null,"published":"2023-11-06"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-23","vendors":["clastix"]},"summary":"Attackers with specific namespace permissions can remove owner references to bypass security policies and escalate privileges within the Kubernetes cluster.","url":"https://insights.sbomify.com/CVE-2022-46167/"}