CVE-2026-65623 Details
Description
Inefficient Algorithmic Complexity vulnerability in mtrudel bandit allows unauthenticated remote denial of service via CPU exhaustion during WebSocket fragment reassembly. The size guard 'Elixir.Bandit.WebSocket.Connection':oversize_message?/2 called from handle_frame/3 in lib/bandit/websocket/connection.ex appends each non-final continuation frame to a left-nested iolist and then re-measures the entire accumulated buffer with IO.iodata_length/1 on every frame. Because the buffer grows by one element per frame and is fully re-traversed each time, reassembly work is quadratic (O(n^2)) in the number of continuation frames. The max_fragmented_message_size limit (default 8 MB) bounds total bytes but not frame count, and each frame can carry as little as one payload byte, so an attacker can send millions of tiny continuation frames using modest bandwidth to pin a CPU core for minutes to hours. Many concurrent connections can starve the whole server of CPU, denying service to legitimate users. The WebSocket read timeout does not help, because it is an idle timeout evaluated between reads and cannot preempt the synchronous reassembly work spent inside a single callback. This issue affects bandit: from 1.11.0 before 1.12.1.
A denial-of-service vulnerability has been identified in the Bandit library, specifically in versions 1.11.0 prior to 1.12.1. This vulnerability allows unauthenticated remote attackers to exhaust CPU resources by sending fragmented WebSocket messages. The issue arises because the library's WebSocket connection handler appends each non-final continuation frame to a nested list and re-measures the entire buffer with 'IO.iodata_length/1' for every frame. This process creates a quadratic workload in relation to the number of continuation frames. Although the 'max_fragmented_message_size' limit (default 8 MB) restricts the total byte size, it does not account for the number of frames. An attacker can exploit this by sending millions of tiny continuation frames, using minimal bandwidth, to occupy a CPU core for extended periods. This CPU exhaustion can scale across multiple connections, depriving legitimate users of service.
Users can upgrade to Bandit version 1.12.1 or later to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No CVSS 3.x data is available for this CVE.
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 24, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-407 | Inefficient Algorithmic Complexity | EEF |
Affected Products
No affected product data is available for this CVE.
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Modified | CISA-ADP |
| Jul 24, 2026 | New CVE Received | EEF |