PT-2026-24623 · Go · Github.Com/Envoyproxy/Envoy
Publicado
2026-03-10
·
Atualizado
2026-03-10
CVSS v3.1
5.3
Média
| Vetor | AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Summary
At the rate limit filter, if we enabled the response phase limit with
apply on stream done in the rate limit configuration and the response phase limit request fails directly, it may crash Envoy.Details
When both the request phase limit and response phase limit are enabled, the safe gRPC client instance will be re-used for both the request phase request and response phase request.
But after the request phase request is done, the inner state of the request phase limit request in gRPC client is not cleaned up. When we send the second limit request at response phase, and the second limit request fails directly, we may access the previous request's inner state and result in crash.
PoC
This need to mock the network failure. But we have reproduced by unit test locally.
Impact
This only happens when both the request phase limit and response phase limit are enabled in the rate limit filter, and requires the request to rate limit service fails directly (For example, if from Envoy's perspective, no healthy endpoint for rate limit service may result the request fails directly). That's say, not easy to trigger this.
To workaround
This could be worked around by splitting the rate limit filter. That is, if there is a rate limit filter that contains normal rate limit configuration (request phase limit, without
apply on stream done) and also rate limit configuration with apply on stream done (response phase limit). Splitting them into two rate limit filters and ensure one filter only contains normal rate limit configuration (without apply on stream done), and one only contains rate limit configuration with apply on stream done could avoid this problem.Credit
Mandar Jog (mandarjog@gmail.com)
Correção
Use After Free
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Enumeração de Fraquezas
Identificadores relacionados
Produtos afetados
Github.Com/Envoyproxy/Envoy