Overview

OpsTree BuildPiper is a container-runtime tool used in CI/CD pipelines for Kubernetes. A design flaw in the Additional Manifest feature permits project users to provide arbitrary manifest files without validation. When these manifests are applied with pipeline credentials that have cluster-wide permissions, an attacker can create a ClusterRoleBinding that elevates a service account to the cluster-admin role, granting full control over the cluster.

Technical details

The vulnerability stems from insufficient validation of manifests submitted via the Additional Manifest feature. Any user with access to the pipeline can submit a manifest that defines a ClusterRoleBinding linking a service account to the cluster-admin role. Because the pipeline executes with cluster-wide credentials, the malicious binding is applied, resulting in privilege escalation. Exploitation requires only the ability to submit a manifest through the feature; no additional privileges are needed.

Impact

An attacker who can submit a manifest can gain cluster-admin rights, allowing full control of all workloads, secrets, and configuration within the Kubernetes cluster. This impacts organizations that deploy OpsTree BuildPiper versions prior to 2.7.0 in any environment where the pipeline runs with elevated cluster permissions.

Recommended actions

  • Patch to version 2.7.0 or later.
  • Restrict use of the Additional Manifest feature to trusted users only.
  • Monitor for creation of ClusterRoleBinding objects granting the cluster-admin role.
  • Limit pipeline credentials to the least privilege required for operation.

Detection

Review Kubernetes audit logs for creation or modification of ClusterRoleBinding objects that assign the cluster-admin role, especially those originating from the BuildPiper service account. Correlate these events with pipeline activity and alert on unexpected bindings or manifest submissions.

Reference: NVD entry for CVE-2026-127073