# CVE-2026-113436: Quadratic bignum parsing of Content-Length and Host port values in Bandit

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2026-10-26T13:31:35.033Z
- Modified: 2026-11-25T06:30:04.664Z
- Also known as: EEF-CVE-2026-113436, GHSA-29cr-8477-rg6r
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: EEF

## 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.

Bandit.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.

This issue affects bandit: from 1.0.0-pre.7 before 1.14.0.

(As written by CVE List.)

## Affected

- bandit: from 1.0.0-pre.7 before 1.14.0
- mtrudel/bandit: from e0c8c0c30af9b0f57d8aafac37ddd9294363a8be before 220b9dfd27f9a21305be2afc75cbe585ddc24e7a
- bandit (Hex): from 1.0.0-pre.7 before 1.14.0
- https://github.com/mtrudel/bandit: from e0c8c0c30af9b0f57d8aafac37ddd9294363a8be before 220b9dfd27f9a21305be2afc75cbe585ddc24e7a

## Every score

- EEF: CVSS:4.0 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`
- Erlang Ecosystem Foundation: CVSS:4.0 `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`

## References

- <https://github.com/mtrudel/bandit/security/advisories/GHSA-29cr-8477-rg6r> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-113436.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-113436> (related)
- <https://github.com/mtrudel/bandit/commit/e0c8c0c30af9b0f57d8aafac37ddd9294363a8be> (related, web)
- <https://github.com/mtrudel/bandit/commit/220b9dfd27f9a21305be2afc75cbe585ddc24e7a> (fix, patch)
- <https://hex.pm/packages/bandit> (package)

## Sources

- CVE List: [CVE-2026-113436](https://www.cve.org/CVERecord?id=CVE-2026-113436), CVE Terms of Use, modified 2026-11-19
- Erlang Ecosystem Foundation: [EEF-CVE-2026-113436](https://osv.dev/vulnerability/EEF-CVE-2026-113436), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-113436](https://nvd.nist.gov/vuln/detail/CVE-2026-113436), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-113436 · Whole record: https://cve.day/CVE-2026-113436.json · Rebuilt by cve.day 2026-11-25T22:59:47.119Z
