Inefficient Algorithmic Complexity vulnerability in the header integer parser of mtrudel bandit allows an unauthenticated remote attacker to consume s...
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| Ubuntu:16.04:LTSbandit |
All versions→ Not listed |
Not listed |
| Ubuntu:18.04:LTSbandit |
All versions→ Not listed |
Not listed |
| Ubuntu:20.04:LTSbandit |
All versions→ Not listed |
Not listed |
| Ubuntu:22.04:LTSbandit |
All versions→ Not listed |
Not listed |
| Ubuntu:24.04:LTSbandit |
All versions→ Not listed |
Not listed |
| Ubuntu:26.10bandit |
All versions→ Not listed |
Not listed |
| Ubuntu:26.04:LTSbandit |
All versions→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- report ubuntu.com
- report cve.org
- report cna.erlef.org
- report github.com
- report github.com
- report github.com
- report hex.pm
- report github.com
- report github.com
- report repo.hex.pm
- report github.com
- report nvd.nist.gov
- report osv.dev