CVE-2024-45809 Jwt filter crash in the clear route cache with remote JWKs in envoy
A null pointer dereference in Envoy's JWT filter causes a crash when specific routing and header configurations are used with remote JWKs.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-45809?
CVE-2024-45809 is a medium-severity vulnerability in Envoyproxy Envoy, published on 19 Sep 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Envoy is a cloud-native high-performance edge/middle/service proxy. Jwt filter will lead to an Envoy crash when clear route cache with remote JWKs. In the following case: 1. remote JWKs are used, which requires async header processing; 2. clear_route_cache is enabled on the provider; 3. header operations are enabled in JWT filter, e.g. header to claims feature; 4. the routing table is configured in a way that the JWT header operations modify requests to not match any route. When these conditions are met, a crash is triggered in the upstream code due to nullptr reference conversion from route(). The root cause is the ordering of continueDecoding and clearRouteCache. This issue has been addressed in versions 1.31.2, 1.30.6, and 1.29.9. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Which versions are affected by CVE-2024-45809?
1 open source package ship an affected version, including envoy. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
envoy Bitnami | From 1.29.0 | 1.29.9, 1.30.6, 1.31.2 |
Products include Envoyproxy Envoy.
How do I fix CVE-2024-45809?
Upgrade envoy to a fixed version for your release line: 1.29.9, 1.30.6 or 1.31.2.
Is CVE-2024-45809 being exploited?
There is no known exploitation of CVE-2024-45809 in the wild and no public exploit code.
Other vulnerabilities in Envoyproxy Envoy
Sources
Also known as BIT-envoy-2024-45809, GHSA-wqr5-qmq7-3qw3.