Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish WebSocket connection to vulnerable endpoint
-
DeliverySend initial fragmented frame (fin=0)
-
ExploitStream continuation frames without fin flag
-
ExecutionExhaust BEAM process heap memory
-
PersistTrigger OOM process termination
-
ImpactDeny service to legitimate users
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Remote unauthenticated exploitation against default Bandit configurations (versions 0.5.0-1.10.x) exposing WebSocket endpoints. Attack requires: (1) Application must accept WebSocket connections - standard for Phoenix Channels, LiveView, or any WebSock-based service; (2) No authentication or session establishment needed (PR:N in CVSS vector) - vulnerability triggers during fragment reassembly before application callbacks; (3) Attacker must maintain persistent WebSocket connection to stream continuation frames - transient HTTP requests do not trigger the bug; (4) No special client capabilities required beyond RFC 6455 WebSocket fragmentation support, available in all standard libraries. Limiting factors: Attack only affects processes handling the attacker's specific WebSocket connection, not the entire Bandit instance, due to BEAM per-connection process isolation. Properly configured supervision trees will restart crashed processes, requiring sustained attack traffic to maintain denial of service. The max_frame_size option (if set to non-zero) prevents arbitrarily large individual frames but does not prevent the cumulative fragment attack, so configurations with max_frame_size: 1_000_000 remain fully vulnerable. |
| Impact | High severity denial of service with low real-world exploitation barrier. CVSS 4.0 score of 8.7 reflects network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), and high availability impact (VA:H). The attack is trivially automatable: sending continuation frames in a loop requires no specialized tooling beyond basic WebSocket clients. No authentication (PR:N) or user interaction (UI:N) needed means any internet-exposed Bandit WebSocket endpoint is vulnerable in default configuration. The widespread deployment surface is significant: Phoenix Framework is the dominant Elixir web framework, and Phoenix Channels/LiveView both default to Bandit for WebSocket transport since Bandit became Phoenix's default HTTP server in 2023. However, real-world risk is moderated by several factors: (1) No CISA KEV listing indicates no confirmed active exploitation campaigns; (2) Attack only affects WebSocket endpoints, not HTTP; (3) Impact is limited to process-level DoS rather than kernel panic or RCE; (4) BEAM supervision trees typically auto-restart crashed processes, limiting persistent outage; (5) Patch released promptly (commit 21612c7 on 2026-04-09 per GitHub evidence) with clear upgrade path. Organizations running Phoenix applications with public WebSocket endpoints should prioritize patching, but those without WebSocket features or with network-level rate limiting have reduced exposure. |
| Exploit ScenarioDerived | An unauthenticated remote attacker opens a WebSocket connection to a Phoenix LiveView application running Bandit 1.10.x. The attacker sends an initial Binary frame with fin=0 and a 1KB payload, then streams Continuation frames (opcode 0x0, fin=0) each containing 1MB of padding, sending one frame per second. Bandit appends each payload to the connection's fragment_frame.data iolist without checking total size. After 1000 frames (16 minutes), the accumulated 1GB iolist exhausts available BEAM heap memory, triggering an OOM kill by the OS or supervisor. The Phoenix endpoint becomes unresponsive to legitimate users. The attack succeeds against default configurations and requires only standard WebSocket client libraries. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 01, 2026
Memory exhaustion in Bandit WebSocket server (versions 0.5.0 through 1.10.x) allows unauthenticated remote attackers to trigger denial of service by sending unbounded WebSocket continuation frames without setting the fin flag. The fragment reassembly logic accumulates payloads without checking cumulative message size, bypassing the max_frame_size limit which only applies to individual frames. Applications using Phoenix Channels or LiveView over Bandit expose this attack surface on any WebSocket endpoint. Patch available in version 1.11.0 introduces max_fragmented_message_size parameter (default 8MB). No public exploit code identified at time of analysis, but trivial to reproduce with standard WebSocket libraries.
RemediationAI
Upgrade to Bandit version 1.11.0 or later, which introduces the max_fragmented_message_size configuration option with a safe default of 8MB (commit 21612c7c7b1ce43eccd36d3af3a2299d23513667 available at https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667). Update dependencies in mix.exs with {:bandit, "~> 1.11"} and run mix deps.update bandit. The patch modifies lib/bandit/websocket/connection.ex to track cumulative fragment size via IO.iodata_length(data) and rejects messages exceeding the threshold with WebSocket close code 1009 (message too big). Organizations can tune the limit via websocket_options: [max_fragmented_message_size: bytes] in endpoint configuration; set to 0 to disable (not recommended for internet-facing services). If immediate upgrade is not feasible, implement compensating controls: (1) Deploy a reverse proxy (nginx, HAProxy) with websocket_max_message_size directive to enforce message limits before traffic reaches Bandit; note this requires proxy WebSocket protocol awareness and may add latency. (2) Use network-level rate limiting to restrict WebSocket frame rate per client IP, limiting attack velocity; this reduces but does not eliminate risk as a single slow connection can still accumulate unbounded data. (3) For Phoenix applications, temporarily disable WebSocket transport in endpoint.ex with websocket: false if real-time features are non-critical; this breaks LiveView and Channels functionality. All workarounds have operational trade-offs compared to patching.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Bandit is an Elixir HTTP/WebSocket server library built on the BEAM virtual machine, commonly used as the underlying web server for Phoenix Framework applications. The vulnerability exists in lib/bandit/websocket/connection.ex where the handle_frame/3 function processes WebSocket fragmentation per RFC 6455. WebSocket messages can be split across multiple frames using Continuation frames (opcode 0x0), with fin=0 indicating more fragments follow and fin=1 marking the final fragment. The flawed code appends each continuation frame's payload to an iolist (connection.fragment_frame.data) without tracking total accumulated size. The existing max_frame_size option (CWE-770: Allocation of Resources Without Limits or Throttling) only validates individual frame payloads, not the reassembled message. Because accumulation precedes the WebSock.handle_in/2 callback, application-layer size checks cannot prevent the attack. BEAM processes grow heap memory linearly with iolist size until OS or supervisor kills the process. The CPE cpe:2.3:a:mtrudel:bandit identifies all versions from 0.5.0 (when WebSocket support was introduced) up to but not including 1.11.0.
Know when Bandit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
Lifecycle Timeline
3DescriptionCVE.org
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.
Executive ViewAI
Bandit WebSocket server versions 0.5.0 through 1.10.x are vulnerable to unauthenticated denial-of-service attacks through memory exhaustion via malformed WebSocket frames, affecting any Phoenix or LiveView application using this dependency. An attacker can crash or severely degrade affected web applications without authentication, impacting service availability and user access.
If immediate patching is not possible: (1) Implement network-level rate limiting on WebSocket connection initiation and message throughput; (2) Configure reverse proxy (nginx/HAProxy) to enforce maximum request body and message fragment sizes; (3) Monitor memory consumption on application servers for anomalous growth patterns and auto-restart on threshold; (4) Restrict WebSocket access to trusted networks or require additional authentication layers until patching completes. Apply vendor patch (version 1.11.0+) as primary remediation.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Memory exhaustion in Bandit WebSocket server (versions 0.5.9 through 1.10.x) allows unauthenticated remote attackers to
Denial of service in mtrudel bandit via HTTP/2 frame deserialization allows unauthenticated remote attackers to exhaust
Transport-state spoofing in Bandit 1.0.0 through 1.10.x allows unauthenticated remote attackers to forge HTTPS connectio
HTTP request smuggling in mtrudel bandit before version 1.11.0 allows unauthenticated attackers to bypass edge security
Uncontrolled HTTP/2 flow-control resource consumption in mtrudel/bandit 1.4.0 and later lets an unauthenticated remote p
Bandit's HTTP/2 request body reader amplifies memory use, letting an unauthenticated remote client make a server hold ro
Unauthenticated remote denial of service in mtrudel Bandit (Elixir HTTP server) versions 1.6.1 through 1.11.0 lets any c
CPU exhaustion in bandit 1.11.0 to 1.12.0 allows unauthenticated remote denial-of-service via WebSocket fragment reassem
Unauthenticated remote denial of service in Bandit (the Elixir HTTP/1 web server for Phoenix/Plug applications) versions
Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin
Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent
Unauthenticated remote attackers can exhaust BEAM node memory on default-configured mtrudel Bandit HTTP/2 servers (0.3.3
EUVD-2026-26715
GHSA-pf94-94m9-536p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB