Envoy crashes when JWT authentication is configured with the remote JWKS fetching
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 packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/envoyproxy/envoyGo | >= 1.36.0, < 1.36.3 | 1.36.3 |
github.com/envoyproxy/envoyGo | >= 1.35.0, < 1.35.7 | 1.35.7 |
github.com/envoyproxy/envoyGo | >= 1.34.0, < 1.34.11 | 1.34.11 |
github.com/envoyproxy/envoyGo | < 1.33.13 | 1.33.13 |
Affected products
1- Range: >= 1.36.0, <= 1.36.2
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-mp85-7mrq-r866ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-64527ghsaADVISORY
- github.com/envoyproxy/envoy/security/advisories/GHSA-mp85-7mrq-r866ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.