/

CVE-2026-127077

Severity:

HIGH RISK

(7.1)

Authorization Bypass (CWE-862) in BuildPiper Environments

CVE-2026-127077

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-862

Impact:

Cross-project resource access and unauthorized deployment

Severity:

HIGH RISK

(7.1)

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 before 2.7.0 has an authorization bypass that can let an authenticated user create an environment on a Kubernetes cluster assigned to another project. By altering cluster and namespace values in a request, the user may cross project boundaries and trigger builds or deployments on the targeted cluster.

Affected context

The issue occurs in BuildPiper's environment-creation API when authorization checks do not verify that the requested Kubernetes cluster and namespaces are assigned to the specified project. It may put project isolation at risk in deployments where authenticated users can submit requests to this endpoint and supply or modify these values.

Exploit preconditions

  • Attack surface: The environment-creation API at POST /api/v1/project/{project_id}/env/
  • Required access: An authenticated BuildPiper account able to submit requests to the endpoint
  • Trigger point: Environment creation with modified cluster_id and namespaces values
  • Why exploitation is possible: The request values can target resources outside the user's project when project ownership and authorization are not adequately checked

Why this happens

The underlying issue is missing or insufficient authorization enforcement, corresponding to CWE-862: Missing Authorization. The endpoint accepts resource identifiers from a request without reliably ensuring that the authenticated user is authorized to use the specified cluster and namespaces within the selected project.

Potential impact

  • An attacker may create environments on clusters assigned to other projects.
  • Builds or deployments could be triggered in resources outside the attacker's project.
  • Project isolation and the integrity of workloads on affected clusters could be weakened.
  • Unauthorized deployments could disrupt services or expose data, depending on cluster permissions and workloads.

General mitigation guidance

Defensive patterns focus on enforcing authorization at the point where resources are selected and used.

  • Derive or verify cluster and namespace access from the authenticated user's project permissions rather than trusting request-supplied identifiers.
  • Check project ownership and authorization for every requested resource before creating an environment or triggering downstream actions.
  • Use secure-by-default access controls that deny cross-project operations unless explicitly granted.
  • Limit the permissions available to build and deployment processes, and reduce trust in client-controlled identifiers.

How teams detect issues like this

  • Review API handlers for authorization checks that bind the authenticated user, project, cluster, and namespaces together.
  • Use static analysis and code review to identify endpoints that accept resource IDs without verifying ownership or access rights.
  • Enforce policies that require server-side authorization for every resource operation, including asynchronous build and deployment workflows.
  • Monitor environment-creation and deployment audit logs for requests where the selected cluster or namespaces do not belong to the specified project.

Sources

SourceLink
gist.github.comgist.github.com/neelkotnis/e6ba937a2ea3f06fc0a79bd6193e4574
buildpiper.iobuildpiper.io/
vulncheck.comvulncheck.com/advisories/opstree-buildpiper-before-2.7.0-authorization-bypass-via-environment-creation-api

Frequently asked

questions

An authenticated user who can submit requests to the environment-creation endpoint may be able to target resources outside their project if authorization checks are insufficient.

The described issue requires access to the BuildPiper API, not necessarily direct credentials for the target cluster. The effects depend on the permissions of BuildPiper's build and deployment processes.

Enforce server-side authorization that verifies the user's permission to use each requested cluster and namespace for the specified project before creating an environment.

Treat client-supplied identifiers as untrusted, apply authorization checks consistently across API and downstream operations, and test for cross-project access boundaries.

Find out what's already
exploitable in your codebase.