Skip to content
High 8.7

Banditに、細かく分けたチャンク送信でメモリとCPUを使い切られる脆弱性

CVE-2026-111101 First seen on SecPulse

Summary

認証なしの遠隔の攻撃者が、1バイトずつに分けた大量のチャンクを含むリクエストを送ることで、サーバーのメモリとCPUを使い切れる脆弱性です。影響を受けるのはHex版Banditの0.1.0から1.14.0未満で、修正版として1.14.0が公開されています。サービス停止を招くおそれがあるため、該当するバージョンを使っている場合は早めに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.

認証なしの遠隔の攻撃者が、1バイトずつに分けた大量のチャンクを含むリクエストを送ることで、サーバーのメモリとCPUを使い切れる脆弱性です。影響を受けるのはHex版Banditの0.1.0から1.14.0未満で、修正版として1.14.0が公開されています。サービス停止を招くおそれがあるため、該当するバージョンを使っている場合は早めに1.14.0以降へ修正することをおすすめします。

Affected packages

PackageAffected → Fixed
mtrudelbandit
≥ 7201270c34b90f6c9e15c0386c2bb802c0c72ab4, < 220b9dfd27f9a21305be2afc75cbe585ddc24e7a→ 220b9dfd27f9a21305be2afc75cbe585ddc24e7a
Hexbandit
≥ 0.1.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 HTTP/1.1 chunked body reader of mtrudel bandit allows an unauthenticated remote attacker to exhaust server memory and CPU via a request body made of many 1-byte chunks.

The chunked reader in lib/bandit/http1/socket.ex keeps every chunk as its own list cell and binary term until IO.iodata_to_binary/1 joins them, and nothing limits the number of chunks. The :length option of read_body/2 counts only data bytes, so tiny chunks cost far more memory than their payload: 48 MB of 1-byte chunks grew one handler process to about 500 MB and took about 6 s of CPU. The route does not need to read the body, because on keep-alive connections ensure_completed/1 drains unread bodies through the same reader.

This issue affects bandit: from 0.1.0 before 1.14.0.

Details

1. Per-chunk accumulation. do_read_chunked_data! in lib/bandit/http1/socket.ex collects chunks as [body | chunk], adding a cons cell and a binary term for every chunk.

2. Byte-only limit. :length limits data bytes, not the number of chunks, so a body of 1\r\nx\r\n chunks becomes an 8-million-element improper list before IO.iodata_to_binary runs. Sending 48 MB of 1-byte chunks grew the handler heap to about 500 MB and used about 6 s of CPU. The same body as one 8 MB chunk peaked at about 16 MB and took 5 ms.

3. No body read needed. On keep-alive connections, ensure_completed/1 drains unread bodies thro…

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