CVE-2026-7790 json
Unbounded chunk-size hex digits in cowlib cause quadratic CPU and memory DoS
published 6mo ago modified 16d ago also EEF-CVE-2026-7790 , EUVD-2026-29200 , GHSA-32p9-57cr-4x65
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 37%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- hex cowlib 2.16.1
- ninenines cowlib 2.16.1
- erlang-cowlib Debian 14 2.17.1-1
debian advisories DEBIAN-CVE-2026-7790
Is CVE-2026-7790 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-7790 updated cvss 7.5
cowlib: cowlib: Denial of Service due to uncontrolled resource consumption in HTTP/1.1 chunked transfer-encoding
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 6mo ago
Exploit prediction
0.43% chance of exploitation in the next 30 days, higher than 37% of all scored CVEs (FIRST EPSS, 2026-11-11).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 8.7 | 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 |
| CNA | 4.0 | 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| hex | cowlib | >=0.6.0, <2.16.1 |
2.16.1 |
Affected products
- ninenines cowlib
Classification
- Weakness
-
- CWE-400 Uncontrolled Resource Consumption
References
-
github.com
/ninenines/cowlib/commit/a4b8039ce8c93ab00867ef6b7e888822c09f4369
patch, web
-
cna.erlef.org
/cves/CVE-2026-7790.html
related, third-party-advisory, web
-
osv.dev
/vulnerability/EEF-CVE-2026-7790
related, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-7790
advisory
-
github.com
/ninenines/cowlib
package
-
github.com
/ninenines/cowlib/releases/tag/2.16.1
web
-
hex.pm
/packages/cowlib
package
Sources
- CVE List CVE-2026-7790
- GitHub Advisory GHSA-32p9-57cr-4x65
- NVD CVE-2026-7790
- OSV EEF-CVE-2026-7790
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.