CVE-2026-93318: Cache poisoning via unvalidated image layer DiffIDs
CVE-2026-93318 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- High
- CVSS base score
- 7.5 (Docker), 7.5 (Red Hat)
- 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, .
- Fixed releases
- Docker: 0.33.1
- Red Hat: 0.33.1
- Assigned by
- Docker (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-93318; each belongs to its advisory, not to every product listed. How records are collected and checked.
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 CVE.org record (Docker).
How do I fix CVE-2026-93318?
Upgrade to a fixed release named by the vendor:
- Docker: 0.33.1
- Red Hat: 0.33.1
- Avoid sharing persistent BuildKit daemon cache instances across multi-tenant or untrusted build workloads, and isolate builder runners per tenant. Regularly prune daemon cache and restrict image pull access to verified, trusted registries. (Red Hat)
- Workaround: Do not share BuildKit daemon cache between trusted and untrusted builds. Use isolated BuildKit daemons or ephemeral builders for untrusted image sources, or prune BuildKit cache after processing untrusted images. Disabling stargz alone is not sufficient because regular snapshotters are also affected. (CVE.org record)
Vendor advisories for CVE-2026-93318
Docker
1 advisory- Advisory severityHigh7.5
High [CVE-2026-93318] BuildKit: malicious image can advertise DiffIDs from another image while containing different layer contents
CVE-2026-93318Source published Source updated
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…
- Affected products in this advisory
- BuildKit
- Source-reported affected versions
- BuildKit before 0.33.1
- Source-reported fixed versions
- 0.33.1
- Mitigation guidance
- No mitigation guidance extracted; consult the source.
Red Hat
1 advisory- Advisory severityHigh7.5
High [CVE-2026-93318] arbitrary code execution via cache poisoning from mismatched layer identifiers
CVE-2026-93318Source published Source updated
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…
- Affected products in this advisory
- No product details extracted. Check the source bulletin.
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- 0.33.1
- Mitigation guidance
- Avoid sharing persistent BuildKit daemon cache instances across multi-tenant or untrusted build workloads, and isolate builder runners per tenant. Regularly prune daemon cache and restrict image pull access to verified, trusted registries.
References
Timeline
- CVE record published
- First vendor advisory listed by VulniPulse
- CVE record last updated
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 publishes the next one.
See Docker'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.