Skip to main content

Bandit EUVDEUVD-2026-29951

| CVE-2026-39806 HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-05-13 EEF GHSA-rf5q-vwxw-gmrf
8.7
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open TCP connection to Bandit server
  2. Delivery
    Send chunked request ending with trailer field
  3. Exploit
    Decoder falls into non-progressing catch-all arm
  4. Execution
    Worker recurses forever, pinned for connection lifetime
  5. Persist
    Repeat across few concurrent connections
  6. Impact
    Worker pool exhausted, server unresponsive

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of Bandit 1.6.1-1.11.0; the only requirement is the ability to send an HTTP/1.1 request with Transfer-Encoding: chunked whose body includes at least one trailer field after the '0' last-chunk line (RFC 9112 §7.1.2-legal), or a malformed chunk whose declared size mismatches its data. No authentication (PR:N), no user interaction, no special headers, and no large payload are needed. Limiting factors: the target must serve HTTP/1 chunked requests via Bandit in the affected version range, and the trailer/mismatch must reach the Bandit decoder - but note that common reverse proxies (NGINX, HAProxy) forward trailer-bearing chunked requests, so even non-malicious upstream traffic can trigger the condition.

Impact

This is a genuine, easy-to-trigger availability threat rather than an inflated high-CVSS score. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N with VA:H and no confidentiality/integrity impact) accurately reflects a network-reachable, no-privilege, no-interaction, availability-only bug; the assessed 3.1 equivalent is AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5). SSVC reinforces prioritization: exploitation=poc, automatable=yes, technical impact=partial - automation is trivial since a fixed byte sequence pins each worker. The low EPSS (0.47%, 65th percentile) and absence from CISA KEV indicate no confirmed mass exploitation yet, consistent with a newly disclosed issue rather than low real-world exploitability; the automatable+PoC signals suggest exploitation is straightforward if targeted. A notable amplifier: because reverse proxies such as NGINX and HAProxy legitimately forward trailer-bearing chunked requests, a Bandit server behind such a proxy could be knocked over by benign, non-malicious clients, raising the practical likelihood of accidental impact. Impact is availability-only - no data disclosure or code execution.

Exploit ScenarioDerived

An unauthenticated attacker opens a few TCP connections to a Bandit-backed endpoint and sends RFC-conformant Transfer-Encoding: chunked requests whose body ends with a trailer field (e.g. '0\r\nX-T: v\r\n\r\n'). Each request permanently pins the handling worker in an infinite recursion, and a handful of connections exhaust the worker pool so the server stops responding to all clients. A working PoC that starts Bandit 1.10 and reproduces the hang is published in the GHSA advisory, and low attack complexity (AC:L, no auth, no special headers or large payload) makes the attack trivially automatable.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Unauthenticated remote denial of service in mtrudel Bandit (Elixir HTTP server) versions 1.6.1 through 1.11.0 lets any client pin a worker process indefinitely by sending an RFC 9112-conformant chunked request that ends with trailer fields. Because the HTTP/1 chunked decoder only terminates on a bare '0\r\n\r\n' and never consumes trailers, a handful of concurrent connections exhausts the worker pool and makes the server unresponsive to all traffic. Publicly available exploit code exists (a self-contained PoC ships in the GHSA advisory), though the flaw is not listed in CISA KEV and EPSS is low (0.47%).

RemediationAI

Vendor-released patch: upgrade Bandit to 1.11.1 or later, which rewrites the chunked decoder to parse and discard trailers (via do_read_headers! on the trailer section) and guarantees forward progress by raising a request error instead of re-entering with an unchanged buffer; the fix is commit ae3520dfdbfab115c638f8c7f6f6b805db34e1ab, described in advisory https://github.com/mtrudel/bandit/security/advisories/GHSA-rf5q-vwxw-gmrf. If you cannot upgrade immediately, the most direct compensating control is to strip or reject trailer fields at an upstream proxy before requests reach Bandit - for example configure NGINX/HAProxy to not forward chunked trailers, or reject requests whose chunked body contains data after the '0\r\n' last-chunk marker; the trade-off is that legitimate trailer-bearing clients (rare in practice) would break. As secondary controls, place the server behind a WAF or rate limiter that caps concurrent long-lived connections per source and monitor for worker-pool saturation, accepting that these only slow an attacker rather than closing the bug. Because trailers are RFC-legal and can arrive from benign proxied traffic, patching to 1.11.1 is strongly preferred over any filtering workaround.

Affected VersionsENISA

bandit 1.6.1 <1.11.1
bandit e73e379ab59840e8561b5730878f16e29ab06217 <ae3520dfdbfab115c638f8c7f6f6b805db34e1ab

Affected Packages

euvd bandit fix: 1.11.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Bandit is a pure-Elixir HTTP/1.1 and HTTP/2 web server built on Thousand Island/ranch that commonly backs Phoenix applications as an alternative to Cowboy. The defect is a CWE-835 Loop with Unreachable Exit Condition in lib/bandit/http1/socket.ex, function do_read_chunked_data!/5. Its terminator clause matches only the pattern ['0', '\r\n' <> rest] - the last-chunk marker immediately followed by the empty trailer line. RFC 9112 §7.1.2 permits zero or more trailer fields between the '0\r\n' line and the final '\r\n', so a body ending '0\r\nX-T: v\r\n\r\n' causes :binary.split/2 to return ['0', 'X-T: v\r\n\r\n'], which fails every match clause. Execution falls into the catch-all arm, computes a negative to_read (0 - byte_size(rest)), calls read_available!/2 which returns <<>> on timeout, and tail-recurses with an unchanged buffer - making no forward progress. A source comment on line 245 ('We should be reading (and ignoring) trailers here') acknowledges the gap. The same non-progress shape also triggers on malformed chunk frames whose declared size disagrees with the actual data length.

Know when Bandit gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (EEF) PRIMARY 8.7 HIGH
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
vuln.today AI 7.5 HIGH

Network-reachable, no auth or interaction, low complexity via a fixed byte sequence; availability-only impact (worker exhaustion) with no confidentiality or integrity effect.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVE Published
May 13, 2026 - 13:36 nvd
UNKNOWN (no severity yet)
CVE Published
May 13, 2026 - 13:36 cve.org
HIGH 8.7

DescriptionCVE.org

Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.

'Elixir.Bandit.HTTP1.Socket':do_read_chunked_data!/5 in lib/bandit/http1/socket.ex terminates only when the last-chunk line 0\r\n is followed immediately by the empty trailer line \r\n. RFC 9112 §7.1.2 permits zero or more trailer fields between them. When trailers are present, none of the match clauses fit: the catch-all arm computes a negative to_read, calls read_available!/2, receives <<>> on timeout, and tail-recurses with unchanged state. The worker process is pinned for the lifetime of the TCP connection.

A handful of concurrent connections sending RFC-conformant chunked requests with trailer fields is sufficient to exhaust the Bandit worker pool and render the server unresponsive to all further traffic. No authentication, special headers, or large payload is required. Proxies such as NGINX and HAProxy legitimately forward trailer-bearing requests, so servers behind such proxies may be affected without any malicious client involvement.

This issue affects bandit: from 1.6.1 before 1.11.1.

Executive ViewAI

Why It Matters

Bandit, a widely-used Elixir HTTP server, contains a remote denial of service vulnerability in versions 1.6.1 through 1.11.0 that allows any remote client to render affected servers unresponsive by sending specially crafted RFC 9112-conformant chunked HTTP requests. Publicly available exploit code exists, creating immediate risk for organizations running vulnerable versions in production. Affected systems face potential complete service outages and should be patched urgently.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 35% exploitable
Prevalence
Medium
Popular Elixir/Phoenix HTTP server, common in Elixir apps but niche overall
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Bandit

View all
CVE-2026-42786 HIGH POC
8.7 May 01

Memory exhaustion in Bandit WebSocket server (versions 0.5.0 through 1.10.x) allows unauthenticated remote attackers to

CVE-2026-39804 HIGH POC
8.2 May 01

Memory exhaustion in Bandit WebSocket server (versions 0.5.9 through 1.10.x) allows unauthenticated remote attackers to

CVE-2026-42788 MEDIUM POC
6.9 May 01

Denial of service in mtrudel bandit via HTTP/2 frame deserialization allows unauthenticated remote attackers to exhaust

CVE-2026-39807 MEDIUM POC
6.3 May 01

Transport-state spoofing in Bandit 1.0.0 through 1.10.x allows unauthenticated remote attackers to forge HTTPS connectio

CVE-2026-39805 MEDIUM POC
6.3 May 01

HTTP request smuggling in mtrudel bandit before version 1.11.0 allows unauthenticated attackers to bypass edge security

CVE-2026-105659 HIGH
8.7 Oct 14

Uncontrolled HTTP/2 flow-control resource consumption in mtrudel/bandit 1.4.0 and later lets an unauthenticated remote p

CVE-2026-116078 HIGH
8.7 Oct 28

Bandit's HTTP/2 request body reader amplifies memory use, letting an unauthenticated remote client make a server hold ro

CVE-2026-65623 HIGH
8.7 Jul 24

CPU exhaustion in bandit 1.11.0 to 1.12.0 allows unauthenticated remote denial-of-service via WebSocket fragment reassem

CVE-2026-39803 HIGH
8.7 May 13

Unauthenticated remote denial of service in Bandit (the Elixir HTTP/1 web server for Phoenix/Plug applications) versions

CVE-2026-108529 HIGH
8.7 Oct 26

Unauthenticated remote CPU exhaustion in mtrudel Bandit's HTTP/2 server (versions before 1.14.0) is achievable by holdin

CVE-2026-110499 HIGH
8.7 Oct 26

Unbounded per-connection memory and CPU growth in the Elixir Bandit HTTP/2 server (0.3.6 up to 1.14.0) lets an unauthent

CVE-2026-109584 HIGH
8.7 Oct 26

Unauthenticated remote attackers can exhaust BEAM node memory on default-configured mtrudel Bandit HTTP/2 servers (0.3.3

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy