Skip to main content
← All vulnerabilities
CVE-2024-39305

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.30.4, 1.29.7, 1.28.5, 1.27.7
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • envoyproxy envoy

    From 1.30.0 · fixed in 1.30.4; From 1.29.0 · fixed in 1.29.7; From 1.28.0 · fixed in 1.28.5; fixed in 1.27.7

References 5

GitHub · envoyproxy/envoy