VDB
KO

GO-2022-0379

Type confusion in github.com/docker/distribution

Quick fix

GO-2022-0379 — github.com/docker/distribution: upgrade to the fixed version with the command below.

go get github.com/docker/distribution@v2.8.0+incompatible

Details

Systems that rely on digest equivalence for image attestations may be vulnerable to type confusion.

A maliciously crafted OCI Container Image can cause registry clients to parse the same image in two different ways without modifying the image's digest, invalidating the common pattern of relying on container image digests for equivalence.

This problem has been addressed in newer versions by improving validation in manifest unmarshalling.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / github.com/docker/distribution
Introduced in: 0 Fixed in: 2.8.0+incompatible
Fix go get github.com/docker/distribution@v2.8.0+incompatible

References