Skip to main content

Bandit EUVDEUVD-2026-26711

| CVE-2026-39804 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-05-01 EEF GHSA-frh3-6pv6-rc8j
8.2
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

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

  1. Access
    Complete WebSocket handshake
  2. Delivery
    Negotiate permessage-deflate extension
  3. Exploit
    Send compression-bomb frame (high-ratio compressed payload)
  4. Execution
    Trigger unbounded :zlib.inflate/2
  5. Persist
    Exhaust BEAM node memory
  6. Impact
    OOM 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% 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.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

bandit da4027cff7d2b80319e76fe7a32f84beceec490a <1.11.0
bandit 0.5.9 <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-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

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

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
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.2 (HIGH)
Patch released
May 01, 2026 - 21:01 nvd
Patch available
CVE Published
May 01, 2026 - 20:34 nvd
HIGH 8.2

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 88% 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.0%
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

61
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
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-42786 HIGH POC
8.7 May 01

Memory exhaustion in Bandit WebSocket server (versions 0.5.0 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