CVE-2024-39305
CVE-2024-39305 is a medium-severity vulnerability in Envoyproxy Envoy with a CVSS 3.x base score of 6.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-416.
Key facts
- Severity: Medium (CVSS 3.x base score 6.5)
- EPSS exploit prediction: 1% (47th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-37891
- Weakness: CWE-416
- Affected product: Envoyproxy Envoy
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2024-39305?
- 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.
- How severe is CVE-2024-39305?
- CVE-2024-39305 has a CVSS 3.x base score of 6.5, rated medium severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is low, integrity none, and availability low.
- Is CVE-2024-39305 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (47th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-39305?
- CVE-2024-39305 primarily affects Envoyproxy Envoy. In total, 4 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2024-39305?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
- Does CVE-2024-39305 have an EU (EUVD) identifier?
- Yes. CVE-2024-39305 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-37891.
- When was CVE-2024-39305 published?
- CVE-2024-39305 was published on 2024-07-01 and last updated on 2026-06-17.
References
- https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518
- https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45
- https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5
- https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb
- https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f
Affected products (4)
- 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:*:*:*:*:*:*:*
More vulnerabilities in Envoyproxy Envoy
- CVE-2022-29226 — Critical (CVSS 10.0): Envoy is a cloud-native high-performance proxy. In versions prior to 1.22.1 the OAuth filter implementation does not…
- CVE-2019-18802 — Critical (CVSS 9.8): An issue was discovered in Envoy 1.12.0. An untrusted remote client may send an HTTP header (such as Host) with…
- CVE-2019-18801 — Critical (CVSS 9.8): An issue was discovered in Envoy 1.12.0. An untrusted remote client may send HTTP/2 requests that write to the heap…
- CVE-2020-35470 — High (CVSS 8.8): Envoy before 1.16.1 logs an incorrect downstream address because it considers only the directly connected peer, not the…
- CVE-2024-23324 — High (CVSS 8.6): Envoy is a high-performance edge/middle/service proxy. External authentication can be bypassed by downstream…
- CVE-2023-35941 — High (CVSS 8.6): Envoy is an open source edge and service proxy designed for cloud-native applications. Prior to versions 1.27.0,…
All CVEs affecting Envoyproxy Envoy →
Other CWE-416 (Use After Free) vulnerabilities
- CVE-2026-13782 — Critical (CVSS 10.0): Use after free in Browser in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the…
- CVE-2026-4725 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Graphics: Canvas2D component. This vulnerability was fixed in Firefox 149…
- CVE-2026-4688 — Critical (CVSS 10.0): Sandbox escape due to use-after-free in the Disability Access APIs component. This vulnerability was fixed in Firefox…
- CVE-2025-24085 — Critical (CVSS 10.0): A use after free issue was addressed with improved memory management. This issue is fixed in iOS 18.3 and iPadOS 18.3,…
- CVE-2024-43102 — Critical (CVSS 10.0): Concurrent removals of certain anonymous shared memory mappings by using the UMTX_SHM_DESTROY sub-request of…
- CVE-2021-32495 — Critical (CVSS 10.0): Radare2 has a use-after-free vulnerability in pyc parser's get_none_object function. Attacker can read freed memory…