🛡️ GHSA-c7xh-gjv4-4jgv — kcp
Description
kcp's impersonation allows access to global administrative groups
Impact
[Impersonation](https://kubernetes.io/docs/reference/access-authn-authz/authentication/#user-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](https://docs.kcp.io/kcp/v0.26/concepts/apis/exporting-apis/#maximal-permission-policy).
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).
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
GHSA-c7xh-gjv4-4jgv is classified as CWE-285: Improper Authorization. A request is carried out without confirming that the caller is permitted to perform it on that specific resource.
Affected software
GHSA-c7xh-gjv4-4jgv is recorded against 1 package.
- github.com/kcp-dev/kcp
Timeline and source
Published on 11 December 2024 and last revised on 12 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
github.com (Web)
github.com (Web)
github.com (Web)
github.com (Package)
pkg.go.dev (Web)
Details
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| github.com/kcp-dev/kcp | — | — |
References
Similar Threats
- High CVE-2026-39429
- Unknown GO-2025-3985
- Low GHSA-q6hv-wcjr-wp8h
- Critical CVE-2025-29922
- Unknown GO-2024-3325
Free Vulnerability Check
Is your site affected by GHSA-c7xh-gjv4-4jgv?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against GHSA-c7xh-gjv4-4jgv and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.