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

CVE-2026-85747: Container Registry Manifest RCE Vulnerability

CVE-2026-85747 is a remote code execution flaw in the container registry distribution toolkit allowing malicious registries to substitute manifest content. This post covers the technical details, affected versions, 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-85747 Overview

CVE-2026-85747 affects Distribution, the open source toolkit used to pack, ship, store, and deliver container content. The flaw resides in the registry client function registry/client.(*manifests).Get(), which reads manifests returned for a digest-pinned request and passes them to distribution.UnmarshalManifest without hashing the response body against the requested digest. A malicious or intercepted registry response can substitute attacker-chosen manifest content even when the Docker-Content-Digest header advertises the requested value. The bundled pull-through proxy in registry/proxy/proxymanifeststore.go can then cache and re-serve the substituted manifest to downstream clients. The issue is fixed in version 3.1.2.

Critical Impact

Attackers positioned to tamper with registry responses can replace trusted container manifests with attacker-controlled content, undermining image supply chain integrity across all downstream pulls through a vulnerable proxy.

Affected Products

  • Distribution (distribution/distribution) versions prior to 3.1.2
  • Registries using the bundled pull-through proxy (registry/proxy/proxymanifeststore.go)
  • Downstream container clients consuming manifests via a vulnerable Distribution instance

Discovery Timeline

  • 2026-10-13 - CVE-2026-85747 published to NVD
  • 2026-10-13 - Last updated in NVD database

Technical Details for CVE-2026-85747

Vulnerability Analysis

The vulnerability is an Improper Validation of Integrity Check Value weakness tracked under [CWE-354]. Container registries use content-addressable storage, where a digest uniquely identifies a manifest's bytes. Clients that fetch a manifest by digest expect the returned body to hash to that same digest. The Distribution client omitted this verification step, trusting the Docker-Content-Digest response header rather than independently hashing the payload.

An attacker who can modify traffic between a client and an upstream registry, or who controls a malicious registry endpoint, can return arbitrary manifest content for any digest request. Because the pull-through proxy caches responses by requested digest, a single poisoned response can be served to every client that subsequently requests that digest. This defeats the trust model that digest-pinning is intended to provide.

Root Cause

The root cause is a missing cryptographic validation step. registry/client.(*manifests).Get() did not compute the digest of the response body and compare it to the digest the caller requested. The fix introduces a byDigest flag that tracks whether the caller pinned the request by digest and enforces hash verification when it is true.

Attack Vector

Exploitation requires a network-adjacent attacker capable of intercepting or responding to registry requests, or a malicious upstream registry proxied by a vulnerable Distribution instance. No authentication or user interaction is required against the vulnerable client. Successful exploitation substitutes manifest content, allowing attackers to redirect clients to malicious image layers while preserving the appearance of a trusted digest reference.

go
		}
	}

+	// byDigest records whether the caller pinned the manifest by digest (as
+	// opposed to fetching by tag). When true, the returned content must hash to
+	// the requested digest.
+	byDigest := digestOrTag == ""
	if digestOrTag == "" {
		digestOrTag = dgst.String()
		ref, err = reference.WithDigest(ms.name, dgst)

Source: GitHub Commit 960439b — the patch introduces the byDigest flag used to enforce body-to-digest hash verification before UnmarshalManifest is invoked.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-85747

Indicators of Compromise

  • Cached manifests in the pull-through proxy whose body hash does not match the storage key digest
  • Registry client log entries showing successful manifest pulls from upstreams with mismatched or unexpected TLS certificates
  • Container image pulls that resolve to layers not present in the upstream registry's authoritative inventory

Detection Strategies

  • Audit proxy cache contents by recomputing SHA-256 digests of stored manifest blobs and comparing to their cache keys
  • Compare manifests served by downstream Distribution instances against the authoritative upstream registry for the same digest
  • Alert on Distribution binaries running versions prior to 3.1.2 in container inventory and image scanning tools

Monitoring Recommendations

  • Monitor outbound registry traffic for TLS anomalies, proxy injections, or unexpected intermediaries
  • Track upgrade compliance of all Distribution instances across build systems, CI/CD runners, and edge caches
  • Instrument manifest-pull telemetry to flag responses where the body digest diverges from the requested digest

How to Mitigate CVE-2026-85747

Immediate Actions Required

  • Upgrade all Distribution deployments to version 3.1.2 or later
  • Invalidate and purge pull-through proxy caches that may contain manifests fetched by vulnerable clients
  • Re-verify critical container images by pulling them directly from authoritative upstream registries after patching

Patch Information

The fix is delivered in Distribution v3.1.2. Technical details are documented in GHSA-685w-q87j-wqw3, and the code change is in commit 960439b. The patch adds explicit digest validation of manifest response bodies when the request is digest-pinned.

Workarounds

  • Restrict Distribution instances to trusted upstream registries only, and enforce mutual TLS on all upstream connections
  • Disable the pull-through proxy feature until the registry is upgraded to 3.1.2
  • Require client-side verification of manifest digests in CI/CD pipelines before promoting or signing images
bash
# Verify installed Distribution version
registry --version

# Pull patched image and redeploy
docker pull distribution/distribution:3.1.2
docker stop registry && docker rm registry
docker run -d --name registry -p 5000:5000 distribution/distribution:3.1.2

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.