{"id":"CVE-2026-42786","published":"2026-05-01T20:34:17Z","modified":"2026-11-20T03:40:08Z","title":"WebSocket fragmented message reassembly unbounded in bandit","vendor":"mtrudel","product":"bandit","tier":"tail","description":{"text":"Allocation of Resources Without Limits or Throttling vulnerability in mtrudel bandit allows unauthenticated remote denial of service via memory exhaustion.\n\nThe fragment reassembly path in Bandit.WebSocket.Connection.handle_frame/3 in lib/bandit/websocket/connection.ex appends every incoming Continuation{fin: false} frame's payload to a per-connection iolist with no cumulative size cap. The existing max_frame_size option only bounds individual frames; a peer that streams an unbounded number of continuation frames without ever setting fin=1 grows BEAM heap linearly until the OS or a supervisor kills the process.\n\nBecause the accumulation happens before WebSock.handle_in/2 is called, the application has no opportunity to interpose a size check. Phoenix Channels and LiveView both run over WebSock on Bandit, so a stock Phoenix application exposes this surface as soon as it accepts socket connections.\n\nThis issue affects bandit: from 0.5.1 before 1.11.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00647,"percentile":0.5194,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-pf94-94m9-536p","tags":["vendor-advisory","related"]},{"url":"https://cna.erlef.org/cves/CVE-2026-42786.html","tags":["related"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42786","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/8909391f486d42138c5308410bc5ea49a65f4d46","tags":["related"]},{"url":"https://github.com/mtrudel/bandit/commit/21612c7c7b1ce43eccd36d3af3a2299d23513667","tags":["patch"]}],"priority":{"score":16.5,"factors":[{"name":"EPSS percentile","points":10.39},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"mtrudel","affectedVersions":[{"vendor":"mtrudel","product":"bandit","versions":[">= 0.5.1, < 1.11.0"]},{"vendor":"mtrudel","product":"bandit","versions":[">= 8909391f486d42138c5308410bc5ea49a65f4d46, < 21612c7c7b1ce43eccd36d3af3a2299d23513667"]}],"capec":[{"id":"CAPEC-130","name":"Excessive Allocation"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-05-02T01:15:58.376139Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Hex","package":"bandit","vulnerableRanges":[">=0.5.0, <1.11.0"],"patched":["1.11.0"],"from":["GHSA-pf94-94m9-536p"],"provenance":"source"}],"summary":{"text":"Bandit's WebSocket connection handling in lib/bandit/websocket/connection.ex (the handle_frame/3 fragment reassembly path) accumulates the payloads of continuation frames for each connection without any cumulative size limit, so the existing max_frame_size option only restricts individual frames. A remote, unauthenticated peer that keeps sending continuation frames without setting the final-fragment flag can exhaust the server's memory and cause a denial of service, with no user interaction or special configuration required beyond the application accepting WebSocket connections.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:14Z"},"euvd":{"id":"EUVD-2026-26715","exploited":false,"provenance":"source"}}