Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-93318

HIGH 7.5EPSS 8%

Cache poisoning via unvalidated image layer DiffIDs

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.

Who should check

  • Anyone running moby BuildKit < 0.33.1

Vulnerability facts

Affected
moby BuildKit < 0.33.1
Fixed in
moby BuildKit 0.33.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.22% chance of exploitation in 30 days (percentile 8, 2026-11-26)
CWE
CWE-354
Published
Modified

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

Package / productAffectedFixedSource
moby BuildKit< 0.33.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors