CVE-2025-29922: Github.com/kcp dev/kcp Kcp Allows Unauthorized Creation And Vulnerability

CRITICAL
Advisory Identifier: GHSA-w2rr-38wv-8rrp
CVSS 9.6
CWE-285
Published
Advisory Summary

CVE-2025-29922 is a CRITICAL (CVSS 9.6) kcp allows unauthorized creation and vulnerability (CWE-285: Improper Authorization) affecting Github.com/kcp dev/kcp libraries in the Go ecosystem. The issue involves kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through apiexport virtual workspace. Remediation is available by upgrading affected packages to version 0.26.3.

CVE-2025-29922 at a Glance

CVE Identifier CVE-2025-29922
GHSA Identifier GHSA-w2rr-38wv-8rrp
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-285: Improper Authorization
Affected Product Github.com/kcp dev/kcp
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-29922

To remediate this vulnerability, upgrade all affected Github.com/kcp dev/kcp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/kcp-dev/kcp fixed: 0.26.3
Upgrade github.com/kcp-dev/kcp to 0.26.3
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/kcp-dev/kcp

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-29922, inspect your project dependencies for Github.com/kcp dev/kcp:

inspect dependencies for github.com/kcp-dev/kcp

Analyze the terminal output to locate any version of Github.com/kcp dev/kcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.26.3), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-285: Improper Authorization, where the product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action. In Github.com/kcp dev/kcp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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

CVE-2025-29922 Affected Github.com/kcp dev/kcp Versions

1 component(s)
Fixed Versions:
0.26.3
Product / Package Ecosystem Affected Versions Fixed Version
github.com/kcp-dev/kcp
Go
< 0.26.3
0.26.3

References

Frequently Asked Questions

What is CVE-2025-29922?
CVE-2025-29922 is a security vulnerability in Github.com/kcp dev/kcp involving kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through APIExport Virtual Workspace under CWE-285: Improper Authorization.
Which Github.com/kcp dev/kcp versions are affected?
Affected versions include releases prior to 0.26.3 across affected packages: github.com/kcp-dev/kcp.
What version fixes CVE-2025-29922?
Upgrading to 0.26.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/kcp-dev/kcp affected?
Yes, github.com/kcp-dev/kcp is affected in releases prior to 0.26.3. Upgrade your dependency to 0.26.3 or later.
What is the CVSS score of CVE-2025-29922?
CVE-2025-29922 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2025-29922?
CVE-2025-29922 is classified under CWE-285: Improper Authorization (The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2025-29922?
Run the dependency tree command: 'inspect dependencies for github.com/kcp-dev/kcp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-w2rr-38wv-8rrp",
  "modified" : "2025-03-20T18:49:06Z",
  "published" : "2025-03-20T18:49:06Z",
  "aliases" : [ "CVE-2025-29922" ],
  "summary" : "kcp allows unauthorized creation and deletion of objects in arbitrary workspaces through APIExport Virtual Workspace",
  "details" : "### Impact\n\nThe `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.\n\nThe 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.\n\nWith 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.\n\n### Patches\n\nA fix for this issue has been identified and has been published with kcp 0.26.3 and 0.27.0.\n\n### Workarounds\n\nFor users unable to upgrade to one of the patched versions, the following guidance can be given:\n\n- 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.\n- Filter incoming requests in a reverse proxy with a similar logic as the authorizer added in the referenced pull request.\n\n### References\n\nSee pull request (https://github.com/kcp-dev/kcp/pull/3338).",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/kcp-dev/kcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.26.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kcp-dev/kcp/security/advisories/GHSA-w2rr-38wv-8rrp"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-29922"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kcp-dev/kcp/pull/3338"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kcp-dev/kcp/commit/614ecbf35f11db00f65391ab6fbb1547ca8b5d38"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kcp-dev/kcp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-285" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-20T18:49:06Z",
    "nvd_published_at" : "2025-03-20T18:15:19Z"
  }
}