Envoy has an off-by-one write in JsonEscaper::escapeString()
envoyproxy envoy
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/envoyproxy/envoy Go |
| No fix yet |
Original description
Envoy is a high-performance edge/middle/service proxy. Prior to 1.37.1, 1.36.5, 1.35.8, and 1.34.13, an off-by-one write in Envoy::JsonEscaper::escapeString() can corrupt std::string null-termination, causing undefined behavior and potentially leading to crashes or out-of-bounds reads when the resulting string is later treated as a C-string. This vulnerability is fixed in 1.37.1, 1.36.5, 1.35.8, and 1.34.13.