{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-39806",
        "assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "state": "PUBLISHED",
        "assignerShortName": "EEF",
        "dateReserved": "2026-04-07T12:28:54.916Z",
        "datePublished": "2026-05-13T13:36:17.806Z",
        "dateUpdated": "2026-11-20T02:51:05.171Z"
    },
    "containers": {
        "cna": {
            "affected": [
                {
                    "collectionURL": "https://repo.hex.pm",
                    "cpes": [
                        "cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Bandit.HTTP1.Socket'"
                    ],
                    "packageName": "bandit",
                    "packageURL": "pkg:hex/bandit",
                    "product": "bandit",
                    "programFiles": [
                        "lib/bandit/http1/socket.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Bandit.HTTP1.Socket':do_read_chunked_data!/5"
                        }
                    ],
                    "repo": "https://github.com/mtrudel/bandit",
                    "vendor": "mtrudel",
                    "versions": [
                        {
                            "lessThan": "1.11.1",
                            "status": "affected",
                            "version": "1.6.1",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "collectionURL": "https://github.com",
                    "cpes": [
                        "cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*"
                    ],
                    "defaultStatus": "unaffected",
                    "modules": [
                        "'Elixir.Bandit.HTTP1.Socket'"
                    ],
                    "packageName": "mtrudel/bandit",
                    "packageURL": "pkg:github/mtrudel/bandit",
                    "product": "bandit",
                    "programFiles": [
                        "lib/bandit/http1/socket.ex"
                    ],
                    "programRoutines": [
                        {
                            "name": "'Elixir.Bandit.HTTP1.Socket':do_read_chunked_data!/5"
                        }
                    ],
                    "repo": "https://github.com/mtrudel/bandit",
                    "vendor": "mtrudel",
                    "versions": [
                        {
                            "lessThan": "ae3520dfdbfab115c638f8c7f6f6b805db34e1ab",
                            "status": "affected",
                            "version": "e73e379ab59840e8561b5730878f16e29ab06217",
                            "versionType": "git"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "cpeMatch": [
                                {
                                    "criteria": "cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*",
                                    "versionEndExcluding": "1.11.1",
                                    "versionStartIncluding": "1.6.1",
                                    "vulnerable": true
                                }
                            ],
                            "negate": false,
                            "operator": "OR"
                        }
                    ],
                    "operator": "AND"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Peter Ullrich"
                },
                {
                    "lang": "en",
                    "type": "analyst",
                    "value": "Jonatan Männchen / EEF"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Mat Trudel"
                }
            ],
            "datePublic": "2026-05-13T13:36:17.000Z",
            "descriptions": [
                {
                    "lang": "en",
                    "supportingMedia": [
                        {
                            "base64": false,
                            "type": "text/html",
                            "value": "<p>Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.</p>\n<p><code>Bandit.HTTP1.Socket.do_read_chunked_data!/5</code> in <code>lib/bandit/http1/socket.ex</code> terminates only when the last-chunk line <code>0\\r\\n</code> is followed immediately by the empty trailer line <code>\\r\\n</code>. 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 <code>to_read</code>, calls <code>read_available!/2</code>, receives <code>&lt;&lt;&gt;&gt;</code> on timeout, and tail-recurses with unchanged state. The worker process is pinned for the lifetime of the TCP connection.</p>\n<p>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.</p>\n<p>This issue affects bandit: from 1.6.1 before 1.11.1.</p>"
                        },
                        {
                            "base64": false,
                            "type": "text/markdown",
                            "value": "Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.\n\n`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.\n\nA 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.\n\nThis issue affects bandit: from 1.6.1 before 1.11.1."
                        }
                    ],
                    "value": "Loop with Unreachable Exit Condition ('Infinite Loop') vulnerability in mtrudel bandit allows unauthenticated remote denial of service via worker process exhaustion.\n\nBandit.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.\n\nA 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.\n\nThis issue affects bandit: from 1.6.1 before 1.11.1."
                }
            ],
            "impacts": [
                {
                    "capecId": "CAPEC-469",
                    "descriptions": [
                        {
                            "lang": "en",
                            "value": "CAPEC-469 HTTP DoS"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV4_0": {
                        "Automatable": "NOT_DEFINED",
                        "Recovery": "NOT_DEFINED",
                        "Safety": "NOT_DEFINED",
                        "attackComplexity": "LOW",
                        "attackRequirements": "NONE",
                        "attackVector": "NETWORK",
                        "baseScore": 8.7,
                        "baseSeverity": "HIGH",
                        "privilegesRequired": "NONE",
                        "providerUrgency": "NOT_DEFINED",
                        "subAvailabilityImpact": "NONE",
                        "subConfidentialityImpact": "NONE",
                        "subIntegrityImpact": "NONE",
                        "userInteraction": "NONE",
                        "valueDensity": "NOT_DEFINED",
                        "vectorString": "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",
                        "version": "4.0",
                        "vulnAvailabilityImpact": "HIGH",
                        "vulnConfidentialityImpact": "NONE",
                        "vulnIntegrityImpact": "NONE",
                        "vulnerabilityResponseEffort": "NOT_DEFINED"
                    },
                    "format": "CVSS",
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "GENERAL"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-835",
                            "description": "CWE-835 Loop with Unreachable Exit Condition",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
                "shortName": "EEF",
                "dateUpdated": "2026-11-20T02:51:05.171Z"
            },
            "references": [
                {
                    "name": "Unauthenticated DoS via chunked request trailers in Bandit HTTP/1 decoder",
                    "tags": [
                        "vendor-advisory",
                        "related"
                    ],
                    "url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-rf5q-vwxw-gmrf"
                },
                {
                    "name": "EEF CNA record for CVE-2026-39806",
                    "tags": [
                        "related"
                    ],
                    "url": "https://cna.erlef.org/cves/CVE-2026-39806.html"
                },
                {
                    "name": "OSV record EEF-CVE-2026-39806",
                    "tags": [
                        "related"
                    ],
                    "url": "https://osv.dev/vulnerability/EEF-CVE-2026-39806"
                },
                {
                    "name": "Introducing commit e73e379 in mtrudel/bandit",
                    "tags": [
                        "related"
                    ],
                    "url": "https://github.com/mtrudel/bandit/commit/e73e379ab59840e8561b5730878f16e29ab06217"
                },
                {
                    "name": "Fix commit ae3520d in mtrudel/bandit",
                    "tags": [
                        "patch"
                    ],
                    "url": "https://github.com/mtrudel/bandit/commit/ae3520dfdbfab115c638f8c7f6f6b805db34e1ab"
                }
            ],
            "source": {
                "discovery": "EXTERNAL"
            },
            "title": "HTTP/1 chunked decoder infinite loop on requests with trailer fields in bandit"
        },
        "adp": [
            {
                "references": [
                    {
                        "url": "https://github.com/mtrudel/bandit/security/advisories/GHSA-rf5q-vwxw-gmrf",
                        "tags": [
                            "exploit"
                        ]
                    }
                ],
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-05-13T14:36:21.650529Z",
                                "id": "CVE-2026-39806",
                                "options": [
                                    {
                                        "Exploitation": "poc"
                                    },
                                    {
                                        "Automatable": "yes"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-05-13T14:36:34.475Z"
                }
            }
        ]
    }
}