{"id":"CVE-2026-113436","revision":"adb8871f8e2546c88b866306c871c27d","records":[{"revision":"adb8871f8e2546c88b866306c871c27d","observedAt":"2026-10-26T16:35:30.797+00:00","statement":{"source":"cve-program","id":"CVE-2026-113436","aliases":[],"title":"Quadratic bignum parsing of Content-Length and Host port values in Bandit","description":"Inefficient Algorithmic Complexity vulnerability in the header integer parser of mtrudel bandit allows an unauthenticated remote attacker to consume server CPU via a content-length value or a Host or :authority port made of thousands of digits.\n\nBandit.Headers.parse_integer/2 in lib/bandit/headers.ex builds the number one digit at a time with no limit on the digit count, allocating a new bignum at each step, so one value costs time quadratic in its length. It runs on raw request input over HTTP/1 and HTTP/2, before any range check. Over HTTP/2, a 4,000-digit value can be stored once in the HPACK dynamic table and re-sent on each new stream for about one byte: 124 KB of traffic kept the server busy for 27.9 s.\n\nThis issue affects bandit: from 1.0.0-pre.7 before 1.14.0.","state":0,"publishedAt":"2026-10-26T13:31:35.033+00:00","modifiedAt":"2026-10-26T15:35:51.556+00:00","affected":[{"ecosystem":"https://repo.hex.pm","name":"bandit","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://repo.hex.pm\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"bandit\",\n                    \"packageURL\": \"pkg:hex/bandit\",\n                    \"product\": \"bandit\",\n                    \"repo\": \"https://github.com/mtrudel/bandit\",\n                    \"vendor\": \"mtrudel\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"1.14.0\",\n                            \"status\": \"affected\",\n                            \"version\": \"1.0.0-pre.7\",\n                            \"versionType\": \"semver\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"mtrudel/bandit","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:mtrudel:bandit:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"mtrudel/bandit\",\n                    \"packageURL\": \"pkg:github/mtrudel/bandit\",\n                    \"product\": \"bandit\",\n                    \"repo\": \"https://github.com/mtrudel/bandit\",\n                    \"vendor\": \"mtrudel\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"220b9dfd27f9a21305be2afc75cbe585ddc24e7a\",\n                            \"status\": \"affected\",\n                            \"version\": \"e0c8c0c30af9b0f57d8aafac37ddd9294363a8be\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":8.7,"severity":"HIGH"}],"references":["https://github.com/mtrudel/bandit/security/advisories/GHSA-29cr-8477-rg6r","https://cna.erlef.org/cves/CVE-2026-113436.html","https://osv.dev/vulnerability/EEF-CVE-2026-113436","https://github.com/mtrudel/bandit/commit/e0c8c0c30af9b0f57d8aafac37ddd9294363a8be","https://github.com/mtrudel/bandit/commit/220b9dfd27f9a21305be2afc75cbe585ddc24e7a"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-113436","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-113436","identifiers":["CVE-2026-113436"]},"retained":false,"historicalAffected":[]}],"coverage":[]}