Skip to content
High 8.7

Bandit WebSocketの脆弱性、メモリ枯渇のおそれ

CVE-2026-114213 First seen on SecPulse

Summary

Bandit 1.11.0から1.14.0より前のWebSocketで、細かく分割された継続フレームを大量に送られ、サーバーのメモリを使い果たすおそれがあります。認証は不要で、CVSS v4は8.7です。修正版の1.14.0以降にアップデートしてください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Bandit 1.11.0から1.14.0より前のWebSocketで、細かく分割された継続フレームを大量に送られ、サーバーのメモリを使い果たすおそれがあります。認証は不要で、CVSS v4は8.7です。修正版の1.14.0以降にアップデートしてください。

Affected packages

PackageAffected → Fixed
mtrudelbandit
≥ 21612c7c7b1ce43eccd36d3af3a2299d23513667, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a
Hexbandit
≥ 1.11.0, < 1.14.0→ 1.14.0

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

Summary

Allocation of Resources Without Limits or Throttling vulnerability in the WebSocket fragment reassembly of mtrudel bandit allows an unauthenticated remote attacker to exhaust server memory via a fragmented message made of many 1-byte continuation frames.

Bandit.WebSocket.Connection checks max_fragmented_message_size against the payload bytes received, but keeps every non-final continuation frame as a new list cell around its own binary, and nothing limits the number of fragments. A 1-byte fragment costs 7 bytes on the wire but about 150 to 170 bytes of server memory, so one connection can hold about 150 times the configured limit, roughly 1.2 to 1.4 GB at the default 8 MB. Ping frames between fragments keep the connection alive past the idle timeout.

This issue affects bandit: from 1.11.0 before 1.14.0.

Details

1. Byte-only limit. In Bandit.WebSocket.Connection (lib/bandit/websocket/connection.ex), the fragment limit is checked against fragment_size, which only adds up payload bytes (IO.iodata_length(frame.data)).

2. Per-fragment accumulation. Each non-final continuation frame is stored as a new cons cell around its own binary, [connection.fragment_frame.data | frame.data]. Only zero-length fragments are kept out, so 1-byte fragments are accepted. Each costs 7 bytes on the wire but keeps about 150 to 170 bytes in memory. Against 1.12.5, 1M fragments kept about 169 MB and 3M kept about 450 MB, growing linearly, and about 56 MB of traff…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details