{"id":"CVE-2023-46254","published":"2023-11-06T18:34:13Z","modified":"2024-08-02T20:37:40Z","title":"Service accounts can see namespaces of other tenants in capsule-proxy","vendor":"projectcapsule","product":"capsule-proxy","tier":"tail","description":{"text":"capsule-proxy is a reverse proxy for Capsule kubernetes multi-tenancy framework. A bug in the RoleBinding reflector used by `capsule-proxy` gives ServiceAccount tenant owners the right to list Namespaces of other tenants backed by the same owner kind and name. For example consider two tenants `solar` and `wind`. Tenant `solar`, owned by a ServiceAccount named `tenant-owner` in the Namespace `solar`. Tenant `wind`, owned by a ServiceAccount named `tenant-owner` in the Namespace `wind`. The Tenant owner `solar` would be able to list the namespaces of the Tenant `wind` and vice-versa, although this is not correct. The bug introduces an exfiltration vulnerability since allows the listing of Namespace resources of other Tenants, although just in some specific conditions: 1. `capsule-proxy` runs with the `--disable-caching=false` (default value: `false`) and 2. Tenant owners are ServiceAccount, with the same resource name, but in different Namespaces. This vulnerability doesn't allow any privilege escalation on the outer tenant Namespace-scoped resources, since the Kubernetes RBAC is enforcing this. This issue has been addressed in version 0.4.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.005,"percentile":0.43142,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/projectcapsule/capsule-proxy/security/advisories/GHSA-6758-979h-249x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/projectcapsule/capsule-proxy/commit/615202f7b02eaec7681336bd63daed1f39ae00c5","tags":["x_refsource_MISC"]}],"priority":{"score":11.6,"factors":[{"name":"EPSS percentile","points":8.63},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"projectcapsule","affectedVersions":[{"vendor":"projectcapsule","product":"capsule-proxy","versions":["< 0.4.5"]}],"affected":[{"ecosystem":"Go","package":"github.com/projectcapsule/capsule","vulnerableRanges":["<0.4.5"],"patched":["0.4.5"],"from":["GHSA-6758-979h-249x"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/projectcapsule/capsule-proxy","vulnerableRanges":["<0.4.5"],"patched":["0.4.5"],"from":["GHSA-6758-979h-249x"],"provenance":"source"}],"euvd":{"id":"EUVD-2023-2895","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-46254","published":"2023-11-06","fixed":"0.4.5","kev":false},{"cve":"CVE-2023-48312","published":"2023-11-24","fixed":"0.4.6","kev":false,"link":{"from":"CVE-2023-46254","to":"CVE-2023-48312","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/projectcapsule/capsule-proxy","fromFixed":"0.4.5","toFixed":"0.4.6","daysApart":18},{"kind":"similar","provenance":"machine","score":0.27,"basis":"same product + description similarity"}]}}],"package":"Go:github.com/projectcapsule/capsule-proxy"}}