CVE-2025-29922
JSON

9.6critical

kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through APIExport Virtual Workspace

Severity
9.6critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.72% (higher than 50% of CVEs)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-w2rr-38wv-8rrpGO-2025-3538

Description

kcp is a Kubernetes-like control plane for form-factors and use-cases beyond Kubernetes and container workloads. Prior to 0.26.3, the identified vulnerability allows creating or deleting an object via the APIExport VirtualWorkspace in any arbitrary target workspace for pre-existing resources. By design, this should only be allowed when the workspace owner decides to give access to an API provider by creating an APIBinding. With this vulnerability, it is possible for an attacker to create and delete objects even if none of these requirements are satisfied, i.e. even if there is no APIBinding in that workspace at all or the workspace owner has created an APIBinding, but rejected a permission claim. A fix for this issue has been identified and has been published with kcp 0.26.3 and 0.27.0.

Affected

Product or packageVersionsReported by
kcp-dev kcp< 0.26.3CVE List
github.com/kcp-dev/kcp (Go)before 0.26.3GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
GitHub9.6critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Classification

CWE-285

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

kcp is a Kubernetes-like control plane for form-factors and use-cases beyond Kubernetes and container workloads. Prior to 0.26.3, the identified vulnerability allows creating or deleting an object via the APIExport VirtualWorkspace in any arbitrary target workspace for pre-existing resources. By design, this should only be allowed when the workspace owner decides to give access to an API provider by creating an APIBinding. With this vulnerability, it is possible for an attacker to create and delete objects even if none of these requirements are satisfied, i.e. even if there is no APIBinding in that workspace at all or the workspace owner has created an APIBinding, but rejected a permission claim. A fix for this issue has been identified and has been published with kcp 0.26.3 and 0.27.0.

GitHub Advisory Database
Impact

The APIExport Virtual Workspace can be used to manage objects in workspaces that bind that APIExport for resources defined in the APIExport or specified and accepted via permission claims. This allows an API provider (via their APIExport) scoped down access to workspaces of API consumers to provide their services properly.

The identified vulnerability allows creating or deleting an object via the APIExport VirtualWorkspace in any arbitrary target workspace for pre-existing resources. By design, this should only be allowed when the workspace owner decides to give access to an API provider by creating an APIBinding.

With this vulnerability, it is possible for an attacker to create and delete objects even if none of these requirements are satisfied, i.e. even if there is no APIBinding in that workspace at all or the workspace owner has created an APIBinding, but rejected a permission claim.

Patches

A fix for this issue has been identified and has been published with kcp 0.26.3 and 0.27.0.

Workarounds

For users unable to upgrade to one of the patched versions, the following guidance can be given:

  • Minimise the set of people with apiexport/content sub-resource access to APIExport resources. Be aware that this has to apply to all workspaces to be effective.
  • Filter incoming requests in a reverse proxy with a similar logic as the authorizer added in the referenced pull request.
References

See pull request (https://github.com/kcp-dev/kcp/pull/3338).

Go Vulnerability Database

kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through APIExport Virtual Workspace in github.com/kcp-dev/kcp

NVD (es)

kcp es un plano de control similar a Kubernetes para formatos y casos de uso más allá de Kubernetes y cargas de trabajo de contenedores. Antes de la versión 0.26.3, la vulnerabilidad identificada permitía crear o eliminar un objeto mediante APIExport VirtualWorkspace en cualquier espacio de trabajo de destino arbitrario para recursos preexistentes. Por diseño, esto solo debería permitirse cuando el propietario del espacio de trabajo decide otorgar acceso a un proveedor de API mediante la creación de un APIBinding. Con esta vulnerabilidad, un atacante puede crear y eliminar objetos incluso si no se cumple ninguno de estos requisitos; es decir, incluso si no existe ningún APIBinding en ese espacio de trabajo o si el propietario del espacio de trabajo ha creado un APIBinding, pero ha rechazado una solicitud de permiso. Se ha identificado una solución para este problema y se ha publicado en kcp 0.26.3 y 0.27.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-29922 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-w2rr-38wv-8rrp changed 2025-03-25CC-BY-4.0
Go Vulnerability DatabaseGO-2025-3538 changed 2026-03-03CC-BY-4.0
NVDCVE-2025-29922 changed 2026-06-17Public domain