CVE-2026-59248: CWE-770 Allocation of Resources Without Limits or Throttling in ninenines cowlib
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 before 2.19.0.
AI Analysis
Technical Summary
The vulnerability in cowlib's HPACK and QPACK prefixed-integer decoder functions (cow_hpack_common:dec_big_int/3) allows an unauthenticated remote HTTP/2 or HTTP/3 peer to send crafted input with an excessive number of continuation octets. Because the decoder accumulates integer values by shifting bits and allocating new bignums for each step without enforcing limits on length or value, this leads to quadratic growth in memory allocation and CPU usage. A single maximal HPACK indexed representation can cause hundreds of megabytes of transient memory allocation and garbage collection churn, potentially exhausting the Erlang VM memory and causing denial of service. Cowlib is used by Cowboy, RabbitMQ's management plugin, and other Erlang/Elixir HTTP/2 and HTTP/3 servers and clients, making any exposed endpoint accepting HPACK or QPACK vulnerable. The issue affects cowlib versions from 2.0.0-pre.1 up to but not including 2.19.0.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by sending specially crafted HTTP/2 or HTTP/3 requests that cause the HPACK or QPACK decoder to allocate excessive memory and CPU resources. This can lead to denial of service due to memory exhaustion and increased garbage collection load on the Erlang VM hosting the vulnerable service. The impact is high as it affects server availability and can be triggered remotely without authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure of endpoints that accept HPACK or QPACK from untrusted peers or applying network-level protections to mitigate potential denial of service attempts. Monitor vendor channels for updates regarding patches or official mitigations.
CVE-2026-59248: CWE-770 Allocation of Resources Without Limits or Throttling in ninenines cowlib
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 before 2.19.0.
CVSS v4.0
Score 8.7high
Affected software
ninenines
cowlib
ninenines
cowlib
cpe:2.3:a:ninenines:cowlib:*:*:*:*:*:*:*:*Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in cowlib's HPACK and QPACK prefixed-integer decoder functions (cow_hpack_common:dec_big_int/3) allows an unauthenticated remote HTTP/2 or HTTP/3 peer to send crafted input with an excessive number of continuation octets. Because the decoder accumulates integer values by shifting bits and allocating new bignums for each step without enforcing limits on length or value, this leads to quadratic growth in memory allocation and CPU usage. A single maximal HPACK indexed representation can cause hundreds of megabytes of transient memory allocation and garbage collection churn, potentially exhausting the Erlang VM memory and causing denial of service. Cowlib is used by Cowboy, RabbitMQ's management plugin, and other Erlang/Elixir HTTP/2 and HTTP/3 servers and clients, making any exposed endpoint accepting HPACK or QPACK vulnerable. The issue affects cowlib versions from 2.0.0-pre.1 up to but not including 2.19.0.
Potential Impact
An unauthenticated remote attacker can exploit this vulnerability by sending specially crafted HTTP/2 or HTTP/3 requests that cause the HPACK or QPACK decoder to allocate excessive memory and CPU resources. This can lead to denial of service due to memory exhaustion and increased garbage collection load on the Erlang VM hosting the vulnerable service. The impact is high as it affects server availability and can be triggered remotely without authentication.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, consider limiting exposure of endpoints that accept HPACK or QPACK from untrusted peers or applying network-level protections to mitigate potential denial of service attempts. Monitor vendor channels for updates regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- EEF
- Date Reserved
- 2026-07-04T04:24:03.652Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a6883049c2644c7f8720e57
Added to database: 07/28/2026, 10:23:00 UTC
Last enriched: 07/29/2026, 17:54:15 UTC
Last updated: 09/11/2026, 22:08:22 UTC
Views: 66
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.