CVE-2026-42788
published medium CVSS 4.0 · 6.9HTTP/2 frame size limit checked after body is buffered in bandit
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mtrudel | — | bandit0.3.6 to < 1.11.0 · Other versions: unaffected | Affected | Not stated | EEF |
| mtrudel | — | mtrudel/banditbandit · f00dd69a5b2a4863be585907acd853c4ffd41399 to < 1e8e55966da9129016b73d32f0e1df4630e3b463 · Other versions: unaffected | Affected | Not stated | EEF |
Description
Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated memory exhaustion via oversized HTTP/2 frames. 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mtrudel | bandit | 0.3.6 to < 1.11.0 (affected · semver)Default: unaffected | EEF · cna |
| mtrudel | bandit | f00dd69a5b2a4863be585907acd853c4ffd41399 to < 1e8e55966da9129016b73d32f0e1df4630e3b463 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
References
5- EEF CNA record for CVE-2026-42788 https://cna.erlef.org/cves/CVE-2026-42788.html
- Fix commit 1e8e559 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/1e8e55966da9129016b73d32f0e1df4630e3b463
- Introducing commit f00dd69 in mtrudel/bandit https://github.com/mtrudel/bandit/commit/f00dd69a5b2a4863be585907acd853c4ffd41399
- HTTP/2 frame size limit bypassed by late buffer check enables memory exhaustion in Bandit https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f
- OSV record EEF-CVE-2026-42788 https://osv.dev/vulnerability/EEF-CVE-2026-42788
Provider assertions
2EEF · cna
HTTP/2 frame size limit checked after body is buffered in bandit
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5a84863edee844fa2e8e6fbe6ae516442040f29b272c1ba195d2e32046bd33ea
- Ingested
- 20 Nov 2026, 03:30:57 UTC
- Source record
- Official CVE record