Description
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1.

The HTTP/1.1 handler in cowboy_http enforces the max_headers limit by counting the number of distinct header names in a map (maps:size(Headers)). When a request contains multiple header lines with the same name, the values are concatenated into a single ever-growing binary stored under that one map key (", " for regular headers, "; " for cookies), so the map size stays at one and the max_headers cap (default 100) is never reached. Because no accumulator bounds the total number of header lines or the total byte size of the header block (only per-line max_header_name_length and max_header_value_length apply), an unauthenticated client can send an arbitrary number of header lines with the same name and grow the connection process's binary memory to arbitrary size within the request window.

The impact per connection is bounded by request_timeout (default 5 seconds, not reset by header data), and by max_heap_size when set (the offending connection process is killed once its heap grows past the limit). When max_heap_size is left at the default (unset), sustained abuse can drive the Erlang VM into out-of-memory conditions.

This issue affects cowboy from 2.0.0-pre.4 before 2.18.0.
Published: 2026-07-28
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An attacker who can send an HTTP/1.1 request can exploit Cowboy’s handling of duplicate header names to create a request that contains many header lines with the same name. Each line’s value is concatenated into a single growing binary value in the server’s header map, so the map size never increases and the configured max_headers limit is never reached. Because no overall bounds are placed on the number or total size of these duplicate header lines, an unauthenticated client can craft a request that consumes an arbitrary amount of memory in the connection process. If the request timeout expires before the heap is exhausted, the connection is simply dropped, but if the heap limit (max_heap_size) is not set or is very high, sustained abuse can trigger an out‑of‑memory condition in the Erlang VM, potentially bringing down the entire application.

Affected Systems

Cowboy, the Erlang HTTP server published by the ninenines community, is affected for all releases from 2.0.0‑pre.4 up to, but not including, version 2.18.0. The vulnerability is tied to the default max_headers value of 100 and the lack of a global header block size limit.

Risk and Exploitability

The CVSS score is 6.9, indicating a moderate severity. The EPSS score is below 1 %, suggesting a low probability of exploitation at the moment. The vulnerability is not listed in the CISA KEV catalog. The attack is likely to be performed remotely by sending a specially crafted HTTP request from an unauthenticated client that exploits the duplicated header behavior to exhaust memory within a single connection.

Generated by OpenCVE AI on August 2, 2026 at 09:30 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to Cowboy 2.18.0 or later, which contains the security fix for this issue.
  • Configure max_heap_size to a reasonable limit to prevent a single connection from consuming excessive memory.
  • Deploy or configure a reverse proxy to enforce stricter header size limits or to bound the number of duplicate headers per request.

Generated by OpenCVE AI on August 2, 2026 at 09:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 29 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
Weaknesses CWE-1050
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Important


Tue, 28 Jul 2026 16:15:00 +0000

Type Values Removed Values Added
Description Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1. The HTTP/1.1 handler in cowboy_http enforces the max_headers limit by counting the number of distinct header names in a map (maps:size(Headers)). When a request contains multiple header lines with the same name, the values are concatenated into a single ever-growing binary stored under that one map key (", " for regular headers, "; " for cookies), so the map size stays at one and the max_headers cap (default 100) is never reached. Because no accumulator bounds the total number of header lines or the total byte size of the header block (only per-line max_header_name_length and max_header_value_length apply), an unauthenticated client can send an arbitrary number of header lines with the same name and grow the connection process's binary memory to arbitrary size within the request window. The impact per connection is bounded by request_timeout (default 5 seconds, not reset by header data), and by max_heap_size when set (the offending connection process is killed once its heap grows past the limit). When max_heap_size is left at the default (unset), sustained abuse can drive the Erlang VM into out-of-memory conditions. This issue affects cowboy from 2.0.0-pre.4 before 2.18.0.
Title Cowboy HTTP/1.1 max_headers Bypass via Duplicate Header Names Enables Memory Exhaustion
First Time appeared Ninenines
Ninenines cowboy
Weaknesses CWE-770
CPEs cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*
Vendors & Products Ninenines
Ninenines cowboy
References
Metrics cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Subscriptions

Ninenines Cowboy
Redhat Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: EEF

Published:

Updated: 2026-07-29T04:17:22.788Z

Reserved: 2026-07-22T13:55:59.401Z

Link: CVE-2026-65624

cve-icon Vulnrichment

Updated: 2026-07-28T12:39:19.571Z

cve-icon NVD

Status : Deferred

Published: 2026-07-28T10:16:50.500

Modified: 2026-07-30T19:14:09.213

Link: CVE-2026-65624

cve-icon Redhat

Severity : Important

Publid Date: 2026-07-28T10:01:01Z

Links: CVE-2026-65624 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-02T09:45:16Z

Weaknesses
  • CWE-1050

    Excessive Platform Resource Consumption within a Loop

  • CWE-770

    Allocation of Resources Without Limits or Throttling