---
id: CVE-2026-85747
title: 'Distribution is a toolkit to pack, ship, store, and deliver container content'
summary: >-
  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
  witho…
severity: medium
cvss: 6.8
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N'
cwe:
  - CWE-354
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T19:27:44.137'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85747'
references:
  - url: >-
      https://github.com/distribution/distribution/commit/960439b09f342cdeb8f1c0e18e8c7349bdcfbf80
    label: security-advisories@github.com
  - url: 'https://github.com/distribution/distribution/releases/tag/v3.1.2'
    label: security-advisories@github.com
  - url: >-
      https://github.com/distribution/distribution/security/advisories/GHSA-685w-q87j-wqw3
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-85747'
  - url: >-
      https://github.com/distribution/distribution/commit/8f91c26c8888a95a36c2357a6e30bc15d4dd76d3
  - url: 'https://github.com/advisories/GHSA-685w-q87j-wqw3'
  - url: 'https://github.com/distribution/distribution'
tags:
  - nvd
  - cve.org
  - ghsa
  - go
  - osv
  - exploit-available
ingestedAt: '2026-10-13T19:43:29.164Z'
vendor: distribution
product: distribution
affected:
  - distribution < 3.1.2
aliases:
  - GHSA-685w-q87j-wqw3
  - BIT-distribution-2026-85747
ecosystem: go
patched:
  - github.com/distribution/distribution/v3 3.1.2
epss: 0.00218
epssPercentile: 0.12157
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-18T13:38:30.998638Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-85747)

Affected packages:

- `github.com/docker/distribution <= 2.8.3`
- `github.com/distribution/distribution/v3 < 3.1.2`

Patched in:

- `github.com/distribution/distribution/v3 3.1.2`

Source: https://github.com/advisories/GHSA-685w-q87j-wqw3
