Skip to main content
Vulnerability Database/CVE-2026-93317

CVE-2026-93317: OCI Registry Authentication Bypass Vulnerability

CVE-2026-93317 is an authentication bypass flaw in OCI registry and OCI-layout implementations that allows attackers to provide mismatched blob contents. This post explains its impact on build integrity, affected systems, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-93317 Overview

CVE-2026-93317 is a digest verification flaw in Moby BuildKit that allows an unauthenticated attacker controlling a registry or OCI-layout blob source to supply blob contents that do not match the claimed digest. BuildKit caches the resulting snapshot under the attacker-supplied digest. Later victim builds that reference the same digest reuse the poisoned snapshot, breaking build-input integrity. The weakness is classified as Improper Validation of Integrity Check Value [CWE-354]. The flaw affects container image builds that pull from untrusted registries or OCI layouts and is fixed in BuildKit v0.33.1.

Critical Impact

Attackers can poison BuildKit's content-addressable cache, causing subsequent builds to incorporate malicious layers under a trusted digest and compromising the integrity of produced container images.

Affected Products

  • Moby BuildKit (versions prior to v0.33.1)
  • Container build pipelines that pull blobs from attacker-controlled registries
  • CI/CD systems using BuildKit with shared snapshot caches

Discovery Timeline

  • 2026-10-05 - CVE-2026-93317 published to the National Vulnerability Database
  • 2026-10-06 - Last updated in NVD database

Technical Details for CVE-2026-93317

Vulnerability Analysis

BuildKit resolves and caches content-addressable blobs by digest. When pulling a blob from a registry or OCI-layout source, BuildKit does not sufficiently verify that the received bytes hash to the claimed digest before storing the resulting snapshot. An attacker controlling a registry can return arbitrary contents for a given digest reference, and BuildKit will cache those contents under the attacker-supplied digest key.

Subsequent builds that reference the same digest, including builds by different users on a shared BuildKit instance, pull the poisoned snapshot from cache instead of fetching and validating fresh content. This defeats the integrity guarantee that content-addressable storage is intended to provide. The vulnerability is cataloged under CWE-354: Improper Validation of Integrity Check Value.

Root Cause

The root cause is missing or insufficient enforcement of the digest-equals-hash-of-contents invariant on the blob ingest path. BuildKit treats the claimed digest as the cache key without recomputing and comparing the hash of the retrieved blob bytes. Any upstream source that lies about a digest will succeed in planting arbitrary content under that key.

Attack Vector

An unauthenticated attacker hosts or compromises a registry, OCI layout, or mirror that a victim build references. The attacker serves blob contents that do not match the requested digest. BuildKit caches the mismatched snapshot. A later victim build that resolves the same digest, trusting the content-addressable property, consumes the attacker-supplied layer. Exploitation requires user action (the victim must initiate a build that references the attacker-controlled source), consistent with the published attack vector of AV:N/AC:L/AT:P/PR:N/UI:A.

See the GitHub Security Advisory GHSA-p3rc-w3hc-pqvv for the vendor's technical description.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-93317

Indicators of Compromise

  • Build logs that pull blobs from registries or mirrors outside the organization's allowlist.
  • BuildKit cache entries whose stored content hash does not match the digest key under which they are indexed.
  • Container images with layer digests that resolve to unexpected or unsigned content when re-pulled from an authoritative registry.

Detection Strategies

  • Re-verify every cached BuildKit snapshot by recomputing the content hash and comparing it to the cache key.
  • Enforce signed-image policies (for example, Sigstore cosign or Notary v2) at admission so poisoned layers fail signature verification downstream.
  • Audit BuildKit configuration for registry mirrors, insecure registries, and OCI-layout sources that are not under organizational control.

Monitoring Recommendations

  • Alert on BuildKit instances running versions earlier than v0.33.1 discovered across CI/CD infrastructure.
  • Monitor outbound build-time pulls to registry hostnames not on an approved list.
  • Track provenance metadata (SLSA attestations, BuildKit --provenance output) and flag builds whose recorded source digests cannot be re-fetched and re-verified.

How to Mitigate CVE-2026-93317

Immediate Actions Required

  • Upgrade BuildKit to v0.33.1 or later on all build hosts, CI runners, and Kubernetes build pods.
  • Invalidate existing BuildKit caches that may have been populated from untrusted registries, including shared and remote caches.
  • Restrict builds to registries and OCI layouts under organizational control until all BuildKit instances are patched.

Patch Information

The fix is delivered in Moby BuildKit v0.33.1. The release enforces that received blob contents hash to the claimed digest before the snapshot is stored in cache. Review the BuildKit v0.33.1 release notes and the GHSA-p3rc-w3hc-pqvv advisory for upgrade guidance.

Workarounds

  • Configure BuildKit to pull only from registries that are mutually authenticated and operated by trusted parties.
  • Disable shared or remote BuildKit cache exports and imports until all participating builders are upgraded.
  • Require signed images and verify signatures on every layer at build time and at admission.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.