Bug 2508041 - CVE-2026-59248 erlang-cowlib: Cowlib: Denial of Service due to unbounded HPACK/QPACK prefixed-integer decoding [fedora-43]
Summary: CVE-2026-59248 erlang-cowlib: Cowlib: Denial of Service due to unbounded HPAC...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: erlang-cowlib
Version: 43
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Peter Lemenkov
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["e1487d25-9d05-48c3-9ba1-c...
Depends On:
Blocks: CVE-2026-59248
TreeView+ depends on / blocked
 
Reported: 2026-07-28 14:08 UTC by Samuele Negrini
Modified: 2026-08-14 01:36 UTC (History)
1 user (show)

Fixed In Version: erlang-cowlib-2.19.0-1.fc44 erlang-cowlib-2.19.0-1.fc43
Clone Of:
Environment:
Last Closed: 2026-08-14 01:17:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Samuele Negrini 2026-07-28 14:08:59 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Fedora Update System 2026-08-05 14:06:21 UTC
FEDORA-2026-ce97d80dae (erlang-cowboy-2.18.0-1.fc43 and erlang-cowlib-2.19.0-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-ce97d80dae

Comment 2 Fedora Update System 2026-08-05 14:06:24 UTC
FEDORA-2026-7d233ad8b0 (erlang-cowboy-2.18.0-1.fc44 and erlang-cowlib-2.19.0-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-7d233ad8b0

Comment 3 Fedora Update System 2026-08-06 17:59:35 UTC
FEDORA-2026-ce97d80dae has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ce97d80dae`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ce97d80dae

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2026-08-06 18:00:44 UTC
FEDORA-2026-7d233ad8b0 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-7d233ad8b0`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-7d233ad8b0

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-08-14 01:17:46 UTC
FEDORA-2026-7d233ad8b0 (erlang-cowboy-2.18.0-1.fc44 and erlang-cowlib-2.19.0-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2026-08-14 01:36:48 UTC
FEDORA-2026-ce97d80dae (erlang-cowboy-2.18.0-1.fc43 and erlang-cowlib-2.19.0-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.