GHSA-w2rr-38wv-8rrp

Suggest an improvement
Source
https://github.com/advisories/GHSA-w2rr-38wv-8rrp
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-w2rr-38wv-8rrp/GHSA-w2rr-38wv-8rrp.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w2rr-38wv-8rrp
Aliases
Published
2025-03-20T18:49:06Z
Modified
2025-03-25T20:22:07.507783Z
Severity
  • 9.6 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through APIExport Virtual Workspace
Details

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).

Database specific
{
    "nvd_published_at": "2025-03-20T18:15:19Z",
    "cwe_ids": [
        "CWE-285"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2025-03-20T18:49:06Z"
}
References

Affected packages

Go / github.com/kcp-dev/kcp

Package

Name
github.com/kcp-dev/kcp
View open source insights on deps.dev
Purl
pkg:golang/github.com/kcp-dev/kcp

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.26.3