# CVE-2025-62504: Envoy Lua filter use-after-free when oversized rewritten response body causes crash

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-16 · Modified: 2025-10-17
- Record: https://cvemate.com/vulnerability/CVE-2025-62504 · JSON: https://cvemate.com/vulnerability/CVE-2025-62504/json

## Description

```text
Envoy is an open source edge and service proxy. Envoy versions earlier than 1.36.2, 1.35.6, 1.34.10, and 1.33.12 contain a use-after-free vulnerability in the Lua filter. When a Lua script executing in the response phase rewrites a response body so that its size exceeds the configured per_connection_buffer_limit_bytes (default 1MB), Envoy generates a local reply whose headers override the original response headers, leaving dangling references and causing a crash. This results in denial of service. Updating to versions 1.36.2, 1.35.6, 1.34.10, or 1.33.12 fixes the issue. Increasing per_connection_buffer_limit_bytes (and for HTTP/2 the initial_stream_window_size) or increasing per_request_buffer_limit_bytes / request_body_buffer_limit can reduce the likelihood of triggering the condition but does not correct the underlying memory safety flaw.
```

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.434%, percentile 39.426%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- envoyproxy envoy: ≥ 1.36.0, ≤ 1.36.1 \| ≥ 1.350, ≤ 1.35.5 \| ≥ 1.34.0, ≤ 1.34.9 \| ≤ 1.33.11 \| \< 1.33.12 \| ≥ 1.34.0, \< 1.34.10 \| ≥ 1.35.0, \< 1.35.6 \| ≥ 1.36.0, \< 1.36.2

## References

- <https://github.com/envoyproxy/envoy/security/advisories/GHSA-gcxr-6vrp-wff3>

---

Data as of 2026-12-05T09:44:03.632Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
