CVE-2026-32689: CWE-770 Allocation of Resources Without Limits or Throttling in phoenixframework phoenix
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.
AI Analysis
Technical Summary
This vulnerability in phoenixframework phoenix affects the long-poll transport's NDJSON body handling in the function Elixir.Phoenix.Transports.LongPoll:publish/4. When processing a POST request with Content-Type application/x-ndjson, the request body is split on newline characters without limiting the number of segments. An attacker can exploit this by sending a body composed entirely of newline bytes, causing a large amplification in the number of list elements created. For example, a 1 MB body can produce approximately one million list elements, and an 8 MB body about 8.4 million. This leads to excessive memory and scheduler consumption on the BEAM virtual machine, crashing the node and terminating all active sessions. The session token required to access this endpoint can be obtained unauthenticated via a GET request with a matching Origin header, making the attack effectively unauthenticated. Affected versions include phoenix 1.7.0 through before 1.7.22 and 1.8.6.
Potential Impact
Successful exploitation results in denial of service by exhausting BEAM memory and schedulers, causing the phoenix node to crash and all active sessions to terminate. This disrupts availability of services relying on the affected phoenixframework versions. The attack requires no authentication, increasing the risk of exploitation. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, consider implementing request size limits or throttling on the long-poll transport endpoint to mitigate excessive resource consumption. Monitor vendor communications for updates on official fixes.
CVE-2026-32689: CWE-770 Allocation of Resources Without Limits or Throttling in phoenixframework phoenix
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 '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.
CVSS v4.0
Score 8.7high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in phoenixframework phoenix affects the long-poll transport's NDJSON body handling in the function Elixir.Phoenix.Transports.LongPoll:publish/4. When processing a POST request with Content-Type application/x-ndjson, the request body is split on newline characters without limiting the number of segments. An attacker can exploit this by sending a body composed entirely of newline bytes, causing a large amplification in the number of list elements created. For example, a 1 MB body can produce approximately one million list elements, and an 8 MB body about 8.4 million. This leads to excessive memory and scheduler consumption on the BEAM virtual machine, crashing the node and terminating all active sessions. The session token required to access this endpoint can be obtained unauthenticated via a GET request with a matching Origin header, making the attack effectively unauthenticated. Affected versions include phoenix 1.7.0 through before 1.7.22 and 1.8.6.
Potential Impact
Successful exploitation results in denial of service by exhausting BEAM memory and schedulers, causing the phoenix node to crash and all active sessions to terminate. This disrupts availability of services relying on the affected phoenixframework versions. The attack requires no authentication, increasing the risk of exploitation. There are no known exploits in the wild as of the published date.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, consider implementing request size limits or throttling on the long-poll transport endpoint to mitigate excessive resource consumption. Monitor vendor communications for updates on official fixes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-03-13T09:12:14.475Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69fa191dcbff5d86100ff6c1
Added to database: 5/5/2026, 4:21:49 PM
Last enriched: 5/13/2026, 3:40:17 AM
Last updated: 6/20/2026, 7:34:28 AM
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.