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

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-10-16T21:23:41.883Z
- Modified: 2026-10-09T10:10:00.193Z
- Also known as: BIT-ENVOY-2025-62504, GHSA-gcxr-6vrp-wff3
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- envoyproxy envoy: >= 1.36.0, <= 1.36.1; >= 1.350, <= 1.35.5; >= 1.34.0, <= 1.34.9; <= 1.33.11; before 1.33.12; from 1.34.0 before 1.34.10; from 1.35.0 before 1.35.6; from 1.36.0 before 1.36.2
- envoy (Bitnami): before 1.33.12; from 1.34.0 before 1.34.10; from 1.35.0 before 1.35.6; from 1.36.0 before 1.36.2

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/envoyproxy/envoy/security/advisories/GHSA-gcxr-6vrp-wff3> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-62504> (web)

## Sources

- CVE List: [CVE-2025-62504](https://www.cve.org/CVERecord?id=CVE-2025-62504), CVE Terms of Use, modified 2025-10-17
- NVD: [CVE-2025-62504](https://nvd.nist.gov/vuln/detail/CVE-2025-62504), Public domain, modified 2026-10-09
- Bitnami Vulnerability Database: [BIT-ENVOY-2025-62504](https://osv.dev/vulnerability/BIT-ENVOY-2025-62504), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-62504 · Whole record: https://cve.day/CVE-2025-62504.json · Rebuilt by cve.day 2026-11-25T22:59:06.518Z
