CVE-2026-93318: Docker BuildKit: malicious image can advertise DiffIDs from another image while containing different layer contents
This Docker advisory covers CVE-2026-93318 in BuildKit.
Key facts
- Vendor rating
- High, CVSS 7.5
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N· base score 7.5, scored by DockerAttack vector: network. Attack complexity: low. Attack requirements: present. Privileges required: none. User interaction: active. Confidentiality impact on the vulnerable system: high. Integrity impact on the vulnerable system: high. Availability impact on the vulnerable system: low. Confidentiality impact on subsequent systems: none. Integrity impact on subsequent systems: none. Availability impact on subsequent systems: none.- Weakness
- CWE-354: Improper Validation of Integrity Check Value
- EPSS
- 0.17% chance of exploitation in the next 30 days (5th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Affected
- BuildKit before 0.33.1
- Fixed in
- 0.33.1
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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.
Text from the source record.
- BuildKit before 0.33.1
NVD record · high-confidence parse· fetched ·verify at source
CVE-2026-93318 in other vendors' advisories
- Red Hat: CVE-2026-93318, high severity, fixed in 0.33.1
More Docker advisories
CVE-2026-121520Nov 3, 2026In BuildKit versionsCVE-2026-121522Nov 3, 2026In BuildKit vulnerabilityCVE-2026-93316Oct 5, 2026If BuildKit daemon is started with --cdi-disabledCVE-2026-33748Mar 27, 2026BuildKit is a toolkit for converting source code to build artifacts in an efficientCVE-2026-126329Nov 12, 2026Docker Sandboxes reuses existing state and configuration directories without verifyingCVE-2026-126330Nov 12, 2026Docker Sandboxes can silently republish a sandbox service after an operator removes
Get an email when Docker BuildKit / Compose publishes the next one.
See Docker BuildKit / Compose's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.