Skip to main content
Network Thinking Solutions Logo

CVE-2024-39305

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

All CVEs
CVE-2024-39305Published 7/1/2024

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

Vendor advisory
CVSS9.1Critical

Overview

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.

Published
7/1/2024
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
envoy
envoyproxy
1.27.6

Verify advisory

Source
envoy
envoyproxy
1.28.4

Verify advisory

Source
envoy
envoyproxy
1.29.6

Verify advisory

Source
envoy
envoyproxy
1.30.3

Verify advisory

Source
envoy
envoyproxy
>= 1.30.0, < 1.30.4

Verify advisory

Source
envoy
envoyproxy
>= 1.29.0, < 1.29.7

Verify advisory

Source
envoy
envoyproxy
>= 1.28.0, < 1.28.5

Verify advisory

Source
envoy
envoyproxy
< 1.27.7

Verify advisory

Source
envoy
envoyproxy
≥ 1.28.0, < 1.28.5

Verify advisory

Source
envoy
envoyproxy
≥ 1.29.0, < 1.29.7

Verify advisory

Source
envoy
envoyproxy
≥ 1.30.0, < 1.30.4

Verify advisory

Source
envoy
envoyproxy
< 1.27.7

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9.1. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.