CVE-2026-42788
HTTP/2 frame size limit checked after body is buffered in bandit
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.
INFO
Published Date :
May 1, 2026, 9:16 p.m.
Last Modified :
Nov. 20, 2026, 4:17 a.m.
Remotely Exploit :
Yes !
Source :
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 4.0 | MEDIUM | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db | ||||
| CVSS 4.0 | MEDIUM | 6b3ad84c-e1a6-4bf7-a703-f496b71e49db |
Solution
- Update Bandit to version 1.11.0 or later.
- Configure stricter frame size limits in Bandit.
- Monitor server memory usage closely.
- Apply security patches promptly.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-42788.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-42788 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-42788
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-42788 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-42788 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Nov. 20, 2026
Action Type Old Value New Value Changed 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. 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. Added Reference https://cna.erlef.org/cves/CVE-2026-42788.html Added Reference https://github.com/mtrudel/bandit/commit/1e8e55966da9129016b73d32f0e1df4630e3b463 Added Reference https://github.com/mtrudel/bandit/commit/f00dd69a5b2a4863be585907acd853c4ffd41399 Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-42788 Removed Reference https://cna.erlef.org/cves/CVE-2026-42788.html Removed Reference https://github.com/mtrudel/bandit/commit/1e8e55966da9129016b73d32f0e1df4630e3b463 Removed Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f Removed Reference https://osv.dev/vulnerability/EEF-CVE-2026-42788 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Nov. 20, 2026
Action Type Old Value New Value Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f Removed Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f -
CVE Translated by [email protected]
Oct. 26, 2026
Action Type Old Value New Value Added Translation Title: bandit de mtrudel, Description: Vulnerabilidad de asignación de recursos sin límites o estrangulamiento en mtrudel bandit permite el agotamiento de memoria no autenticado a través de tramas HTTP/2 sobredimensionadas. ’Elixir.Bandit.HTTP2.Frame’:deserialize/2 en lib/bandit/http2/frame.ex verifica el límite SETTINGS_MAX_FRAME_SIZE solo después de la coincidencia de patrones payload::binary-size(length), lo que requiere que todo el cuerpo de la trama esté presente en memoria antes de que se pueda activar la cláusula de aceptación o rechazo. Un par que anuncia una longitud de trama de hasta el máximo de 24 bits (~16 MiB) hace que el servidor almacene en búfer todo ese cuerpo antes de que se evalúe la protección de tamaño, independientemente del max_frame_size negociado durante el handshake de HTTP/2 (16 KiB por defecto según RFC 9113). Un atacante no autenticado que mantiene muchas conexiones concurrentes puede forzar al servidor a almacenar en búfer mucha más memoria de lo que debería permitir el límite de tamaño de trama negociado, lo que lleva a una presión de memoria y una potencial denegación de servicio. Este problema afecta a bandit: desde 0.3.6 antes de 1.11.0. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Jun. 17, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-42788', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-05-02T01:14:16.975049Z'} -
CVE Modified by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'cpes': ['cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/mtrudel/bandit', 'vendor': 'mtrudel', 'modules': ["'Elixir.Bandit.HTTP2.Frame'"], 'product': 'bandit', 'versions': [{'status': 'affected', 'version': '0.3.6', 'lessThan': '1.11.0', 'versionType': 'semver'}], 'packageURL': 'pkg:hex/bandit', 'packageName': 'bandit', 'programFiles': ['lib/bandit/http2/frame.ex'], 'collectionURL': 'https://repo.hex.pm', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Bandit.HTTP2.Frame':deserialize/2"}]}, {'cpes': ['cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*'], 'repo': 'https://github.com/mtrudel/bandit', 'vendor': 'mtrudel', 'modules': ["'Elixir.Bandit.HTTP2.Frame'"], 'product': 'bandit', 'versions': [{'status': 'affected', 'version': 'f00dd69a5b2a4863be585907acd853c4ffd41399', 'lessThan': '1e8e55966da9129016b73d32f0e1df4630e3b463', 'versionType': 'git'}], 'packageURL': 'pkg:github/mtrudel/bandit', 'packageName': 'mtrudel/bandit', 'programFiles': ['lib/bandit/http2/frame.ex'], 'collectionURL': 'https://github.com', 'defaultStatus': 'unaffected', 'programRoutines': [{'name': "'Elixir.Bandit.HTTP2.Frame':deserialize/2"}]}] -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
May. 02, 2026
Action Type Old Value New Value Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f -
New CVE Received by 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
May. 01, 2026
Action Type Old Value New Value 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. Added CVSS V4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Added CWE CWE-770 Added Reference https://cna.erlef.org/cves/CVE-2026-42788.html Added Reference https://github.com/mtrudel/bandit/commit/1e8e55966da9129016b73d32f0e1df4630e3b463 Added Reference https://github.com/mtrudel/bandit/security/advisories/GHSA-q6v9-r226-v65f Added Reference https://osv.dev/vulnerability/EEF-CVE-2026-42788