Distribution: Client `manifests.Get()` does not verify returned content against requested digest
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in github.com/distribution/distribution/v3 3.1.2.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| distribution | <3.1.2 | ||
| go: github.com/distribution/distribution | |||
| go: github.com/distribution/distribution/v3 | <3.1.2 | 3.1.2 | |
| go: github.com/docker/distribution | <=2.8.3 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket