CVE-2024-39305

Envoy Proxy use after free when route hash policy is configured with cookie attributes

Published Jul 1, 2024 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-37891 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.
History
Type Values Removed Values Added
CPEs cpe:2.3:a:envoyproxy:envoy:1.27.6:*:*:*:*:*:*:*
cpe:2.3:a:envoyproxy:envoy:1.28.4:*:*:*:*:*:*:*
cpe:2.3:a:envoyproxy:envoy:1.29.6:*:*:*:*:*:*:*
cpe:2.3:a:envoyproxy:envoy:1.30.3:*:*:*:*:*:*:*
Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 2, 2024, 4:19 AM
Reserved
Jun 21, 2024, 6:15 PM
Status
Analyzed
Published
Jul 1, 2024, 9:15 PM
Modified
Jun 17, 2026, 7:41 AM