CVE-2026-42786: CWE-770 Allocation of Resources Without Limits or Throttling in mtrudel bandit
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion. The fragment reassembly path in 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 in lib/bandit/websocket/connection.ex appends every incoming Continuation{fin: false} frame's payload to a per-connection iolist with no cumulative size cap. The existing max_frame_size option only bounds individual frames; a peer that streams an unbounded number of continuation frames without ever setting fin=1 grows BEAM heap linearly until the OS or a supervisor kills the process. Because the accumulation happens before WebSock.handle_in/2 is called, the application has no opportunity to interpose a size check. Phoenix Channels and LiveView both run over WebSock on Bandit, so a stock Phoenix application exposes this surface as soon as it accepts socket connections. This issue affects bandit: from 0.5.0 before 1.11.0.
AI Analysis
Technical Summary
The vulnerability CVE-2026-42786 in mtrudel bandit (versions 0.5.0 to before 1.11.0) is due to the lack of limits on resource allocation during WebSocket fragment reassembly. The function 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 appends payloads of continuation frames with fin=false to a per-connection iolist without enforcing a maximum cumulative size. While individual frames are limited by max_frame_size, an attacker can send an unbounded stream of continuation frames without fin=1, causing linear growth of the BEAM heap memory until the process is terminated by the OS or supervisor. This memory exhaustion leads to denial of service. Because accumulation occurs before the WebSock.handle_in/2 call, applications have no opportunity to check or limit the size, exposing Phoenix applications that use Bandit to this risk.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to cause a denial of service by exhausting server memory through sending a continuous stream of WebSocket continuation frames without the fin flag set. This results in the targeted process's BEAM heap growing without bound until it is killed, disrupting service availability for applications using Bandit for WebSocket connections, including Phoenix Channels and LiveView. There is no indication of data confidentiality or integrity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider implementing external protections such as limiting WebSocket connection rates or employing upstream WebSocket proxies that enforce frame size and connection duration limits. Monitor for updates from the mtrudel bandit project for an official patch or temporary fix.
CVE-2026-42786: CWE-770 Allocation of Resources Without Limits or Throttling in mtrudel bandit
Description
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion. The fragment reassembly path in 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 in lib/bandit/websocket/connection.ex appends every incoming Continuation{fin: false} frame's payload to a per-connection iolist with no cumulative size cap. The existing max_frame_size option only bounds individual frames; a peer that streams an unbounded number of continuation frames without ever setting fin=1 grows BEAM heap linearly until the OS or a supervisor kills the process. Because the accumulation happens before WebSock.handle_in/2 is called, the application has no opportunity to interpose a size check. Phoenix Channels and LiveView both run over WebSock on Bandit, so a stock Phoenix application exposes this surface as soon as it accepts socket connections. This issue affects bandit: from 0.5.0 before 1.11.0.
CVSS v4.0
Score 8.7high
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-42786 in mtrudel bandit (versions 0.5.0 to before 1.11.0) is due to the lack of limits on resource allocation during WebSocket fragment reassembly. The function 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 appends payloads of continuation frames with fin=false to a per-connection iolist without enforcing a maximum cumulative size. While individual frames are limited by max_frame_size, an attacker can send an unbounded stream of continuation frames without fin=1, causing linear growth of the BEAM heap memory until the process is terminated by the OS or supervisor. This memory exhaustion leads to denial of service. Because accumulation occurs before the WebSock.handle_in/2 call, applications have no opportunity to check or limit the size, exposing Phoenix applications that use Bandit to this risk.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability to cause a denial of service by exhausting server memory through sending a continuous stream of WebSocket continuation frames without the fin flag set. This results in the targeted process's BEAM heap growing without bound until it is killed, disrupting service availability for applications using Bandit for WebSocket connections, including Phoenix Channels and LiveView. There is no indication of data confidentiality or integrity impact.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider implementing external protections such as limiting WebSocket connection rates or employing upstream WebSocket proxies that enforce frame size and connection duration limits. Monitor for updates from the mtrudel bandit project for an official patch or temporary fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-04-29T18:06:33.251Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69f5124bcbff5d86105840ea
Added to database: 5/1/2026, 8:51:23 PM
Last enriched: 5/27/2026, 8:06:26 PM
Last updated: 6/15/2026, 1:18:32 PM
Views: 174
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.