Vulnerabilities > CVE-2022-29227 - Use After Free vulnerability in Envoyproxy Envoy
Summary
Envoy is a cloud-native high-performance edge/middle/service proxy. In versions prior to 1.22.1 if Envoy attempts to send an internal redirect of an HTTP request consisting of more than HTTP headers, there’s a lifetime bug which can be triggered. If while replaying the request Envoy sends a local reply when the redirect headers are processed, the downstream state indicates that the downstream stream is not complete. On sending the local reply, Envoy will attempt to reset the upstream stream, but as it is actually complete, and deleted, this result in a use-after-free. Users are advised to upgrade. Users unable to upgrade are advised to disable internal redirects if crashes are observed.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
References
- https://github.com/envoyproxy/envoy/commit/fe7c69c248f4fe5a9080c7ccb35275b5218bb5ab
- https://github.com/envoyproxy/envoy/commit/fe7c69c248f4fe5a9080c7ccb35275b5218bb5ab
- https://github.com/envoyproxy/envoy/security/advisories/GHSA-rm2p-qvf6-pvr6
- https://github.com/envoyproxy/envoy/security/advisories/GHSA-rm2p-qvf6-pvr6