CVE-2022-29227: Use after free in Envoy
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.
Other sources
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the vulnerability ID for this Envoy vulnerability?
The vulnerability ID for this Envoy vulnerability is CVE-2022-29227.
What is the affected software for this vulnerability?
The affected software for this vulnerability is Envoy versions prior to 1.22.1.
What is the severity of CVE-2022-29227?
The severity of CVE-2022-29227 is high with a CVSS score of 7.5.
How can this vulnerability be triggered?
This vulnerability can be triggered if Envoy attempts to send an internal redirect of an HTTP request consisting of more than HTTP headers.
Are there any references for this vulnerability?
Yes, you can find references for this vulnerability at the following links: [GitHub Commit](https://github.com/envoyproxy/envoy/commit/fe7c69c248f4fe5a9080c7ccb35275b5218bb5ab) and [GitHub Security Advisory](https://github.com/envoyproxy/envoy/security/advisories/GHSA-rm2p-qvf6-pvr6).