medium6.8
CVE-2026-85747
Distribution: Client `manifests.Get()` does not verify returned content against requested digest
Impact
Distribution is a toolkit to pack, ship, store, and deliver container content. Prior to 3.1.2, registry/client.(*manifests).Get() reads a manifest returned for a digest-pinned request and passes it to distribution.UnmarshalManifest without hashing the body against the requested digest, allowing a malicious or intercepted registry response to substitute attacker-chosen manifest content even when Docker-Content-Digest claims the requested value. The bundled pull-through proxy in registry/proxy/proxymanifeststore.go can cache and re-serve the substituted manifest. This issue is fixed in version 3.1.2.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | github.com/docker/distribution | <= 2.8.3 | none recorded |
| go | github.com/distribution/distribution/v3 | < 3.1.2 | 3.1.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-685w-q87j-wqw3
- https://github.com/distribution/distribution/security/advisories/GHSA-685w-q87j-wqw3
- https://nvd.nist.gov/vuln/detail/CVE-2026-85747
- https://github.com/distribution/distribution/commit/8f91c26c8888a95a36c2357a6e30bc15d4dd76d3
- https://github.com/distribution/distribution/commit/960439b09f342cdeb8f1c0e18e8c7349bdcfbf80
- https://github.com/distribution/distribution/releases/tag/v3.1.2