github.com/kcp-dev/kcp
Affected
- introduced
0, fixed0.28.3(semver)
Fixed versions
0.28.3
Fix
- Fixed version
0.28.3go get github.com/kcp-dev/[email protected]
Advisory
Also known as: GO-2025-3985
kcp is missing update validation allows arbitrary LogicalCluster status patches through initializingworkspaces Virtual Workspace
Impact
Because UPDATE validation is not being applied, it is possible for an actor with access to an instance of the initializingworkspaces virtual workspace to run arbitrary patches on the status field of LogicalCluster objects while the workspace is initializing.
This allows to add or remove any initializers as well as changing the phase of a LogicalCluster (to "Ready" for example).
As 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.
_Who is impacted?_
WorkspaceTypes with initializers that are inherited by other WorkspaceTypes.virtual/framework package to create their own virtualworkspaces if they are using UpdateFuncs in their custom storageWrappers.Details
The issue occurs because the rest.ValidateObjectUpdateFunc 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.
Patches
The problem has been patched in #3599 and is available in kcp 0.28.3 and higher.
Workarounds
initialize verb on WorkspaceType objects (see documentation for details).WorkspaceType objects.References
See the pull request (#3599).
Low Basis: The source's own band: LOW
0, fixed 0.28.3 (semver)0.28.3
0.28.3go get github.com/kcp-dev/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0