Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-62504 EUVD-2025-34836

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

Published Oct 16, 2025 · Updated Oct 17, 2025 · 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.

Affected products

VendorProductAffectedFixed
envoyproxy envoy >= 1.36.0, <= 1.36.1, >= 1.350, <= 1.35.5, >= 1.34.0, <= 1.34.9, <= 1.33.11 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
openSUSE Tumbleweed istioctl 1.27.3-1.1 openSUSE-SU-2025:15655-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 ecs-service-connect-agent v1.34.4.2-1.amzn2023 ALAS2023-2025-1357

Advisories 3

References