CVE-2026-32689 Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
Description
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.
In 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.
A 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.
This issue affects phoenix: from 1.7.0 before 1.7.22 and from 1.8.0-rc.0 before 1.8.6.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| hex phoenix(Hex) | >= 1.7.0, < 1.7.22; >= 1.8.0, < 1.8.6 | 1.7.22, 1.8.6 | Fixed |
| phoenixframework phoenix | >= 1.7.0, < 1.7.22; >= 1.8.0-rc.0, < 1.8.6; >= 2674c6ea30634667f9b09966b90269393b445953, < 1a67c61ff9ce0a7711662ac7354861917a7c80f7 | 1.7.22, 1.8.6, 1a67c61ff9ce0a7711662ac7354861917a7c80f7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hex phoenix(Hex) | >= 1.7.0, < 1.7.22 | 1.7.22 |
| hex phoenix(Hex) | >= 1.8.0, < 1.8.6 | 1.8.6 |
| phoenixframework phoenix | >= 1.7.0, < 1.7.22 | 1.7.22 |
| phoenixframework phoenix | >= 1.8.0-rc.0, < 1.8.6 | 1.8.6 |
| phoenixframework phoenix | >= 2674c6ea30634667f9b09966b90269393b445953, < 1a67c61ff9ce0a7711662ac7354861917a7c80f7 | 1a67c61ff9ce0a7711662ac7354861917a7c80f7 |
References
- Long-poll NDJSON body splitting causes large memory allocation in Phoenix related vendor-advisory
- EEF CNA record for CVE-2026-32689 related
- OSV record EEF-CVE-2026-32689 related
- Fix commit 1a67c61 in phoenixframework/phoenix patch
- Fix commit 912ea18 in phoenixframework/phoenix patch
- nvd.nist.gov third-party-advisory
- github.com
- Introducing commit 2674c6e in phoenixframework/phoenix related
- ENISA EUVD EUVD-2026-27339 third-party-advisory