Envoy
Envoy: Race condition in Dynamic Forward Proxy leads to use-after-free and segmentation faults
Envoy is an open source L7 proxy and communication bus designed for large modern service oriented architectures. Versions 1.34.0 through 1.34.4 and 1.35.0 contain a use-after-free (UAF) vulnerability in the DNS cache, causing abnormal process termination. The vulnerability is in Envoy's Dynamic Forward Proxy implementation, occurring when a completion callback for a DNS resolution triggers new DNS resolutions or removes existing pending resolutions. This condition may occur when the following conditions are met: dynamic Forwarding Filter is enabled, the `envoy.reloadable_features.dfp_cluster_resolves_hosts` runtime flag is enabled, and the Host header is modified between the Dynamic Forwarding Filter and Router filters. This issue is resolved in versions 1.34.5 and 1.35.1. To work around this issue, set the envoy.reloadable_features.dfp_cluster_resolves_hosts runtime flag to false.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1.34.0, < 1.34.5
- >= 1.35.0, < 1.35.1
Fixed in 1.34.5, 1.35.1
Mitigation
Upgrade envoy to 1.34.5 or 1.35.1 or later.
References
- Vendor advisory github.com/envoyproxy/envoy/security/advisorie…
- Release notes github.com/envoyproxy/envoy/releases/tag/v1.34…
- Release notes github.com/envoyproxy/envoy/releases/tag/v1.35…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.