# CVE-2026-42788: HTTP/2 frame size limit checked after body is buffered in bandit

- Severity: Medium 6.9 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-01T20:34:11.911Z
- Modified: 2026-11-25T17:23:06.640Z
- Also known as: GHSA-q6v9-r226-v65f, EEF-CVE-2026-42788
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- bandit: from 0.3.6 before 1.11.0
- mtrudel/bandit: from f00dd69a5b2a4863be585907acd853c4ffd41399 before 1e8e55966da9129016b73d32f0e1df4630e3b463
- bandit (Hex): from 0.3.5 before 1.11.0; from 0.3.6 before 1.11.0
- https://github.com/mtrudel/bandit: from f00dd69a5b2a4863be585907acd853c4ffd41399 before 1e8e55966da9129016b73d32f0e1df4630e3b463

## Every score

- EEF: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f> (exploit, advisory, related, vendor-advisory, web)
- <https://cna.erlef.org/cves/CVE-2026-42788.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-42788> (related, web)
- <https://github.com/mtrudel/bandit/commit/f00dd69a5b2a4863be585907acd853c4ffd41399> (related, web)
- <https://github.com/mtrudel/bandit/commit/1e8e55966da9129016b73d32f0e1df4630e3b463> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42788> (advisory)
- <https://github.com/mtrudel/bandit> (package)
- <https://hex.pm/packages/bandit> (package)

## Sources

- CVE List: [CVE-2026-42788](https://www.cve.org/CVERecord?id=CVE-2026-42788), CVE Terms of Use, modified 2026-11-20
- GitHub Advisory Database: [GHSA-q6v9-r226-v65f](https://github.com/advisories/GHSA-q6v9-r226-v65f), CC-BY-4.0, modified 2026-05-07
- Erlang Ecosystem Foundation: [EEF-CVE-2026-42788](https://osv.dev/vulnerability/EEF-CVE-2026-42788), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-42788](https://nvd.nist.gov/vuln/detail/CVE-2026-42788), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-42788 · Whole record: https://cve.day/CVE-2026-42788.json · Rebuilt by cve.day 2026-11-25T22:59:20.440Z
