{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "1.36.0"
              },
              {
                "last_affected": "1.36.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "63ee0dc79dce88117c6bd2df5a742f8eb67ea980"
            },
            {
              "last_affected": "1dbcf4d36b57c50b3887fda69e991b88eec80dd5"
            }
          ],
          "repo": "https://github.com/envoyproxy/envoy",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "1.350"
              },
              {
                "last_affected": "1.35.5"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "1.33.11"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "0f0984b04e4879f843a3370ad85163951b393d93"
            },
            {
              "last_affected": "efeb4433e6d181214c732c67418c7ba0f933d017"
            }
          ],
          "repo": "https://github.com/envoyproxy/envoy",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "1.34.0"
              },
              {
                "last_affected": "1.34.9"
              }
            ]
          },
          "events": [
            {
              "introduced": "d7809ba2b07fd869d49bfb122b27f6a7977b4d94"
            },
            {
              "last_affected": "bae9f08572b88c27ae450e82a258621ef48936c1"
            }
          ],
          "repo": "https://github.com/envoyproxy/envoy",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-gcxr-6vrp-wff3"
  ],
  "database_specific": {
    "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"
  },
  "details": "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.",
  "id": "CVE-2025-62504",
  "modified": "2026-04-01T23:10:10.031624512Z",
  "published": "2025-10-16T21:23:41.883Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62504.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/envoyproxy/envoy/security/advisories/GHSA-gcxr-6vrp-wff3"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-62504"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Envoy Lua filter use-after-free when oversized rewritten response body causes crash"
}