Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessComplete WebSocket handshake
-
DeliveryNegotiate permessage-deflate extension
-
ExploitSend compression-bomb frame (high-ratio compressed payload)
-
ExecutionTrigger unbounded :zlib.inflate/2
-
PersistExhaust BEAM node memory
-
ImpactOOM kill/service crash
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 | Exploitation requires WebSocket permessage-deflate compression to be explicitly enabled via BOTH websocket_options.compress at the Bandit server configuration level AND compress: true passed to WebSockAdapter.upgrade/4 for the specific connection upgrade. Stock Phoenix Framework and LiveView applications are NOT vulnerable as they default to compress: false. Vulnerable configurations are limited to custom Bandit integrations or applications that explicitly opted into WebSocket compression for bandwidth optimization. The attacker must be able to complete a WebSocket handshake (AV:N/PR:N) to a vulnerable endpoint, but no special authentication, user interaction, or privileges are required once compression is enabled. Attack complexity is low (AC:L) once the configuration prerequisite is met-standard WebSocket clients can craft the malicious frames. No platform-specific limitations; affects all BEAM deployments (Erlang/Elixir) running affected Bandit versions with compression enabled. |
| Impact | Real-world risk is moderate despite the high CVSS 8.2 score (CVSS 4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VA:H). The CVSS vector correctly identifies network attack vector and no privileges required, but the AT:P (Attack Complexity: Present) modifier reflects critical exploitation prerequisites: both server-level websocket_options.compress AND per-connection compress: true must be explicitly enabled. Stock Phoenix and LiveView deployments default to compress: false, significantly limiting the attack surface to custom Bandit integrations that opted into WebSocket compression. No EPSS score available for probability assessment. Not listed in CISA KEV, and no public exploit code identified-suggesting theoretical risk rather than active widespread exploitation. SSVC decision framework would likely rate this as 'scheduled' priority: automatable (single-frame attack), high technical impact (node crash), but limited exploitation (requires non-default config). The vulnerability is a legitimate DoS concern for affected configurations, but defenders should verify whether compression is actually enabled before prioritizing. Key missing data: no real-world exploitation reports in references, no attack telemetry from vendor. Risk is CONFIRMED for explicitly-compressed WebSocket deployments, MINIMAL for default configurations. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies a Bandit-based WebSocket service with permessage-deflate compression enabled (discoverable via Sec-WebSocket-Extensions negotiation headers). The attacker completes the WebSocket handshake, then sends a single compressed frame containing highly uniform data (e.g., 10MB of repeated 'A' characters deflated to ~10KB at 1000:1 ratio). The server's inflate/2 function decompresses the frame without size checks, allocating gigabytes of heap memory in the connection process. Repeated frames or concurrent connections from multiple sources exhaust the BEAM node's memory, triggering an OOM kill and crashing the service. The attack requires minimal bandwidth and no authentication, making it efficient for resource-constrained attackers. |
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.9 through 1.10.x) allows unauthenticated remote attackers to crash BEAM nodes via compression bombs when permessage-deflate is enabled. The inflate/2 function decompresses WebSocket frames without output-size limits, enabling attackers to send tiny compressed payloads (~1024:1 ratio) that expand to gigabyte-scale heap allocations. Vendor-released patch available (version 1.11.0). EPSS data not available; no public exploit identified at time of analysis. Exploitation requires non-default configuration (both server-level compress and per-upgrade compress: true options enabled), making stock Phoenix/LiveView applications unaffected.
RemediationAI
Upgrade to Bandit version 1.11.0 or later, which implements safe decompression with bounded inflation ratios (vendor-released patch confirmed via commit 8156921a51e684a951221da7bc30a70a022f722e at https://github.com/mtrudel/bandit/commit/8156921a51e684a951221da7bc30a70a022f722e). The fix introduces :zlib.safeInflate/2 with a default max_inflate_ratio of 25:1, aborting decompression with WebSocket close code 1009 if exceeded. For deployments unable to upgrade immediately, disable WebSocket permessage-deflate compression by setting websocket_options.compress to false at the server level and ensuring compress: false in all WebSockAdapter.upgrade/4 calls-this eliminates the attack vector entirely with no performance penalty for most applications (stock Phoenix/LiveView already use this safe default). Note that disabling compression may increase bandwidth consumption for applications intentionally using compression for large message payloads; quantify this trade-off before applying. If compression is business-critical and upgrade is delayed, implement application-layer rate limiting on WebSocket connection establishment and consider per-source-IP connection limits to slow multi-connection amplification attacks, though this only mitigates not prevents single-connection exploitation. Full advisory and patch details at GHSA-frh3-6pv6-rc8j.
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-based HTTP/WebSocket server built on the BEAM VM. The vulnerability exists in the WebSocket permessage-deflate compression extension (RFC 7692) implementation. The vulnerable code path in lib/bandit/websocket/permessage_deflate.ex:inflate/2 calls Erlang's :zlib.inflate/2 to decompress incoming frames, then materializes the entire output via IO.iodata_to_binary/1 without checking decompressed size. While websocket_options.max_frame_size caps the on-the-wire (compressed) size, it doesn't limit post-decompression output. This is a classic CWE-770 (Allocation of Resources Without Limits) issue-specifically a 'zip bomb' or 'compression bomb' attack against streaming decompression. The BEAM VM allocates memory for the entire decompressed binary in the connection process before application handlers execute. Attackers craft frames with highly compressible data (uniform byte sequences) that compress at ratios exceeding 1000:1, staying under wire-size limits while forcing multi-gigabyte heap allocations. The fix (commit 8156921a) introduces :zlib.safeInflate/2 with a max_inflate_ratio parameter (default 25:1) that incrementally checks decompressed output size and aborts with error code 1009 if the ratio is exceeded.
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:P/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 when WebSocket permessage-deflate compression is enabled.
'Elixir.Bandit.WebSocket.PerMessageDeflate':inflate/2 in lib/bandit/websocket/permessage_deflate.ex calls :zlib.inflate/2 with no output-size cap, then materializes the entire decompressed payload as a single binary via IO.iodata_to_binary/1. The websocket_options.max_frame_size option only bounds the on-the-wire (compressed) frame size, not the decompressed output. A high-ratio compressed frame (e.g. uniform data at ~1024:1 ratio) can stay well under any wire-size limit while forcing GiB-scale heap allocations in the connection process before any application code runs.
An unauthenticated attacker who can open a WebSocket connection can send a single such frame to exhaust the BEAM node's memory and trigger an OOM kill.
This vulnerability requires both Bandit's server-level websocket_options.compress and the per-upgrade compress: true option passed to WebSockAdapter.upgrade/4 to be enabled. Stock Phoenix and LiveView applications are not affected as they default to compress: false.
This issue affects bandit: from 0.5.9 before 1.11.0.
Executive ViewAI
Bandit WebSocket server versions 0.5.9 through 1.10.x are vulnerable to remote denial-of-service attacks via compression bomb payloads when permessage-deflate compression is explicitly enabled. An unauthenticated attacker can crash BEAM application nodes by sending small compressed frames that expand to exhaust server memory, disrupting service availability for all users relying on affected WebSocket functionality.
Vendor-released patch: Bandit 1.11.0. If immediate patching is not feasible, disable permessage-deflate compression by ensuring compress: false in all WebSocket upgrade configurations as an interim mitigation; implement network-level rate limiting on WebSocket frame sizes and monitor heap memory utilization for anomalous allocation patterns.
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.0 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-26711
GHSA-frh3-6pv6-rc8j
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB