CVE-2024-39305
Envoy Proxy use after free when route hash policy is configured with cookie attributes
Mitigation
- Upgrade envoy to 1.27.7 or later.
Who should check
- Anyone running envoyproxy envoy >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7
Vulnerability facts
- Affected
- envoyproxy envoy >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7
- Fixed in
- envoyproxy envoy 1.30.4, envoyproxy envoy 1.29.7, envoyproxy envoy 1.28.5, envoyproxy envoy 1.27.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: None
- Availability impact: Low
- EPSS
- 1.06% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-416
- 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| envoyproxy envoy | >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-39305. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-39305.md Affected: envoyproxy envoy >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7 Fixed in: envoyproxy envoy 1.30.4, envoyproxy envoy 1.29.7, envoyproxy envoy 1.28.5, envoyproxy envoy 1.27.7 Steps: 1. Search this machine and project for envoyproxy envoy: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- 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
FAQ
Is CVE-2024-39305 being exploited?
There is no confirmed exploitation: CVE-2024-39305 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.06% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-39305?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2024-39305?
envoyproxy envoy >= 1.30.0, < 1.30.4; >= 1.29.0, < 1.29.7; >= 1.28.0, < 1.28.5; < 1.27.7.
Is there a fix for CVE-2024-39305?
Yes. Fixed in envoyproxy envoy 1.30.4, envoyproxy envoy 1.29.7, envoyproxy envoy 1.28.5, envoyproxy envoy 1.27.7. Upgrade envoy to 1.27.7 or later.
How do I check if I'm affected by CVE-2024-39305?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.