CVE-2026-65624: Cowboy HTTP/1.1 max_headers Bypass via Duplicate Header Names Enables Memory Exhaustion

Published Jul 28, 2026
·
Updated

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 cowboyhttp enforces the maxheaders 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 maxheaders 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 maxheadernamelength and maxheadervaluelength 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 requesttimeout (default 5 seconds, not reset by header data), and by maxheapsize when set (the offending connection process is killed once its heap grows past the limit). When maxheapsize 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.

Other sources

Cowboy HTTP/1.1 maxheaders Bypass via Duplicate Header Names Enables Memory Exhaustion

Microsoft

Affected Software

3 affected componentsFixes available
ninenines cowboy>2.0.0-pre.4<=2.18.0
Microsoft azl3 rabbitmq-server 3.13.7-8<3.13.7-9
3.13.7-9
Microsoft azl3 rabbitmq-server 3.13.7-9<3.13.7-9
3.13.7-9

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.13.7-9
  2. Upgrade

    Upgrade ninenines/cowboy to a version that resolves this vulnerability.

    Fixed in 2.18.0
  3. Configuration

    Set cowboy HTTP/1.1 option max_heap_size so the offending connection process is killed once its heap grows past the limit (to prevent sustained header-driven memory exhaustion).

    cowboy_http (HTTP/1.1 handler) max_heap_size = set to a finite limit

Event History

Jul 28, 2026
CVE Published
via MITRE·10:01 AM
Data Sourced
via MITRE·10:01 AM
DescriptionWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeakness
Aug 7, 2026
Data Sourced
via Microsoft·07:57 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:57 AM
DescriptionSeverity
Updated
via Microsoft·07:57 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-65624?

CVE-2026-65624 has a medium severity score of 6.9.

2

What can an attacker achieve with CVE-2026-65624?

An attacker can exhaust connection process memory by using duplicate header names in HTTP/1.1 requests.

3

Who is affected by CVE-2026-65624?

The vulnerability affects users of the ninenines cowboy web server.

4

How do I fix CVE-2026-65624?

To fix CVE-2026-65624, update your ninenines cowboy installation to the latest version where the vulnerability has been patched.

5

What is the nature of the vulnerability in CVE-2026-65624?

CVE-2026-65624 is an allocation of resources without limits vulnerability that allows memory exhaustion.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203