CVE-2026-59248 Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
13 packages: 7 fixed, 1 partially fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/erlang-cowlib(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowlib(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowlib(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowlib(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/rabbitmq-server(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux rabbitmq-server(Azure Linux 3.0) | < 3.13.7-9; All versions | 3.13.7-9 | Partially fixed |
| debian/erlang-cowlib(Debian 14) | < 2.19.0-1; = 1.3.0-3; = 2.17.1-1; = 2.17.1-2 +1 more | 2.19.0-1 | Fixed |
| ninenines cowlib | >= 2.0.0-pre.1, < 2.19.0; >= 5ddecbc121f812aec53d9df91829448d8e94e44c, < f582430498072a0c65ad338030321576dc13a343 | 2.19.0, f582430498072a0c65ad338030321576dc13a343 | Fixed |
| redhat/rabbitmq-server4-2-main(Red Hat hummingbird 1) | < 4.2.9-0.2.hum1 | 4.2.9-0.2.hum1 | Fixed |
| redhat/rabbitmq-server4-3-main(Red Hat hummingbird 1) | < 4.3.4-0.2.hum1; < 4.3.5-0.1.hum1 | 4.3.4-0.2.hum1, 4.3.5-0.1.hum1 | Fixed |
| ubuntu/rabbitmq-server(Ubuntu 22.04) | < 3.9.27-0ubuntu0.5 | 3.9.27-0ubuntu0.5 | Fixed |
| ubuntu/rabbitmq-server(Ubuntu 24.04) | < 3.12.1-1ubuntu1.6 | 3.12.1-1ubuntu1.6 | Fixed |
| ubuntu/rabbitmq-server(Ubuntu 26.04) | < 4.0.5-10ubuntu5.1 | 4.0.5-10ubuntu5.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rabbitmq-server4-3-main(Red Hat:hummingbird:1) | < 4.3.4-0.2.hum1 | 4.3.4-0.2.hum1 |
| redhat/rabbitmq-server4-2-main(Red Hat:hummingbird:1) | < 4.2.9-0.2.hum1 | 4.2.9-0.2.hum1 |
| redhat/rabbitmq-server4-3-main(Red Hat:hummingbird:1) | < 4.3.5-0.1.hum1 | 4.3.5-0.1.hum1 |
| ubuntu/erlang-cowlib(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:22.04) | < 3.9.27-0ubuntu0.5 | 3.9.27-0ubuntu0.5 |
| ubuntu/erlang-cowlib(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:24.04) | < 3.12.1-1ubuntu1.6 | 3.12.1-1ubuntu1.6 |
| ubuntu/erlang-cowlib(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:26.04) | < 4.0.5-10ubuntu5.1 | 4.0.5-10ubuntu5.1 |
| ubuntu/erlang-cowlib(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:26.10) | All versions | No fix listed |
| debian/erlang-cowlib(Debian:14) | < 2.19.0-1 | 2.19.0-1 |
| azure linux rabbitmq-server(Azure Linux:3.0) | < 3.13.7-9 | 3.13.7-9 |
| azure linux rabbitmq-server(Azure Linux:3.0) | All versions | No fix listed |
| ninenines cowlib | >= 2.0.0-pre.1, < 2.19.0 | 2.19.0 |
| ninenines cowlib | >= 5ddecbc121f812aec53d9df91829448d8e94e44c, < f582430498072a0c65ad338030321576dc13a343 | f582430498072a0c65ad338030321576dc13a343 |
| debian/erlang-cowlib(Debian:14) | = 1.3.0-3 | No fix listed |
| debian/erlang-cowlib(Debian:14) | = 2.17.1-1 | No fix listed |
| debian/erlang-cowlib(Debian:14) | = 2.17.1-2 | No fix listed |
| debian/erlang-cowlib(Debian:14) | = 2.18.0-1 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- Security Update patch
- EEF CNA record for CVE-2026-59248 related third-party-advisory
- OSV record EEF-CVE-2026-59248 related
- Fix commit f582430 in ninenines/cowlib patch
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:47231 patch vendor-advisory
- RHSA-2026:47236 patch vendor-advisory
- RHSA-2026:57882 patch vendor-advisory
- Red Hat Bugzilla 2507959 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-59248 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-8869-1 vendor-advisory
- bugs.debian.org issue-tracking
- Introducing commit 5ddecbc in ninenines/cowlib related
- ENISA EUVD EUVD-2026-49739 third-party-advisory