{"schemaVersion":3,"id":"CVE-2025-31123","aliases":[],"status":"published","duplicateOf":null,"title":null,"description":"Zitadel is open-source identity infrastructure software. A vulnerability existed where expired keys can be used to retrieve tokens. Specifically, ZITADEL fails to properly check the expiration date of the JWT key when used for Authorization Grants. This allows an attacker with an expired key to obtain valid access tokens. This vulnerability does not affect the use of JWT Profile for OAuth 2.0 Client Authentication on the Token and Introspection endpoints, which correctly reject expired keys. This vulnerability is fixed in 2.71.6, 2.70.8, 2.69.9, 2.68.9, 2.67.13, 2.66.16, 2.65.7, 2.64.6, and 2.63.9.","dates":{"published":"2025-03-31T19:31:40.507Z","modified":"2025-03-31T22:38:38.383Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.7,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.7,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00396,"percentile":0.32418,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.006000000000000016,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0039},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00396,"percentile":0.32418}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0039,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00396,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00396,"percentile":0.32418}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-324","name":"Use of a Key Past its Expiration Date","description":"The product uses a cryptographic key or password past its expiration date, which diminishes its safety significantly by increasing the timing window for cracking attacks against that key.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/324.html"}],"affected":[{"vendor":"zitadel","product":"zitadel","name":"zitadel","label":"zitadel","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.64.0-rc.1, < 2.64.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.65.0-rc.1, < 2.65.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.66.0-rc.1, < 2.66.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.67.0-rc.1, < 2.67.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.68.0-rc.1, < 2.68.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.69.0-rc.1, < 2.69.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.70.0-rc.1, < 2.70.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.71.0-rc.1, < 2.71.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.62.0, < 2.63.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.64.0, < 2.64.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.65.0, < 2.65.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.66.0, < 2.66.16","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.67.0, < 2.67.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.68.0, < 2.68.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.69.0, < 2.69.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.70.0, < 2.70.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.71.0, < 2.71.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.64.0-rc.1, < 2.64.6 | ≥ 2.65.0-rc.1, < 2.65.7 | ≥ 2.66.0-rc.1, < 2.66.16 | ≥ 2.67.0-rc.1, < 2.67.13 | ≥ 2.68.0-rc.1, < 2.68.9 | ≥ 2.69.0-rc.1, < 2.69.9 | ≥ 2.70.0-rc.1, < 2.70.8 | ≥ 2.71.0-rc.1, < 2.71.6 | ≥ 2.62.0, < 2.63.9 | ≥ 2.64.0, < 2.64.6 | ≥ 2.65.0, < 2.65.7 | ≥ 2.66.0, < 2.66.16 | ≥ 2.67.0, < 2.67.13 | ≥ 2.68.0, < 2.68.9 | ≥ 2.69.0, < 2.69.9 | ≥ 2.70.0, < 2.70.8 | ≥ 2.71.0, < 2.71.6","eol":null,"hubHref":"/vendor/zitadel/zitadel"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-h3q7-347g-qwhf","label":"github.com/zitadel/zitadel/security/advisories/GHSA-h3q7-347g-qwhf","hostname":"github.com","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://github.com/zitadel/zitadel/commit/315503beabd679f2e6aec0c004f0f9d2f5b53ed3","label":"github.com/zitadel/zitadel/commit/315503beabd679f2e6aec0c004f0f9d2f5b53ed3","hostname":"github.com","tags":["X Refsource MISC","Patch"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.63.9","label":"github.com/zitadel/zitadel/releases/tag/v2.63.9","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.64.6","label":"github.com/zitadel/zitadel/releases/tag/v2.64.6","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.65.7","label":"github.com/zitadel/zitadel/releases/tag/v2.65.7","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.66.16","label":"github.com/zitadel/zitadel/releases/tag/v2.66.16","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.67.13","label":"github.com/zitadel/zitadel/releases/tag/v2.67.13","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.68.9","label":"github.com/zitadel/zitadel/releases/tag/v2.68.9","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.69.9","label":"github.com/zitadel/zitadel/releases/tag/v2.69.9","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.70.8","label":"github.com/zitadel/zitadel/releases/tag/v2.70.8","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]},{"url":"https://github.com/zitadel/zitadel/releases/tag/v2.71.6","label":"github.com/zitadel/zitadel/releases/tag/v2.71.6","hostname":"github.com","tags":["X Refsource MISC","Release Notes"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2025-03-31T19:31:40.507Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-03-31T22:38:38.383Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:16:37.119Z","stale":false,"partial":false}}