{"id":"CVE-2026-113436","summary":"Quadratic bignum parsing of Content-Length and Host port values in Bandit","details":"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.","aliases":["EEF-CVE-2026-113436","GHSA-29cr-8477-rg6r"],"modified":"2026-11-11T10:47:23.335398101Z","published":"2026-10-26T13:31:35.033Z","database_specific":{"cwe_ids":["CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113436.json","cna_assigner":"EEF"},"references":[{"type":"WEB","url":"https://cna.erlef.org/cves/CVE-2026-113436.html"},{"type":"WEB","url":"https://github.com"},{"type":"WEB","url":"https://osv.dev/vulnerability/EEF-CVE-2026-113436"},{"type":"WEB","url":"https://repo.hex.pm"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/113xxx/CVE-2026-113436.json"},{"type":"ADVISORY","url":"https://github.com/mtrudel/bandit/security/advisories/GHSA-29cr-8477-rg6r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113436"},{"type":"FIX","url":"https://github.com/mtrudel/bandit/commit/220b9dfd27f9a21305be2afc75cbe585ddc24e7a"},{"type":"FIX","url":"https://github.com/mtrudel/bandit/commit/e0c8c0c30af9b0f57d8aafac37ddd9294363a8be"},{"type":"PACKAGE","url":"https://github.com/mtrudel/bandit"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mtrudel/bandit","events":[{"introduced":"e0c8c0c30af9b0f57d8aafac37ddd9294363a8be"},{"fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a"},{"introduced":"5e21d995086568a1b32099f44e58f8fafef92724"},{"fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a"},{"fixed":"e0c8c0c30af9b0f57d8aafac37ddd9294363a8be"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StandardRange","range":[{"introduced":"e0c8c0c30af9b0f57d8aafac37ddd9294363a8be"},{"fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a"}]},{"strategy":"StandardRange","range":[{"introduced":"1.0.0-pre.7"},{"fixed":"1.14.0"}],"source":"AFFECTED_FIELD"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"e0c8c0c30af9b0f57d8aafac37ddd9294363a8be"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"220b9dfd27f9a21305be2afc75cbe585ddc24e7a"}]}]}}],"versions":["1.13.1","1.13.0","1.12.5","1.12.4","1.12.3","1.12.1","1.12.0","1.11.1","1.11.0","1.10.4","1.10.3","1.10.2","1.10.1","1.10.0","1.9.0","1.8.0","1.7.0","1.6.11","1.6.10","1.6.9","1.6.8","1.6.7","1.6.6","1.6.5","1.6.4","1.6.3","1.6.2","1.6.1","1.6.0","1.5.7","1.5.6","1.5.5","1.5.4","1.5.3","1.5.2","1.5.1","1.5.0","1.4.2","1.4.1","1.4.0","1.3.0","1.2.3","1.2.0","1.1.3","1.1.2","1.1.1","1.1.0","1.0.0","1.0.0-pre.18","1.0.0-pre.17","1.0.0-pre.16","1.0.0-pre.15","1.0.0-pre.14","1.0.0-pre.13","1.0.0-pre.12","1.0.0-pre.11","1.0.0-pre.10","1.0.0-pre.9","1.0.0-pre.8","1.0.0-pre.7"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-113436.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}