{"id":"CVE-2025-64527","aliases":["CVE-2025-64527","GHSA-mp85-7mrq-r866","BIT-ENVOY-2025-64527"],"related":[],"kind":"vulnerability","state":"published","title":"Envoy crashes when JWT authentication is configured with the remote JWKS fetching","summary":"Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy crashes when JWT authentication is configured with the remote JWKS fetching, allow_missing_or_failed is enabled, multiple JWT tokens are present in the request headers and the JWKS fetch fails. This is caused by a re-entry bug in the JwksFetcherImpl. When the first token's JWKS fetch fails, onJwksError() callback triggers processing of the second token, which calls fetch() again on the same fetcher object. The original callback's reset() then clears the second fetch's state (receiver_ and request_) which causes a crash when the async HTTP response arrives.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Envoy is a high-performance edge/middle/service proxy. In 1.33.12, 1.34.10, 1.35.6, 1.36.2, and earlier, Envoy crashes when JWT authentication is configured with the remote JWKS fetching, allow_missing_or_failed is enabled, multiple JWT tokens are present in the request headers and the JWKS fetch fails. This is caused by a re-entry bug in the JwksFetcherImpl. When the first token's JWKS fetch fails, onJwksError() callback triggers processing of the second token, which calls fetch() again on the same fetcher object. The original callback's reset() then clears the second fetch's state (receiver_ and request_) which causes a crash when the async HTTP response arrives.","source":"cvelist"},{"lang":"en","text":"### Summary\nEnvoy crashes when JWT authentication is configured with the remote JWKS fetching, `allow_missing_or_failed` is enabled, multiple JWT tokens are present in the request headers and the JWKS fetch fails.\n\n### Details\nThis is caused by a re-entry bug in the `JwksFetcherImpl`. When the first token's JWKS fetch fails, `onJwksError()` callback triggers processing of the second token, which calls fetch() again on the same fetcher object.\n\nThe original callback's reset() then clears the second fetch's state (`receiver_ and request_`) which causes a crash when the async HTTP response arrives.\n\n### PoC\n* `allow_missing_or_failed` or `allow_missing` is enabled\n* The client send 2 Authorization headers\n* the remote JWKS fetching failed\n* There will be crash\n\n### Impact\nDoS and Crash\n\n### Mitigation\n* Disable the `allow_missing_or_failed` or `allow_missing`","format":"markdown","source":"ghsa"},{"lang":"es","text":"Envoy es un proxy de alto rendimiento de borde/intermedio/servicio. En las versiones 1.33.12, 1.34.10, 1.35.6, 1.36.2 y anteriores, Envoy falla cuando la autenticación JWT está configurada con la obtención remota de JWKS, 'allow_missing_or_failed' está habilitado, hay múltiples tokens JWT presentes en los encabezados de la solicitud y la obtención de JWKS falla. Esto es causado por un error de reentrada en JwksFetcherImpl. Cuando la obtención de JWKS del primer token falla, la devolución de llamada 'onJwksError()' activa el procesamiento del segundo token, que llama a 'fetch()' de nuevo en el mismo objeto 'fetcher'. El 'reset()' de la devolución de llamada original luego borra el estado de la segunda obtención ('receiver_' y 'request_'), lo que provoca un fallo cuando llega la respuesta HTTP asíncrona.","source":"nvd"}],"published":"2025-12-03T18:04:35.160Z","modified":"2026-09-25T23:10:00.463Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"version":">= 1.36.0, <= 1.36.2","status":"affected"},{"version":">= 1.35.0, <= 1.35.6","status":"affected"},{"version":">= 1.34.0, <= 1.34.10","status":"affected"},{"version":"<= 1.33.12","status":"affected"}],"vendor":"envoyproxy","product":"envoy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.36.0","status":"affected","fixed":"1.36.3"}],"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.35.0","status":"affected","fixed":"1.35.7"}],"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.34.0","status":"affected","fixed":"1.34.11"}],"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.33.13"}],"ecosystem":"Go","package":"github.com/envoyproxy/envoy","purl":"pkg:golang/github.com/envoyproxy/envoy","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.33.13"},{"status":"affected","introduced":"1.34.0","fixed":"1.34.11"},{"status":"affected","introduced":"1.35.0","fixed":"1.35.7"},{"status":"affected","introduced":"1.36.0","fixed":"1.36.3"}],"vendor":"envoyproxy","product":"envoy","cpe":"cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.33.13"},{"type":"semver","introduced":"1.34.0","status":"affected","fixed":"1.34.11"},{"type":"semver","introduced":"1.35.0","status":"affected","fixed":"1.35.7"},{"type":"semver","introduced":"1.36.0","status":"affected","fixed":"1.36.3"}],"ecosystem":"Bitnami","package":"envoy","purl":"pkg:bitnami/envoy","source":"bitnami"}],"references":[{"url":"https://github.com/envoyproxy/envoy/security/advisories/GHSA-mp85-7mrq-r866","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64527","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/envoyproxy/envoy","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-12-03T20:18:07.790Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64527","url":"https://www.cve.org/CVERecord?id=CVE-2025-64527","licence":"CVE Terms of Use","modified":"2025-12-03T20:18:19.588Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mp85-7mrq-r866","url":"https://github.com/advisories/GHSA-mp85-7mrq-r866","licence":"CC-BY-4.0","modified":"2025-12-06T12:29:15.337Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64527","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64527","licence":"Public domain","modified":"2026-09-25T23:10:00.463Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-ENVOY-2025-64527","url":"https://osv.dev/vulnerability/BIT-ENVOY-2025-64527","licence":"Apache-2.0","modified":"2026-09-08T08:47:30.623Z"}],"updatedAt":"2026-11-25T22:59:08.235Z","epss":{"score":0.00569,"percentile":0.48474,"date":"2026-12-01T12:00:22.000Z"}}