6.4medium
kcp's impersonation allows access to global administrative groups
- Severity
- 6.4medium CVSS:3.1 by GitHub
- Published
- Last changed
- Also known as
- GO-2024-3325
Description
Impact
Impersonation is a feature of the Kubernetes API, allowing to override user information. As downstream project, kcp inherits this feature. As per the linked documentation a specific level of privilege (usually assigned to cluster admins) is required for impersonation.
The vulnerability in kcp affects kcp installations in which users are granted the cluster-admin ClusterRole (or comparably high permission levels that grant impersonation access; the verb in question is impersonate) within their respective workspaces. As kcp builds around self-service confined within workspaces, most installations would likely grant such workspace access to their users. Such users can impersonate special global administrative groups, which circumvent parts of the authorizer chains, e.g. maximal permission policies.
Patches
The problem has been patched in #3206 and is available in kcp 0.26.1 and higher.
Workarounds
- Not assigning the
cluster-adminrole (or any other role granting blanket impersonation permissions) to users. - A reverse proxy between users and kcp to check for the
Impersonate-Groupheader and reject requests that impersonate global administrative groups.
References
See the pull request (#3206).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| github.com/kcp-dev/kcp (Go) | before 0.26.1 | GitHub Advisory Database, Go Vulnerability Database |
Classification
What each source says
GitHub Advisory Database
Impact
Impersonation is a feature of the Kubernetes API, allowing to override user information. As downstream project, kcp inherits this feature. As per the linked documentation a specific level of privilege (usually assigned to cluster admins) is required for impersonation.
The vulnerability in kcp affects kcp installations in which users are granted the cluster-admin ClusterRole (or comparably high permission levels that grant impersonation access; the verb in question is impersonate) within their respective workspaces. As kcp builds around self-service confined within workspaces, most installations would likely grant such workspace access to their users. Such users can impersonate special global administrative groups, which circumvent parts of the authorizer chains, e.g. maximal permission policies.
Patches
The problem has been patched in #3206 and is available in kcp 0.26.1 and higher.
Workarounds
- Not assigning the
cluster-adminrole (or any other role granting blanket impersonation permissions) to users. - A reverse proxy between users and kcp to check for the
Impersonate-Groupheader and reject requests that impersonate global administrative groups.
References
See the pull request (#3206).
Go Vulnerability Database
kcp's impersonation allows access to global administrative groups in github.com/kcp-dev/kcp
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-c7xh-gjv4-4jgv changed 2024-12-12 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3325 changed 2026-03-03 | CC-BY-4.0 |