All reports
Medium

github.com/moby/buildkit: BuildKit: Security policy bypass via crafted Git source definition

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-93326

Probability of exploitation in the next 30 days: 0.25%

FIRST EPSS · 2026-11-24

Description

A build step for a Git source, crafted in a specific way, can bypass some policy validation rules. A malicious build definition can make the repository look like it is coming from a different remote URL than it really is when Git clone is happening. If policy is doing more stricter validation, for example based on commit SHA, commit data, or signatures, then all these validations still apply correctly.

A flaw was found in BuildKit. An attacker with the ability to define build steps can bypass policy validation rules by supplying a specially crafted Git source. During a clone operation, this issue allows the repository to spoof its remote URL, making untrusted source code appear to originate from an authorized repository. Consequently, builds relying strictly on repository URL validation may ingest unauthorized code, compromising build pipeline integrity.