CVE-2026-59248
published high CVSS 4.0 · 8.7Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| ninenines | — | cowlib2.0.0-pre.1 to < 2.19.0 · Other versions: unaffected | Affected | Not stated | EEF |
| ninenines | — | ninenines/cowlibcowlib · 5ddecbc121f812aec53d9df91829448d8e94e44c to < f582430498072a0c65ad338030321576dc13a343 · Other versions: unaffected | Affected | Not stated | EEF |
| Ubuntu | focal | rabbitmq-server | Advisory build | 3.8.3-0ubuntu0.3+esm1 | USN-8869-1 |
| Ubuntu | jammy | rabbitmq-server | Advisory build | 3.9.27-0ubuntu0.5 | USN-8869-1 |
| Ubuntu | noble | rabbitmq-server | Advisory build | 3.12.1-1ubuntu1.6 | USN-8869-1 |
| Ubuntu | resolute | rabbitmq-server | Advisory build | 4.0.5-10ubuntu5.1 | USN-8869-1 |
Description
Allocation of resources without limits vulnerability in ninenines cowlib allows an unauthenticated remote HTTP/2 or HTTP/3 peer to exhaust memory on the vulnerable server (or client) and cause a denial of service. The HPACK and QPACK prefixed-integer decoder cow_hpack_common:dec_big_int/3 in src/cow_hpack_common.hrl (invoked from cow_hpack:decode/2 in src/cow_hpack.erl and from cow_qpack:decode_field_section/3 in src/cow_qpack.erl) reads continuation octets until it sees one whose high bit is clear, evaluating Int + (Value bsl M) at each step with the shift M growing by seven per octet. No limit is enforced on the number of continuation octets, on the resulting bit width, or on the value; the decoder consumes whatever encoded length the peer supplies. Because Erlang integers are immutable, each intermediate Value bsl M and each accumulator update allocates a fresh bignum whose digit width grows linearly with the number of octets processed so far. Summed across the whole decode, the transient bignum digit materialization is on the order of the square of the encoded length. A single maximal HPACK indexed representation carried inside one HTTP/2 HEADERS plus one CONTINUATION frame at Cowboy's default max_frame_size_received can force hundreds of megabytes of transient allocation and garbage-collection churn before the resulting header-table index is rejected as invalid. Repeated or concurrent connections multiply the pressure and can drive the Erlang VM to memory exhaustion. Cowlib is the HTTP parser used by Cowboy, RabbitMQ's management plugin, and other Erlang and Elixir HTTP/2 and HTTP/3 servers and clients, so any exposed endpoint that accepts HPACK or QPACK from an untrusted peer is reachable. This issue affects cowlib: from 2.0.0-pre.1 before 2.19.0.
Related advisories
Vendor advisories explicitly linked to 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 | 2.0.0-pre.1 to < 2.19.0 (affected · semver)Default: unaffected | EEF · cna |
| ninenines | cowlib | 5ddecbc121f812aec53d9df91829448d8e94e44c to < f582430498072a0c65ad338030321576dc13a343 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-770 CWE-770 Allocation of Resources Without Limits or Throttling
References
4- EEF CNA record for CVE-2026-59248 https://cna.erlef.org/cves/CVE-2026-59248.html
- Introducing commit 5ddecbc in ninenines/cowlib https://github.com/ninenines/cowlib/commit/5ddecbc121f812aec53d9df91829448d8e94e44c
- Fix commit f582430 in ninenines/cowlib https://github.com/ninenines/cowlib/commit/f582430498072a0c65ad338030321576dc13a343
- OSV record EEF-CVE-2026-59248 https://osv.dev/vulnerability/EEF-CVE-2026-59248
Provider assertions
2EEF · cna
Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 66bab425e6278a9db638a21cec968306e20629ddd5db99f6fd41cf785bcf8716
- Ingested
- 24 Nov 2026, 05:46:09 UTC
- Source record
- Official CVE record