CVE-2024-39305: Envoy Proxy use after free when route hash policy is configured with cookie attributes

Published Jul 1, 2024
·
Updated

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.

Affected Software

5 affected components
Envoy Envoy Proxy<1.27.7
Envoyproxy Envoy=1.27.6
Envoyproxy Envoy=1.28.4
Envoyproxy Envoy=1.29.6
Envoyproxy Envoy=1.30.3

Event History

Jul 1, 2024
CVE Published
via MITRE·09:10 PM
Data Sourced
via MITRE·09:10 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-39305?

CVE-2024-39305 is considered a moderate severity vulnerability due to memory management issues leading to potential application instability.

2

How do I fix CVE-2024-39305?

To fix CVE-2024-39305, upgrade Envoy to version 1.30.4 or later, or 1.29.7 or later, or 1.28.5 or later, or 1.27.7 or later.

3

What versions are affected by CVE-2024-39305?

CVE-2024-39305 affects Envoy versions prior to 1.30.4, 1.29.7, 1.28.5, and 1.27.7.

4

What impact does CVE-2024-39305 have on Envoy?

CVE-2024-39305 can cause Envoy to reference already freed memory, potentially leading to crashes or unexpected behaviors.

5

Is there a known exploit for CVE-2024-39305?

As of now, there are no public exploits specifically targeting CVE-2024-39305.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203