CVE-2026-59248
JSON

8.7high

Unbounded HPACK/QPACK prefixed-integer decoding in Cowlib causes memory-exhaustion DoS

Severity
8.7high CVSS:4.0 by EEF
Exploit likelihood
0.30% (higher than 24% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
EEF
Also known as
EEF-CVE-2026-59248

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.

Affected

Product or packageVersionsReported by
cowlibfrom 2.0.0-pre.1 before 2.19.0CVE List
ninenines/cowlibfrom 5ddecbc121f812aec53d9df91829448d8e94e44c before f582430498072a0c65ad338030321576dc13a343CVE List
cowlib (Hex)from 2.0.0-pre.1 before 2.19.0Erlang Ecosystem Foundation
https://github.com/ninenines/cowlibfrom 5ddecbc121f812aec53d9df91829448d8e94e44c before f582430498072a0c65ad338030321576dc13a343Erlang Ecosystem Foundation

All scores

EEF8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Erlang Ecosystem FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Classification

CWE-770

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

Erlang Ecosystem Foundation

Summary

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.

NVD (es)

La vulnerabilidad de asignación de recursos sin límites en ninenines cowlib permite que un par HTTP/2 o HTTP/3 remoto no autenticado agote la memoria en el servidor (o cliente) vulnerable y cause una denegación de servicio. El decodificador de enteros con prefijo HPACK y QPACK cow_hpack_common:dec_big_int/3 en src/cow_hpack_common.hrl (invocado desde cow_hpack:decode/2 en src/cow_hpack.erl y desde cow_qpack:decode_field_section/3 en src/cow_qpack.erl) lee octetos de continuación hasta que ve uno cuyo bit más significativo está claro, evaluando Int + (Value bsl M) en cada paso con el desplazamiento M creciendo en siete por octeto. No se impone ningún límite en el número de octetos de continuación, en el ancho de bits resultante o en el valor; el decodificador consume cualquier longitud codificada que el par suministre. Debido a que los enteros de Erlang son inmutables, cada Value bsl M intermedio y cada actualización del acumulador asigna un nuevo bignum cuyo ancho de dígito crece linealmente con el número de octetos procesados hasta ahora. Sumado a lo largo de toda la decodificación, la materialización transitoria de dígitos bignum es del orden del cuadrado de la longitud codificada. Una única representación indexada HPACK máxima transportada dentro de un frame HTTP/2 HEADERS más un frame CONTINUATION en el max_frame_size_received predeterminado de Cowboy puede forzar cientos de megabytes de asignación transitoria y agitación de recolección de basura antes de que el índice de la tabla de encabezados resultante sea rechazado como inválido. Las conexiones repetidas o concurrentes multiplican la presión y pueden llevar a la VM de Erlang al agotamiento de la memoria. Cowlib es el analizador HTTP utilizado por Cowboy, el plugin de gestión de RabbitMQ, y otros servidores y clientes HTTP/2 y HTTP/3 de Erlang y Elixir, por lo que cualquier punto final expuesto que acepte HPACK o QPACK de un par no confiable es alcanzable. Este problema afecta a cowlib: desde 2.0.0 antes de 2.19.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-59248 changed 2026-11-24CVE Terms of Use
Erlang Ecosystem FoundationEEF-CVE-2026-59248 changed 2026-11-26CC-BY-4.0
NVDCVE-2026-59248 changed 2026-11-24Public domain