Description
A malicious image can advertise DiffIDs from another image while containing different layer contents. In affected versions, BuildKit could use the advertised DiffIDs to derive cache and snapshot identity without validating that they matched the actual layer contents.
If a BuildKit daemon with shared or persistent cache first processes such a malicious image, a later build using the victim image may mount the attacker-controlled layer contents as the base image. This can allow code from the malicious image to run in the victim build, for example by replacing a commonly executed path such as /bin/sh. The attacker-controlled code may read build secrets mounted into the build, access other build resources, alter output artifacts, or hang the build.
The issue affects both regular snapshotters and lazy-pulling snapshotters such as stargz.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| moby | BuildKit | < 0.33.1 | 0.33.1 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | docker.io +1 | No fix yet | — |
| Ubuntu 26.04 LTS | docker.io +1 | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | docker.io +1 | No fix yet | — |
| Ubuntu Pro 22.04 LTS | docker.io +1 | No fix yet | — |
| Ubuntu Pro 20.04 LTS | docker.io +1 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | docker.io | No fix yet | — |
| Ubuntu Pro 16.04 LTS | docker.io | No fix yet | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | docker | 25.0.18-1.amzn2023.0.3 | ALAS2023-2026-3391 |
| Amazon Linux 2023 | runfinch-finch | 1.19.0-1.amzn2023.0.2 | ALAS2023-2026-3264 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | moby-engine | No fix yet | — |
Advisories 3
- ALAS2023-2026-3391 Important: docker security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Nov 9, 2026
- ALAS2023-2026-3264 Important: runfinch-finch security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- WID-SEC-2026-3741 BuildKit: Mehrere Schwachstellen BSI CERT-Bund (WID) · Oct 25, 2026