{"id":"CVE-2020-5300","published":"2020-04-06T16:30:14Z","modified":"2024-08-04T08:22:09Z","title":"Disallow replay of `private_key_jwt` by blacklisting JTIs in Hydra","vendor":"ory","product":"hydra","tier":"core","eol":null,"affectedVersions":[{"vendor":"ory","product":"hydra","versions":["< 1.4.0+oryOS.17"]}],"description":{"text":"In Hydra (an OAuth2 Server and OpenID Certified™ OpenID Connect Provider written in Go), before version 1.4.0+oryOS.17, when using client authentication method 'private_key_jwt' [1], OpenId specification says the following about assertion `jti`: \"A unique identifier for the token, which can be used to prevent reuse of the token. These tokens MUST only be used once, unless conditions for reuse were negotiated between the parties\". Hydra does not check the uniqueness of this `jti` value. Exploiting this vulnerability is somewhat difficult because: - TLS protects against MITM which makes it difficult to intercept valid tokens for replay attacks - The expiry time of the JWT gives only a short window of opportunity where it could be replayed This has been patched in version v1.4.0+oryOS.17","provenance":"source","from":"CVE.org"},"summary":null,"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01028,"percentile":0.63651,"date":"2026-11-01","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-294","name":"Authentication Bypass by Capture-replay"}],"references":[{"url":"https://github.com/ory/hydra/security/advisories/GHSA-3p3g-vpw6-4w66","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ory/hydra/commit/700d17d3b7d507de1b1d459a7261d6fb2571ebe3","tags":["x_refsource_MISC"]},{"url":"https://github.com/ory/hydra/releases/tag/v1.4.0","tags":["x_refsource_MISC"]}],"techniques":[{"id":"T1068","name":"Exploitation for Privilege Escalation","tactics":["privilege-escalation"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 1)","mappingType":"uncategorized","evidence":[],"confidence":"low","confidenceNote":"CTID attack_to_cve Phase 1 \"Uncategorized\" mapping (not staged by impact)"},{"id":"T1528","name":"Steal Application Access Token","tactics":["credential-access"],"provenance":"source","basis":"ctid-cve","bases":["ctid-cve"],"basisDetail":"CTID attack_to_cve (Phase 1)","mappingType":"uncategorized","evidence":[],"confidence":"low","confidenceNote":"CTID attack_to_cve Phase 1 \"Uncategorized\" mapping (not staged by impact)"}],"reports":[],"affected":[{"ecosystem":"Go","package":"github.com/ory/hydra","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"from":["GHSA-3p3g-vpw6-4w66","GO-2022-0786"],"provenance":"source"}],"advisories":[{"id":"GHSA-3p3g-vpw6-4w66","url":"https://github.com/advisories/GHSA-3p3g-vpw6-4w66","severity":"MODERATE","ecosystem":"Go","package":"github.com/ory/hydra","vulnerableRanges":["<1.4.0"],"patched":["1.4.0"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-0921","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-0921","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[{"stage":"related","techniques":["T1068","T1528"],"provenance":"source","lowConfidence":true}],"timeline":[{"date":"2020-04-06","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2020-5300","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":16.8,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":12.73,"detail":"percentile 0.6365"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":4.06,"detail":"base score 5.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}