Skip to main content

Bandit EUVDEUVD-2026-26715

| CVE-2026-42786 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-05-01 EEF GHSA-pf94-94m9-536p
8.7
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Establish WebSocket connection to vulnerable endpoint
  2. Delivery
    Send initial fragmented frame (fin=0)
  3. Exploit
    Stream continuation frames without fin flag
  4. Execution
    Exhaust BEAM process heap memory
  5. Persist
    Trigger OOM process termination
  6. Impact
    Deny 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

bandit 0.5.0 <1.11.0
bandit 8909391f486d42138c5308410bc5ea49a65f4d46 <1.11.0

Affected Packages

euvd bandit fix: 1.11.0

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

Vendor (EEF) PRIMARY 8.7 HIGH
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
Red Hat 7.5 HIGH

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
May 01, 2026 - 21:22 NVD
8.7 (HIGH)
Patch released
May 01, 2026 - 21:01 nvd
Patch available
CVE Published
May 01, 2026 - 20:34 nvd
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

64
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Bandit

View all
CVE-2026-39804 HIGH POC
8.2 May 01

Memory exhaustion in Bandit WebSocket server (versions 0.5.9 through 1.10.x) allows unauthenticated remote attackers to

CVE-2026-42788 MEDIUM POC
6.9 May 01

Denial of service in mtrudel bandit via HTTP/2 frame deserialization allows unauthenticated remote attackers to exhaust

CVE-2026-39807 MEDIUM POC
6.3 May 01

Transport-state spoofing in Bandit 1.0.0 through 1.10.x allows unauthenticated remote attackers to forge HTTPS connectio

CVE-2026-39805 MEDIUM POC
6.3 May 01

HTTP request smuggling in mtrudel bandit before version 1.11.0 allows unauthenticated attackers to bypass edge security

CVE-2026-105659 HIGH
8.7 Oct 14

Uncontrolled HTTP/2 flow-control resource consumption in mtrudel/bandit 1.4.0 and later lets an unauthenticated remote p

CVE-2026-116078 HIGH
8.7 Oct 28

Bandit's HTTP/2 request body reader amplifies memory use, letting an unauthenticated remote client make a server hold ro

CVE-2026-39806 HIGH
8.7 May 13

Unauthenticated remote denial of service in mtrudel Bandit (Elixir HTTP server) versions 1.6.1 through 1.11.0 lets any c

CVE-2026-65623 HIGH
8.7 Jul 24

CPU exhaustion in bandit 1.11.0 to 1.12.0 allows unauthenticated remote denial-of-service via WebSocket fragment reassem

CVE-2026-39803 HIGH
8.7 May 13

Unauthenticated remote denial of service in Bandit (the Elixir HTTP/1 web server for Phoenix/Plug applications) versions

CVE-2026-108529 HIGH
8.7 Oct 26

Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin

CVE-2026-110499 HIGH
8.7 Oct 26

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

CVE-2026-109584 HIGH
8.7 Oct 26

Unauthenticated remote attackers can exhaust BEAM node memory on default-configured mtrudel Bandit HTTP/2 servers (0.3.3

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy