# CVE-2026-93318: Cache poisoning via unvalidated image layer DiffIDs

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: High; Integrity impact: High; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.22% (percentile 8, 2026-11-26)
- **CWE:** CWE-354
- **Published:** 2026-10-05T17:45:39.491Z
- **Modified:** 2026-10-06T15:08:38.397Z

## Who should check

- Anyone running moby BuildKit \< 0.33.1

## 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 and fixed versions

- moby BuildKit: \< 0.33.1 (cvelist)

## Mitigation

- Upgrade BuildKit to 0.33.1 or later.
- Vendor 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-93318. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-93318.md
Affected: moby BuildKit < 0.33.1
Fixed in: moby BuildKit 0.33.1

Steps:
1. Search this machine and project for moby BuildKit: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-93318 being exploited?

There is no confirmed exploitation: CVE-2026-93318 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-93318?

High: CVSS 7.5 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2026-93318?

moby BuildKit \< 0.33.1.

### Is there a fix for CVE-2026-93318?

Yes. Fixed in moby BuildKit 0.33.1. Upgrade BuildKit to 0.33.1 or later. Vendor 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.

### How do I check if I'm affected by CVE-2026-93318?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/moby/buildkit/security/advisories/GHSA-f2v9-hprr-32q3>
- patch: <https://github.com/moby/buildkit/releases/tag/v0.33.1>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-93318>

HTML: <https://flawdb.com/CVE-2026-93318> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-93318>
