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

Published Jul 28, 2026
·
Updated

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 cowhpackcommon:decbigint/3 in src/cowhpackcommon.hrl (invoked from cowhpack:decode/2 in src/cowhpack.erl and from cowqpack:decodefieldsection/3 in src/cowqpack.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 maxframesizereceived 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 before 2.19.0.

Affected Software

1 affected component
cowlib>=2.0.0<2.19.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade cowlib to a version that resolves this vulnerability.

    Fixed in 2.19.0
  2. Compensating control

    Mitigate by restricting or filtering inbound access to any exposed HTTP/2 and HTTP/3 endpoints that accept HPACK/QPACK from untrusted peers, e.g., via network-level access controls (firewall/ACL) to prevent unauthenticated remote peers from reaching those parsers.

Event History

Jul 28, 2026
CVE Published
via MITRE·09:54 AM
Data Sourced
via MITRE·09:54 AM
DescriptionWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-59248?

The severity of CVE-2026-59248 is rated high with a CVSS score of 8.7.

2

How do I fix CVE-2026-59248?

To fix CVE-2026-59248, you should update to the latest version of cowlib where the vulnerability has been addressed.

3

What type of attack does CVE-2026-59248 allow?

CVE-2026-59248 allows an unauthenticated remote attacker to perform a memory-exhaustion denial of service on the server or client.

4

Which software is affected by CVE-2026-59248?

The vulnerability CVE-2026-59248 affects the cowlib software library.

5

What is the impact of CVE-2026-59248 on systems?

The impact of CVE-2026-59248 can lead to a denial of service due to resource exhaustion on affected systems.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203