# CVE-2026-59248: Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.19.0, f582430498072a0c65ad338030321576dc13a343 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-28 · Modified: 2026-11-24
- Aliases: UBUNTU-CVE-2026-59248, USN-8869-1, DEBIAN-CVE-2026-59248
- Record: https://cvemate.com/vulnerability/CVE-2026-59248 · JSON: https://cvemate.com/vulnerability/CVE-2026-59248/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.302%, percentile 24.611%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian erlang-cowlib (Debian): \< 2.19.0-1
- ubuntu erlang-cowlib (Ubuntu): All versions (No fix recorded)
- ubuntu rabbitmq-server (Ubuntu): All versions (No fix recorded) \| \< 3.8.3-0ubuntu0.3+esm1 \| \< 3.9.27-0ubuntu0.5 \| \< 3.12.1-1ubuntu1.6 \| \< 4.0.5-10ubuntu5.1
- ninenines cowlib: ≥ 2.0.0-pre.1, \< 2.19.0 \| ≥ 5ddecbc121f812aec53d9df91829448d8e94e44c, \< f582430498072a0c65ad338030321576dc13a343

## References

- <https://cna.erlef.org/cves/CVE-2026-59248.html>
- <https://osv.dev/vulnerability/EEF-CVE-2026-59248>
- <https://github.com/ninenines/cowlib/commit/f582430498072a0c65ad338030321576dc13a343>
- <https://ubuntu.com/security/CVE-2026-59248>
- <https://www.cve.org/CVERecord?id=CVE-2026-59248>
- <https://ubuntu.com/security/notices/USN-8869-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-59248>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59248>
- <https://github.com/ninenines/cowlib/commit/5ddecbc121f812aec53d9df91829448d8e94e44c>

---

Data as of 2026-12-05T09:47:53.003Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
