CVE-2025-62504
JSON

6.5medium

Envoy Lua filter use-after-free when oversized rewritten response body causes crash

Severity
6.5medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.43% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-ENVOY-2025-62504GHSA-gcxr-6vrp-wff3

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.

Affected

Product or packageVersionsReported by
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.2CVE List, NVD
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.2Bitnami Vulnerability Database

All scores

GitHub_M6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Envoy es un proxy de borde y de servicio de código abierto. Las versiones de Envoy anteriores a 1.36.2, 1.35.6, 1.34.10 y 1.33.12 contienen una vulnerabilidad de uso después de liberación en el filtro Lua. Cuando un script Lua que se ejecuta en la fase de respuesta reescribe un cuerpo de respuesta de modo que su tamaño excede el per_connection_buffer_limit_bytes configurado (predeterminado 1MB), Envoy genera una respuesta local cuyas cabeceras anulan las cabeceras de respuesta originales, dejando referencias colgantes y causando un fallo. Esto resulta en denegación de servicio. Actualizar a las versiones 1.36.2, 1.35.6, 1.34.10 o 1.33.12 soluciona el problema. Aumentar per_connection_buffer_limit_bytes (y para HTTP/2 el initial_stream_window_size) o aumentar per_request_buffer_limit_bytes / request_body_buffer_limit puede reducir la probabilidad de activar la condición, pero no corrige el defecto de seguridad de memoria subyacente.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62504 changed 2025-10-17CVE Terms of Use
NVDCVE-2025-62504 changed 2026-10-09Public domain
Bitnami Vulnerability DatabaseBIT-ENVOY-2025-62504 changed 2026-09-08Apache-2.0