If you're running Envoy with the oghttp2 codec enabled, you have a use-after-free vulnerability in how the codec processes HTTP/2 trailers that arrive without the END_STREAM flag. The issue is that nghttp2 — Envoy's default codec — correctly rejects this protocol state, while oghttp2 accepts it and then crashes during stream teardown. The trigger isn't adversarial input; it's any upstream backend sending valid but uncommon HTTP/2 responses with trailers. This means the vulnerability fires from ordinary traffic, not attack payloads.

The upstream-only trigger changes the threat model. Envoy operators typically treat downstream (client) traffic as untrusted and upstream (backend) traffic as trusted. This CVE quietly breaks that assumption — a compliant backend sending trailers without END_STREAM becomes an attack surface with no configuration change required on your part. The 'optional' status of oghttp2 likely led you to assume it was a safe performance optimization, but the 'optional' label meant the Envoy team wasn't maintaining behavioral equivalence between the two codecs. The trailer-handling divergence existed across multiple release branches (1.36.10, 1.37.6, 1.38.4, 1.39.1), confirming this wasn't a recent regression — it was structural divergence that went unexamined.

Your immediate action: upgrade to the fixed versions if oghttp2 is enabled, or disable oghttp2 and revert to nghttp2. Beyond patching, treat optional codecs in critical proxies as distinct security boundaries — the 'optional' label implies different maintenance rigor, not just different performance. Audit whether any other non-default components in your Envoy deployment lack behavioral equivalence testing against their defaults. This pattern (use-after-free from behavioral divergence in HTTP/2 trailer handling) has appeared before in Envoy's history; treat this CVE as a signal to review codec selection decisions across your fleet.