CVE-2026-65624 Cowboy HTTP/1.1 max_headers Bypass via Duplicate Header Names Enables Memory Exhaustion
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
13 packages: 5 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/erlang-cowboy(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowboy(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowboy(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/erlang-cowboy(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| ubuntu/rabbitmq-server(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rabbitmq-server(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rabbitmq-server(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rabbitmq-server(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| azure linux rabbitmq-server(Azure Linux 3.0) | < 3.13.7-9 | 3.13.7-9 | Fixed |
| debian/erlang-cowboy(Debian 14) | < 2.18.0+dfsg-1; = 0.6.1-1; = 0.6.1-2; = 0.6.1-3 +12 more | 2.18.0+dfsg-1 | Fixed |
| ninenines cowboy | >= 2.0.0-pre.4, < 2.18.0; >= 309780a9fda145c262a47ac7811ffd50a0271c5b, < 3a34d8c1cfd94326466aa16a9017236691dc9c55 | 2.18.0, 3a34d8c1cfd94326466aa16a9017236691dc9c55 | Fixed |
| redhat/rabbitmq-server4-2-main(Red Hat hummingbird 1) | < 4.2.9-0.2.hum1 | 4.2.9-0.2.hum1 | Fixed |
| redhat/rabbitmq-server4-3-main(Red Hat hummingbird 1) | < 4.3.4-0.2.hum1; < 4.3.5-0.1.hum1 | 4.3.4-0.2.hum1, 4.3.5-0.1.hum1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/rabbitmq-server4-3-main(Red Hat:hummingbird:1) | < 4.3.4-0.2.hum1 | 4.3.4-0.2.hum1 |
| redhat/rabbitmq-server4-2-main(Red Hat:hummingbird:1) | < 4.2.9-0.2.hum1 | 4.2.9-0.2.hum1 |
| redhat/rabbitmq-server4-3-main(Red Hat:hummingbird:1) | < 4.3.5-0.1.hum1 | 4.3.5-0.1.hum1 |
| ubuntu/erlang-cowboy(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/erlang-cowboy(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/erlang-cowboy(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/erlang-cowboy(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/rabbitmq-server(Ubuntu:26.10) | All versions | No fix listed |
| debian/erlang-cowboy(Debian:14) | < 2.18.0+dfsg-1 | 2.18.0+dfsg-1 |
| azure linux rabbitmq-server(Azure Linux:3.0) | < 3.13.7-9 | 3.13.7-9 |
| ninenines cowboy | >= 2.0.0-pre.4, < 2.18.0 | 2.18.0 |
| ninenines cowboy | >= 309780a9fda145c262a47ac7811ffd50a0271c5b, < 3a34d8c1cfd94326466aa16a9017236691dc9c55 | 3a34d8c1cfd94326466aa16a9017236691dc9c55 |
| debian/erlang-cowboy(Debian:14) | = 0.10.0+dfsg1-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.6.1-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.6.1-2 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.6.1-3 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.6.1-4 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.8.6+dfsg-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 0.8.6+dfsg1-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 1.0.0+dfsg1-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.0.0~pre.1+dfsg1-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.0.0~pre.1+dfsg1-2 | No fix listed |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/erlang-cowboy(Debian:14) | = 2.0.0~pre.1+dfsg1-3 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.0.0~pre.1+dfsg1-4 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.16.1+dfsg-1 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.16.1+dfsg-2 | No fix listed |
| debian/erlang-cowboy(Debian:14) | = 2.17.0+dfsg-1 | No fix listed |
References
- EEF CNA record for CVE-2026-65624 related third-party-advisory
- OSV record EEF-CVE-2026-65624 related
- Fix commit 3a34d8c in ninenines/cowboy patch
- MSRC Security Update Guide vendor-advisory
- Security Update patch
- Red Hat CVE page mitigation vendor-advisory
- RHSA-2026:47231 patch vendor-advisory
- RHSA-2026:47236 patch vendor-advisory
- RHSA-2026:57882 patch vendor-advisory
- Red Hat Bugzilla 2507960 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-65624 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- Introducing commit 309780a in ninenines/cowboy related
- ENISA EUVD EUVD-2026-49740 third-party-advisory