CVE-2026-7790
published high CVSS 4.0 · 8.7Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ninenines | — | cowlib0.6.0 to < 2.16.1 · Other versions: unaffected | Affected | Not stated | EEF |
| ninenines | — | ninenines/cowlibcowlib · 8c0e428b012c59f553a264f285ed89d36f791e3e to < a4b8039ce8c93ab00867ef6b7e888822c09f4369 · Other versions: unaffected | Affected | Not stated | EEF |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| ninenines | cowlib | 0.6.0 to < 2.16.1 (affected · semver)Default: unaffected | EEF · cna |
| ninenines | cowlib | 8c0e428b012c59f553a264f285ed89d36f791e3e to < a4b8039ce8c93ab00867ef6b7e888822c09f4369 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-400 CWE-400 Uncontrolled Resource Consumption
References
4- EEF CNA record for CVE-2026-7790 https://cna.erlef.org/cves/CVE-2026-7790.html
- Introducing commit 8c0e428 in ninenines/cowlib https://github.com/ninenines/cowlib/commit/8c0e428b012c59f553a264f285ed89d36f791e3e
- Fix commit a4b8039 in ninenines/cowlib https://github.com/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369
- OSV record EEF-CVE-2026-7790 https://osv.dev/vulnerability/EEF-CVE-2026-7790
Provider assertions
2EEF · cna
Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 236845944348e4dfd69bffccd8de912e827ae9d41e220f0a8bcef69388c3c522
- Ingested
- 20 Nov 2026, 05:19:38 UTC
- Source record
- Official CVE record