{"id":"GHSA-q6hv-wcjr-wp8h","aliases":["GO-2025-3985"],"url":"https://o3.security/vulnerability/GHSA-q6hv-wcjr-wp8h","summary":"kcp is missing update validation allows arbitrary LogicalCluster status patches through initializingworkspaces Virtual Workspace","details":"### Impact\n\nBecause UPDATE validation is not being applied, it is possible for an actor with access to an instance of the [initializingworkspaces virtual workspace](https://docs.kcp.io/kcp/latest/concepts/workspaces/workspace-initialization/) to run arbitrary patches on the status field of `LogicalCluster` objects while the workspace is initializing.\n\nThis allows to add or remove any initializers as well as changing the phase of a `LogicalCluster` (to \"Ready\" for example).\n\nAs this effectively allows to skip certain initializers or the entire initialization phase, potential integrations with external systems such as billing or security could be affected. Their initializers could be skipped by a `WorkspaceType` that adds another initializer and grants permissions to the virtual workspace to a rogue or compromised entity.\n\n_Who is impacted?_\n\n* Impacts other owners of `WorkspaceTypes` with initializers that are inherited by other `WorkspaceTypes`.\n* Impacts developers using the `virtual/framework` package to create their own virtualworkspaces if they are using UpdateFuncs in their custom storageWrappers.\n\n### Details\n\nThe issue occurs because the [rest.ValidateObjectUpdateFunc](https://github.com/kcp-dev/kcp/blob/cli/v0.28.1/pkg/virtual/framework/forwardingregistry/store.go#L174) is not being called within the DefaultDynamicDelegatedStoreFuncs. As a result, the intended status overwrite protection from initializers never gets called, allowing arbitrary logicalcluster status patches.\n\n### Patches\n\nThe problem has been patched in #3599 and is available in kcp 0.28.3 and higher.\n\n### Workarounds\n\n- Further limit access to the `initialize` verb on `WorkspaceType` objects (see [documentation](https://docs.kcp.io/kcp/v0.28/concepts/workspaces/workspace-initialization/#enforcing-permissions-for-initializers) for details).\n- Only use trusted `WorkspaceType` objects.\n\n### References\n\nSee the pull request (#3599).","published":"2025-09-26T15:00:19Z","modified":"2025-10-23T20:15:01Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/kcp-dev/kcp","fixedVersion":"0.28.3"}],"fix":{"url":"https://github.com/kcp-dev/kcp/pull/3599","label":"kcp-dev/kcp#3599"},"references":[{"type":"WEB","url":"https://github.com/kcp-dev/kcp/security/advisories/GHSA-q6hv-wcjr-wp8h"},{"type":"WEB","url":"https://github.com/kcp-dev/kcp/pull/3599"},{"type":"WEB","url":"https://github.com/kcp-dev/kcp/commit/02134a2a51d33652ab288cccd7a13539b59c7584"},{"type":"PACKAGE","url":"https://github.com/kcp-dev/kcp"},{"type":"WEB","url":"https://github.com/kcp-dev/kcp/releases/tag/v0.28.3"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2025-3985"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2025-10-23T20:15:01Z"}}