---
id: GO-2022-0379
aliases:
  - GHSA-qq97-vm5h-rrhg
title: Type confusion in github.com/docker/distribution
summary: Type confusion in github.com/docker/distribution
severity: none
vendor: docker
product: github.com/docker/distribution
ecosystem: go
affected:
  - github.com/docker/distribution < 2.8.0+incompatible
patched:
  - github.com/docker/distribution 2.8.0+incompatible
published: '2022-07-29'
updated: '2026-08-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GO-2022-0379'
references:
  - url: >-
      https://github.com/distribution/distribution/commit/b59a6f827947f9e0e67df0cfb571046de4733586
tags:
  - osv
  - go
ingestedAt: '2026-08-07T19:14:17.992Z'
---

## Overview

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.

## Affected packages

- `github.com/docker/distribution < 2.8.0+incompatible`

## Remediation

Upgrade to a patched release:

- `github.com/docker/distribution 2.8.0+incompatible`
