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

- Severity: High 7.5 (CVSS:4.0, scored by Docker) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-10-05T17:45:39.491Z
- Modified: 2026-10-06T15:08:38.397Z
- Weaknesses: CWE-354
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- github.com/moby/buildkit: before 0.33.1

## References

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

## Sources

- CVE List: [CVE-2026-93318](https://www.cve.org/CVERecord?id=CVE-2026-93318), CVE Terms of Use, modified 2026-10-05
- NVD: [CVE-2026-93318](https://nvd.nist.gov/vuln/detail/CVE-2026-93318), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2026-93318 · Whole record: https://cve.day/CVE-2026-93318.json · Rebuilt by cve.day 2026-11-25T22:59:42.141Z
