{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-24976","id":"CVE-2025-24976","title":"Distribution's token authentication allows attacker to inject an untrusted signing key in a JWT","description":"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 J","descriptionLong":"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.","published":"2025-02-11T15:48:59.700Z","updated":"2026-10-28T02:30:53.373547898Z","reserved":"2025-01-29T15:18:03.211Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":6.6,"vector":"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","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"4.0","score":6.6,"vector":"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","rating":"medium","source":"GitHub_M"},{"version":"4.0","score":6.6,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"github.com"},{"version":"4.0","score":null,"vector":"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","rating":"unrated","source":"OSV"}],"rating":"medium","products":["distribution"],"affectedProducts":[{"vendor":"distribution","product":"distribution","defaultStatus":null,"versions":[{"version":">= 3.0.0-beta.1, <= 3.0.0-rc.2","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/distribution/distribution","purl":"pkg:golang/github.com/distribution/distribution","ranges":["all versions"],"fixed":[],"advisory":"GO-2025-3460"}],"cwes":["CWE-639"],"aliases":["GHSA-phw4-mc57-4hwc","GO-2025-3460"],"references":[{"url":"https://github.com/distribution/distribution/security/advisories/GHSA-phw4-mc57-4hwc","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/distribution/distribution/commit/f4a500caf68169dccb0b54cb90523e68ee1ac2be","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/24xxx/CVE-2025-24976.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24976","tags":["advisory"]},{"url":"https://github.com/distribution/distribution/commit/5ea9aa028db65ca5665f6af2c20ecf9dc34e5fcd","tags":["fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00368,"epssPercentile":0.31363,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-24976","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-24976","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-24976","ok":true,"note":"1 package"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-24976","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}