CVE-2026-7790 Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS
- Published
- Updated
- Exploit status
- No public exploit known
Description
Uncontrolled Resource Consumption vulnerability in ninenines cowlib (cow_http_te module) allows Excessive Allocation.
The chunked transfer-encoding parser in cow_http_te accepts an unbounded number of hex digits in the chunk-size field. Each digit causes a bignum multiplication (Len * 16 + digit), so parsing N hex digits requires O(N²) CPU work and O(N) memory. Additionally, when input is drip-fed, the parser discards the accumulated length on each partial read and restarts from zero on resumption, raising the cost to O(N³). An unauthenticated remote attacker can exploit this by sending an HTTP/1.1 request with Transfer-Encoding: chunked and a very long chunk-size hex string to cause denial of service through CPU exhaustion and memory amplification.
This vulnerability is associated with program file src/cow_http_te.erl and program routines cow_http_te:stream_chunked/2, cow_http_te:chunked_len/4.
This issue affects cowlib: from 0.6.0 before 2.16.1.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ninenines cowlib | >= 0.6.0, < 2.16.1 | 2.16.1 |
| ninenines cowlib | >= 8c0e428b012c59f553a264f285ed89d36f791e3e, < a4b8039ce8c93ab00867ef6b7e888822c09f4369 | a4b8039ce8c93ab00867ef6b7e888822c09f4369 |
| hex cowlib(Hex) | >= 0.6.0, < 2.16.1 | 2.16.1 |
| debian/erlang-cowlib(Debian:12) | All versions | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 1.3.0-3 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.17.1-1 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.17.1-2 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.18.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.19.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.20.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:12) | = 2.21.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:13) | All versions | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 1.3.0-3 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.17.1-1 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.17.1-2 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.18.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.19.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.20.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:13) | = 2.21.0-1 | No fix listed |
| debian/erlang-cowlib(Debian:14) | < 2.17.1-1 | 2.17.1-1 |
| debian/erlang-cowlib(Debian:14) | = 1.3.0-3 | No fix listed |
| ubuntu/erlang-cowlib(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/erlang-cowlib(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/erlang-cowlib(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/erlang-cowlib(Ubuntu:26.10) | All versions | No fix listed |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| azure linux rabbitmq-server(Azure Linux:3.0) | < 3.13.7-4 | 3.13.7-4 |
| azure linux rabbitmq-server(Azure Linux:3.0) | < 3.13.7-5 | 3.13.7-5 |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- cna.erlef.org related third-party-advisory
- osv.dev related third-party-advisory
- github.com patch
- nvd.nist.gov third-party-advisory
- github.com
- github.com
- Debian Security Tracker CVE-2026-7790 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- bugs.debian.org issue-tracking