Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 76%

CVE-2026-42786: CWE-770 Allocation of Resources Without Limits or Throttling in mtrudel bandit

0
High
VulnerabilityCVE-2026-42786cvecve-2026-42786cwe-770
Published: Fri May 01 2026 (05/01/2026, 20:34:17 UTC)
Source: CVE Database V5
Vendor/Project: mtrudel
Product: bandit

Description

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
=0.5.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 20:06:26 UTC

Technical Analysis

The vulnerability CVE-2026-42786 in mtrudel bandit (versions 0.5.0 to before 1.11.0) is due to the lack of limits on resource allocation during WebSocket fragment reassembly. The function 'Elixir.Bandit.WebSocket.Connection':handle_frame/3 appends payloads of continuation frames with fin=false to a per-connection iolist without enforcing a maximum cumulative size. While individual frames are limited by max_frame_size, an attacker can send an unbounded stream of continuation frames without fin=1, causing linear growth of the BEAM heap memory until the process is terminated by the OS or supervisor. This memory exhaustion leads to denial of service. Because accumulation occurs before the WebSock.handle_in/2 call, applications have no opportunity to check or limit the size, exposing Phoenix applications that use Bandit to this risk.

Potential Impact

An unauthenticated remote attacker can exploit this vulnerability to cause a denial of service by exhausting server memory through sending a continuous stream of WebSocket continuation frames without the fin flag set. This results in the targeted process's BEAM heap growing without bound until it is killed, disrupting service availability for applications using Bandit for WebSocket connections, including Phoenix Channels and LiveView. There is no indication of data confidentiality or integrity impact.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, consider implementing external protections such as limiting WebSocket connection rates or employing upstream WebSocket proxies that enforce frame size and connection duration limits. Monitor for updates from the mtrudel bandit project for an official patch or temporary fix.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-04-29T18:06:33.251Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69f5124bcbff5d86105840ea

Added to database: 5/1/2026, 8:51:23 PM

Last enriched: 5/27/2026, 8:06:26 PM

Last updated: 6/15/2026, 1:18:32 PM

Views: 174

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses