Skip to main content

Cowlib CVE-2026-59248

| EUVDEUVD-2026-49739 HIGH
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-07-28 6b3ad84c-e1a6-4bf7-a703-f496b71e49db GHSA-f37p-pc7r-rghm
8.7
CVSS 4.0 · Vendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open HTTP/2 or HTTP/3 connection
  2. Delivery
    Send HEADERS + CONTINUATION with oversized HPACK integer
  3. Exploit
    Decoder accumulates quadratic bignum allocations
  4. Execution
    Repeat across concurrent connections
  5. Impact
    Erlang VM memory exhaustion and denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

No special conditions - remote unauthenticated exploitation against default configurations of any cowlib-based HTTP/2 or HTTP/3 endpoint (e.g. Cowboy servers, the RabbitMQ management plugin). The only requirement is that the server or client accepts HPACK (HTTP/2) or QPACK (HTTP/3) header compression from an untrusted peer, which is the protocol default; Cowboy's default max_frame_size_received is large enough to carry a single triggering integer. Limiting factors are minimal: exploitation is bounded only by whether the endpoint speaks HTTP/2 or HTTP/3 and by cowlib versions in the 2.0.0-to-before-2.19.0 range (upgrading to 2.19.0 fully mitigates). Impact is confined to availability - no data exposure or code execution.

Impact

All signals converge on this being a genuine but moderate-severity denial-of-service issue rather than an overstated critical. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N with VC:N/VI:N/VA:H) is well-calibrated: a single unauthenticated HTTP/2 or HTTP/3 peer can trigger it against default configurations, and impact is purely availability (no confidentiality or integrity loss), which the vendor scored correctly. EPSS is low at 0.29% (21st percentile) and SSVC reports Exploitation: none, Automatable: yes, Technical Impact: partial - the 'partial' impact and 'automatable: yes' are consistent with a repeatable memory-exhaustion DoS rather than full takeover. There is no CISA KEV listing and no public exploit code identified, so this is a patch-on-normal-cadence item, elevated only by the fact that the trigger is trivial (one crafted HEADERS+CONTINUATION frame) and reachable pre-authentication on any exposed endpoint. No signals conflict: the low EPSS, absent KEV/POC, and availability-only impact all agree that the 8.7 base score is driven by ease of remote triggering, not by severity of outcome.

Exploit ScenarioDerived

An unauthenticated attacker opens an HTTP/2 (or HTTP/3) connection to a Cowboy-, RabbitMQ-management-, or other cowlib-backed server and sends a HEADERS frame plus a CONTINUATION frame carrying a maximally long HPACK/QPACK prefixed-integer (a run of continuation octets with the high bit set). The decoder's cow_hpack_common:dec_big_int/3 accumulates ever-widening Erlang bignums with quadratic transient allocation, forcing hundreds of megabytes of churn per request; repeating this across concurrent connections drives the Erlang VM to memory exhaustion and crashes the service. No public exploit code is identified, but the technique is trivial to reproduce given the described frame structure.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 16, 2026

Memory exhaustion in cowlib (from 2.0.0 up to but not including 2.19.0) lets an unauthenticated remote HTTP/2 or HTTP/3 peer drive the Erlang VM into memory exhaustion and a denial of service by supplying a header with a non-terminating HPACK or QPACK prefixed-integer continuation. The decoder in cow_hpack_common:dec_big_int/3 keeps consuming continuation octets while building ever-larger Erlang bignums, so a single maximal indexed representation carried in one 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 header-table index is rejected as invalid, with repeated or concurrent connections multiplying the pressure. Exploitation is availability-only, requires no authentication or user interaction, and is fully automatable against any default-configuration endpoint that accepts HPACK or QPACK from an untrusted peer, including Cowboy servers and the RabbitMQ management plugin; at time of analysis no public exploit code was identified and no confirmed active exploitation exists (EPSS is 0.29%, 21st percentile, and CISA SSVC records exploitation as none with partial technical impact).

RemediationAI

Vendor-released patch: upgrade cowlib to 2.19.0, which caps indefinite-length prefixed integers at 38 bits and rejects oversized encodings; the corresponding upstream change is commit f582430498072a0c65ad338030321576dc13a343, and the CNA advisory is at https://cna.erlef.org/cves/CVE-2026-59248.html. Applications that bundle cowlib transitively (Cowboy applications, the RabbitMQ management plugin) should move to a release that vendors cowlib 2.19.0 or later, or apply the operating-system/vendor errata where applicable - Red Hat ships fixes in RHSA-2026:47231 and RHSA-2026:47236. If an immediate upgrade is not possible, note that there is no configuration switch that disables the vulnerable decoder while keeping HTTP/2 or HTTP/3 working, so compensating controls are partial at best: lowering Cowboy's max_frame_size_received and enforcing strict header-list-size and continuation-frame-count limits reduces the per-frame constant but does not remove the unbounded loop, since an attacker can spread the oversized integer across many smaller frames, and tight limits risk rejecting legitimate clients with large cookies or authorization headers. Where HTTP/2 or HTTP/3 header compression from untrusted peers is not required, terminate or disable the h2/h3 listener, or front the service with a proxy that normalizes the connection and enforces its own header-size and continuation-frame caps; the trade-off is loss of multiplexing and degraded performance for legitimate clients. As a containment measure, set Erlang VM process-level max_heap_size (with kill => true) or memory-based process limits so an oversized decode kills only the offending connection process rather than exhausting the node, accepting that legitimate large-header requests may also be terminated and that this does not close the underlying flaw. Apply connection rate limiting and monitor for repeated large HEADERS/CONTINUATION sequences as a detection signal; exploitation requires no authentication, so network-level access control on the HTTP/2 and HTTP/3 listeners is the only way to remove the attack surface entirely.

Affected VersionsENISA

cowlib 5ddecbc121f812aec53d9df91829448d8e94e44c <f582430498072a0c65ad338030321576dc13a343
cowlib 2.0.0-pre.1 <2.19.0

Affected Packages

euvd cowlib fix: 2.19.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-770 (Allocation of Resources Without Limits or Throttling) in the HPACK (RFC 7541) and QPACK (RFC 9204) prefixed-integer decoder implemented by cow_hpack_common:dec_big_int/3 in src/cow_hpack_common.hrl. The encoding is variable-length: each octet carries seven value bits and a continuation flag, and the decoder evaluates Int + (Value bsl M) while the shift M grows by seven with every continuation octet. Cowlib enforces no bound on the number of continuation octets, the resulting bit width, or the final value, so it consumes whatever encoded length a peer supplies. Because Erlang integers are immutable bignums, every intermediate Value bsl M and accumulator update materializes a fresh bignum whose digit width grows linearly with the octets processed so far; summed over the decode the transient allocation is on the order of the square of the encoded length. This code is reached from cow_hpack:decode/2 (src/cow_hpack.erl) for HTTP/2 and from cow_qpack:decode_field_section/3 (src/cow_qpack.erl) for HTTP/3. The upstream fix commit f582430498072a0c65ad338030321576dc13a343 hard-limits indefinite-length integers to 38 bits (adding the guard M < 32 to the continuation clause, with a comment noting the cap avoids producing an Erlang big int and is large enough for normal use) plus a regression test, decode_reject_very_big_int_test, that asserts an error under a constrained process heap. Cowlib is the HTTP parser beneath Cowboy, the RabbitMQ management plugin, and a broad set of Erlang and Elixir HTTP/2 and HTTP/3 servers and clients, so both server-side and client-side HPACK/QPACK decoding paths are in scope and any exposed endpoint that accepts compressed headers from an untrusted peer is reachable. The vulnerability is remote and unauthenticated per the CVSS vector (AV:N/AC:L/PR:N/UI:N), the attacker's payoff is bounded to availability (VC:N/VI:N/VA:H), and Cowboy's default max_frame_size_received is comfortably large enough to deliver a single triggering integer.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.5 HIGH

A single unauthenticated crafted frame triggers quadratic memory blowup with no race (AV:N/AC:L/PR:N/UI:N); impact is availability-only, so C:N/I:N/A:H.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (6b3ad84c-e1a6-4bf7-a703-f496b71e49db).

CVSS VectorVendor: 6b3ad84c-e1a6-4bf7-a703-f496b71e49db

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jul 28, 2026 - 11:01 EUVD
CVE Published
Jul 28, 2026 - 10:16 cve.org
HIGH 8.7

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

A memory-exhaustion flaw in cowlib, the Erlang HTTP library behind Cowboy web servers and RabbitMQ, allows a remote peer to drive server processes into memory exhaustion and denial of service on any endpoint accepting HTTP/2 or HTTP/3 traffic. The impact is availability-only, but the attack is fully automatable and requires no user interaction, so every internet-facing instance running a cowlib version below 2.19.0 is a viable target and concurrent connections can amplify the outage. Leadership should treat this as a service-availability and SLA risk concentrated in the Erlang/Elixir and RabbitMQ estate, and prioritise patch rollout across all reachable deployments.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
High
core HTTP parser for Cowboy and RabbitMQ, widely deployed in Erlang/Elixir stacks
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy