# CVE-2024-39305: Envoy Proxy use after free when route hash policy is configured with cookie attributes

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.65%, higher than 52% of CVEs (2026-12-01)
- Published: 2024-07-01T21:10:23.566Z
- Modified: 2026-09-08T08:47:28.129Z
- Also known as: BIT-ENVOY-2024-39305, GHSA-fp35-g349-h66f
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- envoyproxy envoy: >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7; from 1.28.0 before 1.28.5; from 1.29.0 before 1.29.7; from 1.30.0 before 1.30.4; before 1.27.7; 1.27.6; 1.28.4; 1.29.6; 1.30.3
- envoy (Bitnami): before 1.27.7; from 1.28.0 before 1.28.5; from 1.29.0 before 1.29.7; from 1.30.0 before 1.30.4

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f> (advisory, vendor-advisory)
- <https://github.com/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518> (fix, patch)
- <https://github.com/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45> (fix, patch)
- <https://github.com/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5> (fix, patch)
- <https://github.com/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb> (fix, patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-39305> (web)

## Sources

- CVE List: [CVE-2024-39305](https://www.cve.org/CVERecord?id=CVE-2024-39305), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-39305](https://nvd.nist.gov/vuln/detail/CVE-2024-39305), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-ENVOY-2024-39305](https://osv.dev/vulnerability/BIT-ENVOY-2024-39305), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-39305 · Whole record: https://cve.day/CVE-2024-39305.json · Rebuilt by cve.day 2026-11-25T22:58:42.423Z
