Crafted Git build source can bypass certain policy validation
moby BuildKit
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| moby BuildKit |
| No fix yet |
Original 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.
From the CVE record · Docker