{"id":"CVE-2026-32689","aliases":["CVE-2026-32689","GHSA-628h-q48j-jr6q","EEF-CVE-2026-32689"],"related":[],"kind":"vulnerability","state":"published","title":"Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix","summary":"Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.\n\nIn Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.\n\nIn Phoenix.Transports.LongPoll.publish/4, when a POST request is received with Content-Type: application/x-ndjson, the request body is split on newline characters using String.split/2 with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by Enum.map, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching Origin header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nAn unauthenticated denial-of-service vulnerability in Phoenix's long-poll transport allows a remote client to allocate a large amount of memory with a HTTP request. A handful of concurrent requests can be sufficient to let the node run out of memory.\n\nSee also https://cna.erlef.org/cves/CVE-2026-32689.html.\n\n### Details\n\nThe unoptimised code path exists on the `application/x-ndjson` POST handling in the LongPoll transport. The endpoint requires only a session token, which any client can obtain by issuing a GET to the same URL with a matching `Origin` header, so exploitation is unauthenticated.\n\n### Impact\n\nAnyone who runs a LiveView app with a public Longpoll socket or uses a `Phoenix.Socket` with longpoll option.\nLongpoll has been enabled for newly generated Phoenix projects since Phoenix 1.7.11.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in phoenixframework phoenix allows a denial of service via the long-poll transport's NDJSON body handling.\n\nIn `Phoenix.Transports.LongPoll.publish/4`, when a POST request is received with `Content-Type: application/x-ndjson`, the request body is split on newline characters using `String.split/2` with no limit on the number of resulting segments. An attacker can send a body consisting entirely of newline bytes, causing a 1:1 amplification into a list of empty binaries — a 1 MB body produces approximately one million list elements, an 8 MB body approximately 8.4 million. Each element is then walked by `Enum.map`, materializing another list of the same size. This exhausts BEAM memory and schedulers, crashing the node and terminating all active sessions.\n\nA session token required to reach the vulnerable endpoint is freely obtainable by any client via an unauthenticated GET request to the same URL with a matching `Origin` header, making this attack effectively unauthenticated.\n\nThis issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.\n\n## Workarounds\n\nDisable the longpoll transport on all `Phoenix.Socket` declarations, including the LiveView `/live` socket, by removing or setting `longpoll: false`. Note that this prevents clients that cannot use WebSockets from connecting.\n\n## Configurations\n\nA `Phoenix.Socket` must be configured with the `longpoll` option enabled. Phoenix LiveView applications enable the longpoll transport by default via the `/live` socket.","format":"markdown","source":"eef"},{"lang":"es","text":"Vulnerabilidad de asignación de recursos sin límites ni estrangulamiento en phoenixframework phoenix permite una denegación de servicio a través del manejo del cuerpo NDJSON del transporte long-poll.\n\nEn ’Elixir.Phoenix.Transports.LongPoll’:publish/4, cuando se recibe una solicitud POST con Content-Type: application/x-ndjson, el cuerpo de la solicitud se divide en caracteres de nueva línea usando String.split/2 sin límite en el número de segmentos resultantes. Un atacante puede enviar un cuerpo que consiste enteramente en bytes de nueva línea, causando una amplificación 1:1 en una lista de binarios vacíos - un cuerpo de 1 MB produce aproximadamente un millón de elementos de lista, un cuerpo de 8 MB aproximadamente 8.4 millones. Cada elemento es luego recorrido por Enum.map, materializando otra lista del mismo tamaño. Esto agota la memoria y los planificadores de BEAM, colapsando el nodo y terminando todas las sesiones activas.\n\nUn token de sesión requerido para alcanzar el endpoint vulnerable es libremente obtenible por cualquier cliente a través de una solicitud GET no autenticada a la misma URL con una cabecera Origin coincidente, haciendo que este ataque sea efectivamente no autenticado.\n\nEste problema afecta a phoenix: desde 1.7.0 antes de 1.7.22 y 1.8.6.","source":"nvd"}],"published":"2026-05-05T15:17:30.664Z","modified":"2026-11-25T17:23:02.861Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"1.7.0","fixed":"1.7.22","status":"affected"},{"type":"semver","introduced":"1.8.0-rc.0","fixed":"1.8.6","status":"affected"}],"vendor":"phoenixframework","product":"phoenix","package":"phoenix","cpe":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/phoenixframework/phoenix","source":"cvelist"},{"ranges":[{"type":"git","introduced":"2674c6ea30634667f9b09966b90269393b445953","fixed":"*","status":"affected"}],"vendor":"phoenixframework","product":"phoenix","package":"phoenixframework/phoenix","cpe":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","repo":"https://github.com/phoenixframework/phoenix","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.7.22"}],"ecosystem":"Hex","package":"phoenix","purl":"pkg:hex/phoenix","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.8.0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Hex","package":"phoenix","purl":"pkg:hex/phoenix","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.7.0","status":"affected","fixed":"1.7.22"},{"type":"semver","introduced":"1.8.0-rc.0","status":"affected","fixed":"1.8.6"}],"ecosystem":"Hex","package":"phoenix","purl":"pkg:hex/phoenix","source":"eef"},{"ranges":[{"type":"git","introduced":"2674c6ea30634667f9b09966b90269393b445953","status":"affected","fixed":"1a67c61ff9ce0a7711662ac7354861917a7c80f7"},{"type":"git","status":"affected","fixed":"912ea181fd247c21dbcc49fb97d0053b947d81bf"}],"repo":"https://github.com/phoenixframework/phoenix","source":"eef"}],"references":[{"url":"https://github.com/phoenixframework/phoenix/security/advisories/GHSA-628h-q48j-jr6q","tags":["advisory","related","vendor-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-32689.html","tags":["related","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32689","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/phoenixframework/phoenix/commit/2674c6ea30634667f9b09966b90269393b445953","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/phoenixframework/phoenix/commit/1a67c61ff9ce0a7711662ac7354861917a7c80f7","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://github.com/phoenixframework/phoenix/commit/912ea181fd247c21dbcc49fb97d0053b947d81bf","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32689","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/phoenixframework/phoenix","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/phoenix","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-05-05T18:37:12.444Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-32689","url":"https://www.cve.org/CVERecord?id=CVE-2026-32689","licence":"CVE Terms of Use","modified":"2026-11-20T05:55:09.084Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-628h-q48j-jr6q","url":"https://github.com/advisories/GHSA-628h-q48j-jr6q","licence":"CC-BY-4.0","modified":"2026-05-08T20:31:38.812Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-32689","url":"https://osv.dev/vulnerability/EEF-CVE-2026-32689","licence":"CC-BY-4.0","modified":"2026-11-25T17:23:02.861Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-32689","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-32689","licence":"Public domain","modified":"2026-11-20T06:17:25.863Z"}],"updatedAt":"2026-11-25T22:59:20.605Z","epss":{"score":0.00516,"percentile":0.45414,"date":"2026-12-01T12:00:22.000Z"}}