6.5medium
Envoy crashes when JWT authentication is configured with the remote JWKS fetching
- Severity
- 6.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.57% (higher than 48% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mp85-7mrq-r866BIT-ENVOY-2025-64527
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| envoyproxy envoy | >= 1.36.0, <= 1.36.2, >= 1.35.0, <= 1.35.6, >= 1.34.0, <= 1.34.10, <= 1.33.12, before 1.33.13, from 1.34.0 before 1.34.11, from 1.35.0 before 1.35.7, from 1.36.0 before 1.36.3 | CVE List, NVD |
| github.com/envoyproxy/envoy (Go) | from 1.36.0 before 1.36.3, from 1.35.0 before 1.35.7, from 1.34.0 before 1.34.11, before 1.33.13 | GitHub Advisory Database |
| envoy (Bitnami) | before 1.33.13, from 1.34.0 before 1.34.11, from 1.35.0 before 1.35.7, from 1.36.0 before 1.36.3 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
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.
Details
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.
PoC
allow_missing_or_failedorallow_missingis enabled- The client send 2 Authorization headers
- the remote JWKS fetching failed
- There will be crash
Impact
DoS and Crash
Mitigation
- Disable the
allow_missing_or_failedorallow_missing
NVD (es)
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.
References
| https://github.com/envoyproxy/envoy/security/advisories/GHSA-mp85-7mrq-r866 | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-64527 | advisory, web | |
| https://github.com/envoyproxy/envoy | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-64527 changed 2025-12-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mp85-7mrq-r866 changed 2025-12-06 | CC-BY-4.0 |
| NVD | CVE-2025-64527 changed 2026-09-25 | Public domain |
| Bitnami Vulnerability Database | BIT-ENVOY-2025-64527 changed 2026-09-08 | Apache-2.0 |