CVE-2024-39305CWE-416

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

Medium · published July 1, 2024

CVSS v3.1
6.5
EPSS
1%
Percentile
50.4
In the wild
Unconfirmed
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.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.00647 · 50.4th percentile
Weakness
CWE-416 · Use After Free
Published
2024-07-01T21:10Z
EPSS history
Timeline
  • 01 JUL 21:10Z
    Envoy Proxy use after free when route hash policy is configured with cookie attributes
    cvelistv5