Description
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated memory exhaustion via oversized HTTP/2 frames.

'Elixir.Bandit.HTTP2.Frame':deserialize/2 in lib/bandit/http2/frame.ex checks the SETTINGS_MAX_FRAME_SIZE limit only after pattern-matching payload::binary-size(length), which requires the entire frame body to be present in memory before either the accept or reject clause can fire. A peer that announces a frame length up to the 24-bit maximum (~16 MiB) causes the server to buffer that entire body before the size guard is evaluated, regardless of the max_frame_size negotiated during the HTTP/2 handshake (default 16 KiB per RFC 9113).

An unauthenticated attacker holding many concurrent connections can force the server to buffer far more memory than the negotiated frame size limit should permit, leading to memory pressure and potential denial of service.

This issue affects bandit: from 0.3.6 before 1.11.0.
Published: 2026-05-01
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Bandit HTTP/2 server fails to enforce the negotiated maximum frame size before buffering the frame body, allowing an attacker to send a frame up to 16 MiB in size, resulting in full memory allocation of each requested frame. Because the check occurs only after the payload is stored in memory, a high‑volume, unauthenticated attacker can rapidly deplete server RAM. The vulnerability is a classic example of resource exhaustion, classified as CWE‑770, and can cause a denial‑of‑service on a vulnerable instance.

Affected Systems

The Elixir Bandit web server developed by mtrudel, from versions 0.3.6 through 1.10.x, is affected. The issue is present in the core HTTP/2 frame handling module and requires no special configuration. Clients that can establish multiple HTTP/2 connections may trigger the over‑buffering regardless of the server’s negotiated SETTINGS_MAX_FRAME_SIZE value.

Risk and Exploitability

The CVSS score of 6.9 reflects the moderate severity of the denial‑of‑service impact. While an exploit is possible without authentication, the required persistence of many concurrent connections reduces the practical exploitation probability, and the vulnerability is not currently listed in the CISA KEV catalog. Attackers would need to initiate remote HTTP/2 requests, send oversized frames, and maintain several parallel connections to overwhelm target memory.

Generated by OpenCVE AI on May 2, 2026 at 06:58 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Bandit to version 1.11.0 or later, which includes a guard that validates the SETTINGS_MAX_FRAME_SIZE before buffering the frame body.
  • Deploy a reverse proxy or load balancer that rejects HTTP/2 frames exceeding a safe size threshold, ensuring malformed frames never reach the Bandit server.
  • Configure memory limits for the Bandit process using operating‑system controls such as cgroups or ulimit, and monitor memory consumption to automatically restart the service if a threshold is exceeded.

Generated by OpenCVE AI on May 2, 2026 at 06:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 02 May 2026 02:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 01 May 2026 21:00:00 +0000

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated memory exhaustion via oversized HTTP/2 frames. 'Elixir.Bandit.HTTP2.Frame':deserialize/2 in lib/bandit/http2/frame.ex checks the SETTINGS_MAX_FRAME_SIZE limit only after pattern-matching payload::binary-size(length), which requires the entire frame body to be present in memory before either the accept or reject clause can fire. A peer that announces a frame length up to the 24-bit maximum (~16 MiB) causes the server to buffer that entire body before the size guard is evaluated, regardless of the max_frame_size negotiated during the HTTP/2 handshake (default 16 KiB per RFC 9113). An unauthenticated attacker holding many concurrent connections can force the server to buffer far more memory than the negotiated frame size limit should permit, leading to memory pressure and potential denial of service. This issue affects bandit: from 0.3.6 before 1.11.0.
Title HTTP/2 frame size limit checked after body is buffered in bandit
First Time appeared Mtrudel
Mtrudel bandit
Weaknesses CWE-770
CPEs cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*
Vendors & Products Mtrudel
Mtrudel bandit
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-05-02T04:17:21.038Z

Reserved: 2026-04-29T18:06:33.251Z

Link: CVE-2026-42788

cve-icon Vulnrichment

Updated: 2026-05-02T01:14:34.360Z

cve-icon NVD

Status : Received

Published: 2026-05-01T21:16:17.500

Modified: 2026-05-02T02:16:00.610

Link: CVE-2026-42788

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-02T07:00:06Z

Weaknesses