EEF-CVE-2026-32689

Source
https://cna.erlef.org/osv/EEF-CVE-2026-32689.html
Import Source
https://cna.erlef.org/osv/EEF-CVE-2026-32689.json
JSON Data
https://api.osv.dev/v1/vulns/EEF-CVE-2026-32689
Aliases
Published
2026-05-05T15:17:30.664Z
Modified
2026-05-07T04:25:07.013Z
Severity
  • 8.7 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Long-poll NDJSON body splitting causes unbounded memory allocation in Phoenix
Details

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.

In 'Elixir.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 1.8.6.

Workaround

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.

Configuration

A Phoenix.Socket must be configured with the longpoll option enabled. Phoenix LiveView applications enable the longpoll transport by default via the /live socket.

Database specific
{
    "cwe_ids": [
        "CWE-770"
    ],
    "capec_ids": [
        "CAPEC-130"
    ],
    "cpe_ids": [
        "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
    ]
}
References
Credits
    • Peter Ullrich - FINDER

Affected packages

Hex / phoenix

Package

Name
phoenix
Purl
pkg:hex/phoenix

Affected ranges

Type
SEMVER
Events
Introduced
1.7.0
Fixed
1.7.22
Type
SEMVER
Events
Introduced
1.8.0
Fixed
1.8.6

Affected versions

1.*
1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.5
1.7.6
1.7.7
1.7.8
1.7.9
1.7.10
1.7.11
1.7.12
1.7.13
1.7.14
1.7.15
1.7.16
1.7.17
1.7.18
1.7.19
1.7.20
1.7.21
1.8.0
1.8.1
1.8.2
1.8.3
1.8.4
1.8.5

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-32689.json"

Git / github.com/phoenixframework/phoenix

Affected ranges

Type
GIT
Repo
https://github.com/phoenixframework/phoenix
Events

Affected versions

v1.*
v1.7.0
v1.7.1
v1.7.10
v1.7.11
v1.7.12
v1.7.13
v1.7.14
v1.7.15
v1.7.16
v1.7.18
v1.7.19
v1.7.2
v1.7.20
v1.7.3
v1.7.4
v1.7.5
v1.7.6
v1.7.7
v1.7.8
v1.7.9
v1.8.0
v1.8.0-rc.0
v1.8.0-rc.1
v1.8.0-rc.2
v1.8.0-rc.3
v1.8.0-rc.4
v1.8.1
v1.8.2
v1.8.3
v1.8.4
v1.8.5

Database specific

source
"https://cna.erlef.org/osv/EEF-CVE-2026-32689.json"