# Distribution: Client \`manifests.Get()\` does not verify returned content against requested digest

Advisory record · `GHSA-685w-q87j-wqw3`

- **Identifiers:** `GHSA-685w-q87j-wqw3` · `BIT-distribution-2026-85747` · `CVE-2026-85747` · `GO-2026-6778`
- **State:** Confirmed
- **Severity:** CVSS 6.8 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-354](https://cwe.mitre.org/data/definitions/354.html)
- **Tags:** [CWE-354](https://agentprime.io/advisories/tag/cwe-354.md)
- **Published:** 15 Oct 2026
- **Updated:** 5 Nov 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 15 Oct 2026, 20:22 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `github.com/docker/distribution` (Go): affected `<=2.8.3`; no fixed version yet
- `github.com/distribution/distribution/v3` (Go): affected `<3.1.2`; fixed in `3.1.2`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Go client in github.com/docker/distribution (versions up to and including 2.8.3, with no fixed version listed) does not check that the manifest returned by manifests.Get() matches the digest the caller requested. An attacker who controls or can intercept the registry connection can substitute a different manifest, and the client returns it without warning. Upgrade github.com/distribution/distribution/v3 to version 3.1.2 or later, which fixes this issue; no fix is listed for github.com/docker/distribution.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 6.8 Medium, CVSS 3.1: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:H/A:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0022, the 12th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:11 UTC: First seen by agentprime
- 31 Oct 2026, 14:11 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-685w-q87j-wqw3)

## Sources

- [GitHub Advisory Database: GHSA-685w-q87j-wqw3](https://github.com/advisories/GHSA-685w-q87j-wqw3)
- [OSV: GHSA-685w-q87j-wqw3](https://osv.dev/vulnerability/GHSA-685w-q87j-wqw3)
- <https://github.com/distribution/distribution/security/advisories/GHSA-685w-q87j-wqw3>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85747>
- <https://github.com/distribution/distribution/commit/8f91c26c8888a95a36c2357a6e30bc15d4dd76d3>
- <https://github.com/distribution/distribution/commit/960439b09f342cdeb8f1c0e18e8c7349bdcfbf80>
- <https://github.com/distribution/distribution>
- <https://github.com/distribution/distribution/releases/tag/v3.1.2>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-685w-q87j-wqw3>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-685w-q87j-wqw3/>. Everything for agents: <https://agentprime.io/llms.txt>.
