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 perconnectionbufferlimitbytes (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 perconnectionbufferlimitbytes (and for HTTP/2 the initialstreamwindowsize) or increasing perrequestbufferlimitbytes / requestbodybufferlimit can reduce the likelihood of triggering the condition but does not correct the underlying memory safety flaw.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-416"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62504.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"fixed": "1.33.12"
},
{
"introduced": "1.34.0"
},
{
"fixed": "1.34.10"
},
{
"introduced": "1.35.0"
},
{
"fixed": "1.35.6"
},
{
"introduced": "1.36.0"
},
{
"fixed": "1.36.2"
}
],
"source": "CPE_RANGE",
"cpe": "cpe:2.3:a:envoyproxy:envoy:*:*:*:*:*:*:*:*"
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62504.json"
[
{
"target": {
"function": "initializeAndSendRequest",
"file": "test/extensions/filters/http/lua/lua_integration_test.cc"
},
"deprecated": false,
"source": "https://github.com/envoyproxy/envoy/commit/d602fb5d4af3ef3740621590e59187233398e0c0",
"id": "CVE-2025-62504-88355bc5",
"signature_version": "v1",
"digest": {
"length": 518.0,
"function_hash": "165642250652000326040510822155034200423"
},
"signature_type": "Function"
},
{
"target": {
"file": "test/extensions/filters/http/lua/lua_integration_test.cc"
},
"deprecated": false,
"source": "https://github.com/envoyproxy/envoy/commit/d602fb5d4af3ef3740621590e59187233398e0c0",
"id": "CVE-2025-62504-ab17abb2",
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"162488919370654621747968747814311909444",
"226810983615114271767370501606946940034",
"247158085973556930605318978211228881856",
"16464986695022144028157521654265706545",
"268562523828584306666449027530784370520",
"289331889019161617442261340445171339384",
"226755889304640551085226826470812298212",
"125556476522841732105641329883230102978",
"92782970941617784783877127396472631273",
"26342928292701913776309469656215839047",
"64802572305607210945017202571330832127",
"200311650960572541836036539434112614517",
"322558152584984203883389806220749756083",
"145995788222018242579128276155535689277",
"261354598300289774921753314927633111741",
"14201599612969965236895294738190866472"
]
},
"signature_type": "Line"
},
{
"target": {
"function": "initializeFilter",
"file": "test/extensions/filters/http/lua/lua_integration_test.cc"
},
"deprecated": false,
"source": "https://github.com/envoyproxy/envoy/commit/d602fb5d4af3ef3740621590e59187233398e0c0",
"id": "CVE-2025-62504-fd5175a2",
"signature_version": "v1",
"digest": {
"length": 1785.0,
"function_hash": "191732576676655761653032722877931014598"
},
"signature_type": "Function"
}
]
"2026-08-12T15:14:25Z"