Skip to content
OpenAdvisories
High · 7.5 CVE-2026-93318 EUVD-2026-92532

Cache poisoning via unvalidated image layer DiffIDs

Published Oct 5, 2026 · Updated Oct 5, 2026 · Assigned by Docker

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Azure Linux 3 moby-engine No fix yet —

Advisories 3

References