# CVE-2025-24976: Distribution's token authentication allows attacker to inject an untrusted signing key in a JWT

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-02-11 · Modified: 2026-01-23
- Aliases: CGA-23pc-9j8r-hh39, CGA-3x4q-8f3f-4464, CGA-6ppp-86gj-phg9, CGA-722c-mhvg-pj6p, CGA-78x8-46hq-ff9p, CGA-7pq7-pwc5-4x79, CGA-93pr-mxfq-4hcj, CGA-fcrx-6jpp-6rvg, CGA-jx6v-46m2-xmhr, CGA-m3x9-wc86-3pfg, CGA-m4j5-5pfp-95cw, CGA-qg33-8fpj-7qvf, CGA-qqf6-m248-32h3, CGA-r737-mvcg-g45j, CGA-r8rp-7g8q-8m3v, CGA-wjp2-cjmf-65rf, GO-2025-3460, GHSA-phw4-mc57-4hwc, CGA-249h-5w82-g6f7, CGA-2cc5-m6gv-fv94, CGA-2f3h-xwfc-78f6, CGA-2jhv-qx6p-688q, CGA-3579-h84h-pp9w, CGA-37cr-p89x-p4h6, CGA-3v3v-v8vr-724m, CGA-3xg8-3p83-x854, CGA-42j5-2458-xp6g, CGA-46r5-273v-g8hj, CGA-4g33-2753-gv8q, CGA-5532-5mqj-mvr2, CGA-5ch8-xq4c-wjfp, CGA-5jcc-mc66-qv99, CGA-6r83-9p8x-r8h5, CGA-896r-w4mf-c4r6, CGA-8g9m-8j43-7w45, CGA-8hmw-q4hp-hq33, CGA-924g-w7rm-9fg4, CGA-9w83-fj6f-r5mf, CGA-ccg4-mgq7-6hxw, CGA-cg2p-m7px-557p, CGA-ch73-9f2j-8q75, CGA-cjgg-cvh6-8m2p, CGA-cmqg-j9x2-6v5m, CGA-cwh2-469f-r825, CGA-f637-4vx9-w4rw, CGA-f8hp-55wr-3558, CGA-f9p9-m5qq-3q94, CGA-fm24-7p6w-q7g6, CGA-fr75-8vcw-37f3, CGA-gwph-4q5h-4m4w, CGA-gxgw-5gf5-85jf, CGA-h6cg-h7wg-cpjg, CGA-hrjf-2rv9-2q88, CGA-jqr3-6h67-mfvp, CGA-m2cx-h5rv-4w8g, CGA-m6qx-6j2h-59pw, CGA-mjc9-fh2q-qv3p, CGA-mm34-hf5r-c2cr, CGA-p4wg-jxjr-rc8g, CGA-p8xq-mxrc-6gq8, CGA-ppc7-cm79-6c5x, CGA-pxhq-2v84-pq4r, CGA-q28g-jxc5-74pp, CGA-qpcv-76gq-jc3c, CGA-qv8h-52x6-rw57, CGA-r5xr-54xp-pj37, CGA-vvhm-j8w4-jw7x, CGA-wq9m-v82m-mjjm, CGA-wqmr-rpxw-8cmw, CGA-wx9p-8p67-pc6g, CGA-xcvc-xr32-9hf7, CGA-xffh-8hq6-pgf2, CGA-xjmj-7mmv-qj88, CGA-xwmj-5w44-ggm7, CGA-28x4-97m5-8pp8, CGA-2r7f-v7hx-76x5, CGA-5j7w-9wgh-c9x3, CGA-hh5p-mfc6-953g, CGA-hpqp-vvwc-3722, CGA-hw4c-m3w3-57vm, CGA-qxhc-gcp9-7r43, CGA-rrr4-9p94-wh92, CGA-28xr-5g5v-mmjc, CGA-33w8-8fc8-m3fc, CGA-96m9-j44f-m4wr, CGA-qhf6-r9f3-xc9v, CGA-vj4p-hvxp-pjfq
- Record: https://cvemate.com/vulnerability/CVE-2025-24976 · JSON: https://cvemate.com/vulnerability/CVE-2025-24976/json

## Description

```text
Distribution is a toolkit to pack, ship, store, and deliver container content. Systems running registry versions 3.0.0-beta.1 through 3.0.0-rc.2 with token authentication enabled may be vulnerable to an issue in which token authentication allows an attacker to inject an untrusted signing key in a JSON web token (JWT). The issue lies in how the JSON web key (JWK) verification is performed. When a JWT contains a JWK header without a certificate chain, the code only checks if the KeyID (`kid`) matches one of the trusted keys, but doesn't verify that the actual key material matches. A fix for the issue is available at commit 5ea9aa028db65ca5665f6af2c20ecf9dc34e5fcd and expected to be a part of version 3.0.0-rc.3. There is no way to work around this issue without patching if the system requires token authentication.
```

## Signals

- CVSS: 6.6 medium (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U
- EPSS: 0.368%, percentile 32.723%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 54)

- chainguard harbor-2.12 (Chainguard): \< 2.12.4-r43
- chainguard harbor-2.12-exporter (Chainguard): \< 2.12.4-r43
- chainguard harbor-2.12-jobservice (Chainguard): \< 2.12.4-r43
- chainguard harbor-2.12-registryctl (Chainguard): \< 2.12.4-r43
- chainguard harbor-2.13 (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.13-exporter (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.13-jobservice (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.13-registryctl (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.14 (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.14-exporter (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.14-jobservice (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.14-registryctl (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.15 (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.15-exporter (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.15-jobservice (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.15-registryctl (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.16 (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.16-exporter (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.16-jobservice (Chainguard): All versions (No fix recorded)
- chainguard harbor-2.16-registryctl (Chainguard): All versions (No fix recorded)

## References

- <https://github.com/distribution/distribution/security/advisories/GHSA-phw4-mc57-4hwc>
- <https://github.com/distribution/distribution/commit/f4a500caf68169dccb0b54cb90523e68ee1ac2be>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24976.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-24976>
- <https://github.com/distribution/distribution/commit/5ea9aa028db65ca5665f6af2c20ecf9dc34e5fcd>

---

Data as of 2026-12-05T14:13:20.201Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
