CVE-2024-39305: Envoy Proxy use after free when route hash policy is configured with cookie attributes
CVE-2024-39305 affects 17 listed versions of Envoy Proxy Envoy in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Envoy Proxy Envoy
17 of 250 listed versions are affected. Fixed in 1.30.4, 1.29.7, 1.28.5, 1.27.7. The newest release, 1.40.2, is not affected.
1.30.3 1.30.2 1.30.1 1.30.0 1.29.6 1.29.5 1.29.4 1.29.3 1.29.2 1.29.1 1.29.0 1.28.4 1.28.3 1.28.2 1.28.1 1.28.0 1.27.6
What it is
Envoy is a cloud-native, open source edge and service proxy. Prior to versions 1.30.4, 1.29.7, 1.28.5, and 1.27.7. Envoy references already freed memory when route hash policy is configured with cookie attributes. Note that this vulnerability has been fixed in the open as the effect would be immediately apparent if it was configured. Memory allocated for holding attribute values is freed after configuration was parsed. During request processing Envoy will attempt to copy content of de-allocated memory into request cookie header. This can lead to arbitrary content of Envoy's memory to be sent to the upstream service or abnormal process termination. This vulnerability is fixed in Envoy versions v1.30.4, v1.29.7, v1.28.5, and v1.27.7. As a workaround, do not use cookie attributes in route action hash policy.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H (NVD)
Published by GitHub on 1 July 2024. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2024-39305 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.