/

CVE-2026-127078

Severity:

HIGH RISK

(7.1)

Authorization Bypass (CWE-639) in OpsTree BuildPiper

CVE-2026-127078

Deferred

Vulnerability type

Category:

Authorization Bypass

CWE:

CWE-639

Impact:

Unauthorized cross-application use of CI/CD configuration and deployment resources

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 has an authorization bypass that can let an authenticated user attach another application's environment to their service by supplying its environment identifier. If the application does not verify that the environment belongs to a project the user is authorized to access, the user may be able to configure CI and trigger builds or deployments using that application's resources.

Affected context

The issue occurs in BuildPiper's component environment endpoints when they accept a project_env_id to associate an environment with a service. It becomes risky if authorization checks do not confirm that the referenced environment belongs to an application or project the authenticated user is permitted to manage. The description indicates that the attached environment may provide access to another application's configuration, registries, and deployment infrastructure.

Exploit preconditions

  • Attack surface: Component environment endpoints
  • Required access: An authenticated BuildPiper account able to access the relevant endpoints
  • Trigger point: Submitting a foreign project_env_id when attaching an environment to a service
  • Why exploitation is possible: The environment identifier may be accepted without verifying the user's authorization for the environment's owning application
  • Further actions: The user may be able to configure CI and trigger builds or deployments using the attached environment

Why this happens

The underlying issue is insufficient authorization when resolving a user-controlled object identifier. CWE-639 describes authorization bypass through a user-controlled key: an application checks that a request is authenticated or that an identifier is valid, but does not adequately verify that the requester may access the object associated with that identifier. Environment ownership and project-level permissions need to be enforced at the point of association and use.

Potential impact

  • An authenticated user may gain access to another application's environment configuration
  • Builds may use registries or settings belonging to another application
  • Deployments may be triggered against infrastructure the user is not authorized to manage
  • CI/CD workflows may be altered or misused across application boundaries

General mitigation guidance

Defensive patterns focus on enforcing authorization for the referenced environment, not just validating the identifier or authenticating the requester.

  • Scope environment lookups to projects and applications the user is authorized to manage
  • Check ownership and permissions whenever an environment is attached, updated, or used to trigger a build or deployment
  • Prefer server-derived project and tenant context over trusting client-supplied ownership information
  • Apply least privilege to CI runners, registry credentials, and deployment identities
  • Use secure-by-default access controls that deny cross-application associations unless explicitly authorized

How teams detect issues like this

  • Review endpoint handlers and service-layer code that accept environment or project identifiers for object-level authorization checks
  • Use static analysis or code review rules to flag user-controlled identifiers passed to object lookups without nearby ownership checks
  • Test authorization policies by attempting cross-project access with authenticated accounts that have different permissions
  • Monitor audit logs for environment associations, builds, or deployments that cross application boundaries
  • Enforce policy checks in CI to require authorization tests for endpoints that read or modify project-owned resources

Sources

SourceLink
gist.github.comgist.github.com/neelkotnis/26f637bfda3513ab255d8f8e46bcf8d1
buildpiper.iobuildpiper.io/
vulncheck.comvulncheck.com/advisories/opstree-buildpiper-before-2.7.0-authorization-bypass-via-project-env-id-parameter

Frequently asked

questions

The described path uses BuildPiper component environment endpoints. Exploitation requires access to those endpoints and the ability to submit a foreign environment identifier; the description does not establish that the endpoints are publicly accessible.

Yes. The issue is described as affecting authenticated users. The account's access to the endpoints is a prerequisite, though it may not be authorized for the target application's environment.

Enforce object-level authorization by confirming that the authenticated user may access the environment's owning project whenever the environment is attached or used.

Scope resource lookups to the user's authorized projects, test cross-tenant access boundaries, and audit CI/CD actions that consume project-owned configuration or credentials.

Find out what's already
exploitable in your codebase.