{"id":"CVE-2026-32689","published":"2026-05-05T15:17:30Z","modified":"2026-11-20T05:55:09Z","title":"Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix","vendor":"phoenixframework","product":"phoenix","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00516,"percentile":0.44834,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/phoenixframework/phoenix/security/advisories/GHSA-628h-q48j-jr6q","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-32689.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-32689","tags":["related"]},{"url":"https://github.com/phoenixframework/phoenix/commit/2674c6ea30634667f9b09966b90269393b445953","tags":["related"]},{"url":"https://github.com/phoenixframework/phoenix/commit/1a67c61ff9ce0a7711662ac7354861917a7c80f7","tags":["patch"]},{"url":"https://github.com/phoenixframework/phoenix/commit/912ea181fd247c21dbcc49fb97d0053b947d81bf","tags":["patch"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":8.97},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"phoenixframework","affectedVersions":[{"vendor":"phoenixframework","product":"phoenix","versions":[">= 1.7.0, < 1.7.22",">= 1.8.0-rc.0, < 1.8.6"]},{"vendor":"phoenixframework","product":"phoenix","versions":[">= 2674c6ea30634667f9b09966b90269393b445953"]}],"fixedVersions":[{"vendor":"phoenixframework","product":"phoenix","versions":["1a67c61ff9ce0a7711662ac7354861917a7c80f7","912ea181fd247c21dbcc49fb97d0053b947d81bf"]}],"workarounds":{"items":["Disable 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."],"from":"CVE.org CNA","provenance":"source"},"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-05T18:37:12.444769Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"phoenix","vulnerableRanges":[">=1.7.0, <1.7.22",">=1.8.0, <1.8.6"],"patched":["1.7.22","1.8.6"],"from":["GHSA-628h-q48j-jr6q"],"provenance":"source"}],"summary":{"text":"The long-poll transport in Phoenix (the publish path in Elixir.Phoenix.Transports.LongPoll) splits NDJSON POST request bodies on newlines with no limit on the number of segments, so a body made entirely of newline bytes causes allocation that grows roughly one-to-one with the body size. An unauthenticated remote attacker can exploit this without user interaction by first obtaining a session token through a simple GET request with a matching Origin header, then sending the crafted body to crash the node and terminate all active sessions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:32:57Z"},"euvd":{"id":"EUVD-2026-27339","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-1000163","published":"2017-11-17","fixed":"1.2.3","kev":false},{"cve":"CVE-2022-42975","published":"2022-10-17","fixed":"1.6.14","kev":false},{"cve":"CVE-2026-32689","published":"2026-05-05","fixed":"1.8.6","kev":false},{"cve":"CVE-2026-56811","published":"2026-07-07","fixed":"1.8.9","kev":false,"link":{"from":"CVE-2026-32689","to":"CVE-2026-56811","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:phoenix","fromFixed":"1.7.22","toFixed":"1.7.24","daysApart":63}]}},{"cve":"CVE-2026-56812","published":"2026-07-07","fixed":"1.8.9","kev":false,"link":{"from":"CVE-2026-32689","to":"CVE-2026-56812","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Hex:phoenix","fromFixed":"1.7.22","toFixed":"1.7.24","daysApart":63}]}}],"package":"Hex:phoenix"}}