CVE-2025-64527
JSON

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 packageVersionsReported 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.3CVE 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.13GitHub 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.3Bitnami Vulnerability Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
GitHub6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasemedium rating

Classification

CWE-476

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_failed or allow_missing is 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_failed or allow_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

Sources

SourceRecordLicence
CVE ListCVE-2025-64527 changed 2025-12-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-mp85-7mrq-r866 changed 2025-12-06CC-BY-4.0
NVDCVE-2025-64527 changed 2026-09-25Public domain
Bitnami Vulnerability DatabaseBIT-ENVOY-2025-64527 changed 2026-09-08Apache-2.0