CVE-2024-39305 json
Envoy Proxy use after free when route hash policy is configured with cookie attributes
published 2024-07-01 2 y ago modified 2026-09-08 2 mo ago also BIT-envoy-2024-39305 , EUVD-2024-37891 , GHSA-fp35-g349-h66f
- cvss
- 6.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
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.
Patch / fix
- bitnami envoy 1.27.7, 1.28.5, 1.29.7, 1.30.4
- envoyproxy envoy 1.27.7, 1.28.5, 1.29.7, 1.30.4
- istioctl openSUSE Tumbleweed 1.22.3-1.1
opensuse advisories openSUSE-SU-2024:14198-1
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | envoy | <1.27.7 >=1.28.0, <1.28.5 >=1.29.0, <1.29.7 >=1.30.0, <1.30.4 |
1.27.7 1.28.5 1.29.7 1.30.4 |
Affected products
- envoyproxy envoy
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
github.com
/envoyproxy/envoy/commit/02a06681fbe0e039b1c7a9215257a7537eddb518
patch
-
github.com
/envoyproxy/envoy/commit/50b384cb203a1f2894324cbae64b6d9bc44cce45
patch
-
github.com
/envoyproxy/envoy/commit/99b6e525fb9f6f6f19a0425f779bc776f121c7e5
patch
-
github.com
/envoyproxy/envoy/commit/b7f509607ad860fd6a63cde4f7d6f0197f9f63bb
patch
-
github.com
/envoyproxy/envoy/security/advisories/GHSA-fp35-g349-h66f
vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-39305
web
Sources
- CVE List CVE-2024-39305
- NVD CVE-2024-39305
- OSV BIT-envoy-2024-39305
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.