LowGHSA-qq97-vm5h-rrhgGO-2022-0379

OCI Manifest Type Confusion Issue

Published 8 Feb 2022 · Updated 7 Aug 2026

Is your project on an affected github.com/docker/distribution?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.8.0
Fixed in
2.8.0
Update to the fixed version for your release line, for example:go get github.com/docker/distribution@v2.8.0

Details

Impact

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

Patches

Upgrade to at least v2.8.0-beta.1 if you are running v2.x release. If you use the code from the main branch, update at least to the commit after b59a6f827947f9e0e67df0cfb571046de4733586.

Workarounds

There is no way to work around this issue without patching.

References

Due to an oversight in the OCI Image Specification that removed the embedded mediaType field from manifests, 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 by modifying the Content-Type header returned by a registry. This can invalidate a common pattern of relying on container image digests for equivalence.

For more information

If you have any questions or comments about this advisory:

  • Open an issue in distribution
  • Open an issue in distribution-spec
  • Email us at [cncf-distribution-security@lists.cncf.io](mailto:cncf-distribution-security@lists.cncf.io)

Is GHSA-qq97-vm5h-rrhg in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/docker/distribution, and gives you the command that fixes it.

More advisories for github.com/docker/distribution

  • LowCVE-2026-85747Distribution: Client does not verify returned content against requested digest in github.com/distribution/distribution · 5 Nov 2026
  • MediumCVE-2026-85747Distribution: Client `manifests.Get()` does not verify returned content against requested digest · 15 Oct 2026
  • HighCVE-2023-2253distribution catalog API endpoint can lead to OOM via malicious user input · 11 May 2023
  • HighCVE-2017-11468Docker Registry has Allocation of Resources Without Limits or Throttling · 13 May 2022
  • LowCVE-2017-11468Uncontrolled resource allocation in github.com/docker/distribution · 14 Apr 2021
github.com/docker/distribution security overview

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.