GHSA-c534-2w9c-x7fm: Github.com/zxh326/kite Remote Code Execution Vulnerability

MODERATE
CVSS 6.5
CWE-647
Published
Advisory Summary

GHSA-c534-2w9c-x7fm is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions) affecting Github.com/zxh326/kite libraries in the Go ecosystem. The issue involves kite kubernetes proxy path traversal allows authenticated users to bypass rbac and read cluster-wide resources. Remediation is available by upgrading affected packages to version 0.14.1.

GHSA-c534-2w9c-x7fm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c534-2w9c-x7fm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions
Affected Product Github.com/zxh326/kite
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

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:U/C:H/I:N/A:N).

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

How to Fix GHSA-c534-2w9c-x7fm

To remediate this vulnerability, upgrade all affected Github.com/zxh326/kite 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/zxh326/kite fixed: 0.14.1
Upgrade github.com/zxh326/kite to 0.14.1
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/zxh326/kite

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c534-2w9c-x7fm, inspect your project dependencies for Github.com/zxh326/kite:

inspect dependencies for github.com/zxh326/kite

Analyze the terminal output to locate any version of Github.com/zxh326/kite in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.14.1), 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-647: Use of Non-Canonical URL Paths for Authorization Decisions, where the product defines policy namespaces and makes authorization decisions based on the assumption that a url is canonical. this can allow a non-canonical url to bypass the authorization. In Github.com/zxh326/kite, 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

## Summary Kite versions 0.6.9 through 0.14.0 authorize Kubernetes proxy requests against the pod or service identified by the original route parameters. Encoded path traversal segments can cause the upstream URL to resolve to a different Kubernetes API endpoint after authorization. ## Impact An authenticated user with `get` permission on pods or services in one namespace can cause Kite to issue GET requests to Kubernetes API endpoints outside that namespace using Kite's service account. With Kite's default Helm RBAC configuration, this allows cluster-wide resource disclosure, including Secrets. The validated impact is confidentiality only; resource modification and denial of service were not demonstrated. Deployments using a restricted Kite service account are affected only up to the permissions granted to that service account. ## Technical details The authorization check is performed against the original namespace and kind route parameters. The proxy path is subsequently decoded and passed to `url.JoinPath`, which resolves `..` segments and can produce an upstream URL outside the authorized pod or service proxy prefix. Two input locations were affected: 1. Encoded traversal segments in the proxy catch-all path. 2. Encoded traversal and slash characters in the resource name. ## Reproduction 1. Create a user with a role granting only `pods:get` in namespace `default`. 2. Create any pod in `default` (e.g. `nginx`). 3. Send the following request (auth cookie required): ```bash curl --path-as-is --cookie "auth_token=<JWT>" \ 'http://<kite-host>/api/v1/_clusters/<cluster>/namespaces/default/pods/nginx/proxy/%2e%2e/%2e%2e/%2e%2e/%2e%2e/kube-system/secrets' ``` ## Patches Fixed in Kite 0.14.1. - https://github.com/kite-org/kite/releases/tag/v0.14.1 ## Workarounds Upgrade to 0.14.1 or later. If upgrading is temporarily impossible, reject encoded dot segments and encoded slashes at the reverse proxy and restrict Kite's Kubernetes service account permissions. Reverse-proxy normalization should not be treated as a permanent fix.

GHSA-c534-2w9c-x7fm Affected Github.com/zxh326/kite Versions

1 component(s)
Fixed Versions:
0.14.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zxh326/kite
Go
≥ 0.6.9
< 0.14.1
0.14.1

References

Frequently Asked Questions

What is GHSA-c534-2w9c-x7fm?
GHSA-c534-2w9c-x7fm is a security vulnerability in Github.com/zxh326/kite involving Kite Kubernetes proxy path traversal allows authenticated users to bypass RBAC and read cluster-wide resources under CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions.
Which Github.com/zxh326/kite versions are affected?
Affected versions include releases prior to 0.14.1 across affected packages: github.com/zxh326/kite.
What version fixes GHSA-c534-2w9c-x7fm?
Upgrading to 0.14.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/zxh326/kite affected?
Yes, github.com/zxh326/kite is affected in releases prior to 0.14.1. Upgrade your dependency to 0.14.1 or later.
What is the CVSS score of GHSA-c534-2w9c-x7fm?
GHSA-c534-2w9c-x7fm has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with GHSA-c534-2w9c-x7fm?
GHSA-c534-2w9c-x7fm is classified under CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions (The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical. This can allow a non-canonical URL to bypass the authorization.).
How can I check Go dependencies for GHSA-c534-2w9c-x7fm?
Run the dependency tree command: 'inspect dependencies for github.com/zxh326/kite'. 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-c534-2w9c-x7fm",
  "modified" : "2026-07-24T21:47:17Z",
  "published" : "2026-07-24T21:47:16Z",
  "aliases" : [ ],
  "summary" : "Kite Kubernetes proxy path traversal allows authenticated users to bypass RBAC and read cluster-wide resources",
  "details" : "## Summary\n\nKite versions 0.6.9 through 0.14.0 authorize Kubernetes proxy requests against the pod or service identified by the original route parameters. Encoded path traversal segments can cause the upstream URL to resolve to a different Kubernetes API endpoint after authorization.\n\n## Impact\n\nAn authenticated user with `get` permission on pods or services in one namespace can cause Kite to issue GET requests to Kubernetes API endpoints outside that namespace using Kite's service account.\n\nWith Kite's default Helm RBAC configuration, this allows cluster-wide resource disclosure, including Secrets. The validated impact is confidentiality only; resource modification and denial of service were not demonstrated.\n\nDeployments using a restricted Kite service account are affected only up to the permissions granted to that service account.\n\n## Technical details\n\nThe authorization check is performed against the original namespace and kind route parameters. The proxy path is subsequently decoded and passed to `url.JoinPath`, which resolves `..` segments and can produce an upstream URL outside the authorized pod or service proxy prefix.\n\nTwo input locations were affected:\n\n1. Encoded traversal segments in the proxy catch-all path.\n2. Encoded traversal and slash characters in the resource name.\n\n## Reproduction\n\n\n1. Create a user with a role granting only `pods:get` in namespace `default`.\n2. Create any pod in `default` (e.g. `nginx`).\n3. Send the following request (auth cookie required):\n\n```bash\ncurl --path-as-is --cookie \"auth_token=<JWT>\" \\\n  'http://<kite-host>/api/v1/_clusters/<cluster>/namespaces/default/pods/nginx/proxy/%2e%2e/%2e%2e/%2e%2e/%2e%2e/kube-system/secrets'\n```\n\n## Patches\n\nFixed in Kite 0.14.1.\n\n- https://github.com/kite-org/kite/releases/tag/v0.14.1\n\n## Workarounds\n\nUpgrade to 0.14.1 or later.\n\nIf upgrading is temporarily impossible, reject encoded dot segments and encoded slashes at the reverse proxy and restrict Kite's Kubernetes service account permissions. Reverse-proxy normalization should not be treated as a permanent fix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zxh326/kite"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.6.9"
      }, {
        "fixed" : "0.14.1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 0.14.0"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/kite-org/kite/security/advisories/GHSA-c534-2w9c-x7fm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kite-org/kite/pull/638"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kite-org/kite/commit/08116eed557f8d6982cc83af0b02991e0f3577d5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kite-org/kite/commit/69ad938937af8f375a2e183d1a331926ab851d98"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/kite-org/kite"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/kite-org/kite/releases/tag/v0.14.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-647" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-24T21:47:16Z",
    "nvd_published_at" : null
  }
}