VDB
Sign up
HIGH8.8

GHSA-52gf-6rpq-fgmx

OpenChoreo: Cross-project command execution and wirelog view access via OpenChoreo openchoreo-api exec and wirelogs endpoints

Quick fix

GHSA-52gf-6rpq-fgmx — github.com/openchoreo/openchoreo: upgrade to the fixed version with the command below.

go get github.com/openchoreo/openchoreo@v1.2.3

Details

### Summary

The OpenChoreo API server (`openchoreo-api`) authorized requests to its exec and wirelogs endpoints against the project supplied by the caller in the request, rather than against the project that actually owns the target component. The target component was resolved by name only, and the authorization engine decided purely from the caller-supplied resource hierarchy — the component's real owning project was never checked. As a result, an authenticated user who holds a project-scoped exec or log-viewing grant on any single project could run commands in, and read the wirelogs of, components owned by other projects in the same namespace.

### Impact

An authenticated tenant holding a project-scoped `component:exec` grant on just one project can execute arbitrary commands — including an interactive shell — inside the running pods of components owned by any other project in the same namespace. This exposes those workloads' environment variables and mounted Secrets (such as database credentials, API keys, and tokens), allows tampering with the workload, and enables further pivoting using the workload's own network position and credentials. The same flaw in the wirelogs endpoint lets a project-scoped `wirelogs:view` grant read any component's wirelogs in the namespace.

The blast radius is every component in the namespace, reachable from a single legitimate project grant. The boundary crossed is project-within-namespace: the request still pins the namespace, so the issue does not cross namespace boundaries. In effect this is a cross-project (cross-team) remote command-execution and data-access primitive available to any low-privileged tenant.

### Patches

Fixed in **1.2.3** and **1.1.6**. The fix aligns the exec and wirelogs endpoints with the pattern already used by other first-class component operations: the target component is fetched first and authorization is evaluated against its real owning project (`comp.Spec.Owner.ProjectName`) instead of the caller-supplied `project` query parameter.

### Workarounds

If you cannot upgrade immediately:

- Restrict `component:exec` and `wirelogs:view` grants to trusted operators only. Any holder of such a grant on any project can reach every component in the same namespace. - Where stronger isolation is required, separate sensitive components into their own namespaces, since the flaw does not cross namespace boundaries.

### Related advisories

- `GHSA-rh53-xvx2-j327` — the cluster-gateway internal proxy applies no caller authorization, so this API-layer authorization bypass reaches the data-plane Kubernetes API with no compensating control: https://github.com/openchoreo/openchoreo/security/advisories/GHSA-rh53-xvx2-j327 - `GHSA-c5f6-2rm9-2w8g` — reported together as part of the same review.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/github.com/openchoreo/openchoreo
Introduced in: 1.2.0-m.1Fixed in: 1.2.3
Fixgo get github.com/openchoreo/openchoreo@v1.2.3
Go/github.com/openchoreo/openchoreo
Introduced in: 0Fixed in: 1.1.6
Fixgo get github.com/openchoreo/openchoreo@v1.1.6

References