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

> CVE-2026-93318: Cache poisoning via unvalidated image layer DiffIDs. CVSS 7.5 (CVSS 4.0).

Canonical: https://rewindex.com/cve/CVE-2026-93318
Last updated: 2026-10-06T15:08:38Z

- Published: 2026-10-05 17:45 UTC · Updated: 2026-10-06 15:08 UTC · Assigner: Docker
- CVSS: 7.5 (CVSS 4.0) · Severity: High
- EPSS: 0.17%, 6th percentile (scored 2026-10-25)
- CISA KEV: no
- CWE: CWE-354

## 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 vendors and products

- moby: BuildKit

## Tracked companies

- [Docker](https://rewindex.com/company/docker.md)

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2026-93318)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2026-93318)
- [https://github.com/moby/buildkit/releases/tag/v0.33.1](https://github.com/moby/buildkit/releases/tag/v0.33.1)
- [https://github.com/moby/buildkit/security/advisories/GHSA-f2v9-hprr-32q3](https://github.com/moby/buildkit/security/advisories/GHSA-f2v9-hprr-32q3)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2026-93318 · Markdown: https://rewindex.com/cve/CVE-2026-93318.md · JSON: https://rewindex.com/api/v1/cves/CVE-2026-93318 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:15:04.957Z
