Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/kcp-dev/kcp
  4. ›
  5. GHSA-c7xh-gjv4-4jgv

GHSA-c7xh-gjv4-4jgv: kcp's impersonation allows access to global administrative groups

December 11, 2024 (updated December 12, 2024)

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.

References

  • github.com/advisories/GHSA-c7xh-gjv4-4jgv
  • github.com/kcp-dev/kcp
  • github.com/kcp-dev/kcp/commit/24ab5d4dc35ddff98a2e5fdc236e1681f03283ec
  • github.com/kcp-dev/kcp/pull/3206
  • github.com/kcp-dev/kcp/security/advisories/GHSA-c7xh-gjv4-4jgv
  • pkg.go.dev/vuln/GO-2024-3325

Code Behaviors & Features

Detect and mitigate GHSA-c7xh-gjv4-4jgv with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.26.1

Fixed versions

  • 0.26.1

Solution

Upgrade to version 0.26.1 or above.

Impact 6.4 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

go/github.com/kcp-dev/kcp/GHSA-c7xh-gjv4-4jgv.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:04 +0000.