bandit is vulnerable to Denial of Service (DoS)
87
CVE Score
High
Denial of Service (DoS)
do_read_chunked_data! in bandit keeps every HTTP/1.1 body chunk as its own list cell until IO.iodata_to_binary/1 joins them. The :length option of read_body/2 counts payload bytes and does not limit how many chunks make up that payload, so a body of many tiny chunks uses far more memory and CPU than its size. On a keep-alive connection, ensure_completed/1 drains an unread body through the same reader. The fix appends each chunk into a single binary while reading.
Upgrade the bandit library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the server accepts HTTP/1.1 requests.
0.1.0 - 1.13.1
Fixed in 1.14.0bandit is vulnerable to Denial of Service (DoS) in versions 0.1.0 - 1.13.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.