/

CVE-2026-127073

Severity:

CRITICAL RISK

(9.9)

Improper Privilege Management (CWE-269) in BuildPiper

CVE-2026-127073

Deferred

Vulnerability type

Category:

Privilege Escalation

CWE:

CWE-269

Impact:

Kubernetes Cluster-Admin Privilege Escalation

Severity:

CRITICAL RISK

(9.9)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

OpsTree BuildPiper allows project users to submit unrestricted Kubernetes manifests through its Additional Manifest feature. If the pipeline applies those manifests using cluster-wide credentials, a user may escalate privileges to cluster-admin and gain control over cluster resources.

Affected context

The issue affects BuildPiper deployments where project users can provide Additional Manifest content and the pipeline applies that content with credentials that have cluster-wide permissions. The risk is present when submitted manifests are not adequately restricted or authorized before application.

Exploit preconditions

  • Attack surface: The Additional Manifest feature in a BuildPiper pipeline
  • Required access: A project user account with permission to submit or modify manifests
  • Trigger point: The pipeline applies the submitted Kubernetes manifest
  • Why exploitation is possible: The pipeline uses cluster-wide credentials and does not sufficiently constrain the manifest's permissions or effects

Why this happens

The vulnerability is an access-control and privilege-management failure. User-controlled manifests are applied with authority broader than the submitting user's intended permissions, allowing a lower-privileged user to cause privileged cluster changes. This maps to CWE-269: Improper Privilege Management.

Potential impact

  • A user could bind a service account to the cluster-admin role
  • An attacker may gain control over workloads and other cluster resources
  • Cluster secrets could be exposed or modified
  • Cluster integrity, availability, and confidentiality may be compromised

General mitigation guidance

Defensive patterns focus on limiting the authority of pipeline operations and controlling which manifests users can submit.

  • Apply manifests using narrowly scoped, least-privilege identities rather than cluster-wide credentials where possible
  • Restrict or disable user-supplied manifests unless they are required
  • Validate and authorize manifest contents against explicit policies before application
  • Separate project-level permissions from cluster-administration capabilities
  • Require review or approval for changes that grant elevated Kubernetes privileges

How teams detect issues like this

  • Review code and configuration paths that accept Additional Manifest content and apply it to Kubernetes
  • Use static analysis and code review to identify user-controlled input passed to privileged deployment operations
  • Audit role bindings and cluster role bindings for unexpected grants, especially bindings to cluster-admin
  • Enforce admission policies that reject unauthorized privilege escalation or overly broad permissions
  • Monitor pipeline identities and Kubernetes audit logs for cluster-wide changes initiated by project workflows

Sources

SourceLink
gist.github.comgist.github.com/neelkotnis/7bc715e190e5be2c2fc5be15c4035ce7
buildpiper.iobuildpiper.io/
vulncheck.comvulncheck.com/advisories/opstree-buildpiper-before-2.7.0-privilege-escalation-via-additional-manifest

Frequently asked

questions

Yes. The described issue allows project users who can submit Additional Manifest content to trigger privileged changes when the pipeline applies it with cluster-wide credentials.

No. The risk arises because the pipeline's credentials can apply changes beyond the user's own permissions.

Apply manifests with least-privilege credentials and enforce authorization and policy checks on submitted content before it reaches the cluster.

Keep deployment identities narrowly scoped, constrain user-controlled inputs, review privilege-granting changes, and audit cluster permissions and deployment activity.

Find out what's already
exploitable in your codebase.