{"id":"CVE-2025-31123","summary":"Zitadel Expired JWT Keys Usable for Authorization Grants","details":"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.","aliases":["GHSA-h3q7-347g-qwhf"],"modified":"2026-10-28T02:31:13.547388315Z","published":"2025-03-31T19:31:40.507Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-324"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31123.json"},"references":[{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.63.9"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.64.6"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.65.7"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.66.16"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.67.13"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.68.9"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.69.9"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.70.8"},{"type":"WEB","url":"https://github.com/zitadel/zitadel/releases/tag/v2.71.6"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31123.json"},{"type":"ADVISORY","url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-h3q7-347g-qwhf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31123"},{"type":"FIX","url":"https://github.com/zitadel/zitadel/commit/315503beabd679f2e6aec0c004f0f9d2f5b53ed3"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zitadel/zitadel","events":[{"introduced":"6210239ed5b8c92bc63d14d050137d2985e99bce"},{"fixed":"90255ef7d8144a922a7357428cd317b95e41d17a"},{"introduced":"539e8ed5cc51eea3285778ca05ca913559e32a71"},{"fixed":"9a614fa98d00cbb0127a6f374da5b00aa5dd12b6"},{"introduced":"9a05e671fbe70d78a08f132c1e332b23274146bd"},{"fixed":"12ad907d3e36a0db735719c552e5135ae9e9f4bd"},{"introduced":"1e8756b139bfa9aae404b225eac1292e598f2435"},{"fixed":"2a889a98533cff2e10cf108eb5c649e47d0dca78"},{"introduced":"7efd44126fcbb680412ec0c286164db224659df8"},{"fixed":"596567deb93499b22d2bb4a9be99cf8a557e4196"},{"introduced":"a53fc5f5fa02278bb900df06095ba220e105e81b"},{"fixed":"bb5db00e948bc8327aed99b2f82383ba46a7ca9c"},{"introduced":"92e2ba0ea88f9cf380e3d3b2dd120a462b5f3377"},{"fixed":"314cc1495bd734afe78a2df6955df5ce8288de9a"},{"introduced":"dff9ce7257825d8d16243a7b173fd011d68080c0"},{"fixed":"318761fd879c81ac1716bacfb2f84d8374efd92c"},{"introduced":"bc019a3447b40bb62193b98d80c1103410845bd0"},{"fixed":"4fde7822d8f728007fb0781690a4f8a6d47a1868"},{"fixed":"315503beabd679f2e6aec0c004f0f9d2f5b53ed3"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2.62.0"},{"fixed":"2.63.9"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"2.64.0"},{"fixed":"2.64.6"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"2.65.0"},{"fixed":"2.65.7"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","range":[{"introduced":"2.66.0"},{"fixed":"2.66.16"}]},{"range":[{"introduced":"2.67.0"},{"fixed":"2.67.13"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"2.68.0"},{"fixed":"2.68.9"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","range":[{"introduced":"2.69.0"},{"fixed":"2.69.9"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","range":[{"introduced":"2.70.0"},{"fixed":"2.70.8"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:zitadel:zitadel:*:*:*:*:*:*:*:*","range":[{"introduced":"2.71.0"},{"fixed":"2.71.6"}]},{"range":[{"fixed":"315503beabd679f2e6aec0c004f0f9d2f5b53ed3"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"90255ef7d8144a922a7357428cd317b95e41d17a"}],"source":"REFERENCES_TAG","original_tag":"v2.63.9"},{"original_tag":"v2.64.6","range":[{"fixed":"9a614fa98d00cbb0127a6f374da5b00aa5dd12b6"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"v2.65.7","range":[{"fixed":"12ad907d3e36a0db735719c552e5135ae9e9f4bd"}]},{"source":"REFERENCES_TAG","original_tag":"v2.66.16","range":[{"fixed":"2a889a98533cff2e10cf108eb5c649e47d0dca78"}]},{"original_tag":"v2.67.13","range":[{"fixed":"596567deb93499b22d2bb4a9be99cf8a557e4196"}],"source":"REFERENCES_TAG"},{"range":[{"fixed":"bb5db00e948bc8327aed99b2f82383ba46a7ca9c"}],"source":"REFERENCES_TAG","original_tag":"v2.68.9"},{"original_tag":"v2.69.9","range":[{"fixed":"314cc1495bd734afe78a2df6955df5ce8288de9a"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"v2.70.8","range":[{"fixed":"318761fd879c81ac1716bacfb2f84d8374efd92c"}]},{"source":"REFERENCES_TAG","original_tag":"v2.71.6","range":[{"fixed":"4fde7822d8f728007fb0781690a4f8a6d47a1868"}]}]}}],"versions":["v2.63.8","v2.64.5","v2.65.6","v2.66.15","v2.67.12","v2.68.8","v2.69.8","v2.70.7","v2.71.5","v2.69.7","v2.68.7","v2.67.11","v2.66.14","v2.70.6","v2.71.4","v2.70.5","v2.66.13","v2.67.10","v2.68.6","v2.69.6","v2.71.3","v2.70.4","v2.66.12","v2.67.9","v2.68.5","v2.69.5","v2.71.2","v2.70.3","v2.71.1","v2.66.11","v2.67.8","v2.68.4","v2.69.4","v2.70.2","v2.70.1","v2.71.0","v2.70.0","v2.63.7","v2.64.4","v2.65.5","v2.66.10","v2.67.7","v2.69.3","v2.68.3","v2.69.2","v2.68.2","v2.67.6","v2.66.9","v2.69.1","v2.69.0","v2.68.1","v2.67.5","v2.66.8","v2.67.4","v2.66.7","v2.68.0","v2.66.6","v2.67.3","v2.66.5","v2.67.2","v2.67.1","v2.66.4","v2.67.0","v2.66.3","v2.66.2","v2.66.1","v2.66.0","v2.65.4","v2.65.3","v2.65.2","v2.65.1","v2.64.3","v2.65.0","v2.63.6","v2.64.2","v2.64.1","v2.63.5","v2.64.0","v2.63.4","v2.63.3","v2.63.2","v2.63.1","v2.63.0","v2.62.3","v2.62.2","v2.62.1","v2.62.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31123.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N"}]}