CVE-2026-65624
Cowboy HTTP/1.1 max_headers Bypass via Duplicate Header Names Enables Memory Exhaustion
Check your servers for CVE-2026-65624
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-65624 affects cowboy, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity none, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.39%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 35.0% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 28 Jul 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-770 Allocation of Resources Without Limits or Throttling
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
cowboy
package
cowboy |
affected from 2.0.0-pre.4, before 2.18.0
Other versions: unaffected
|
|
cowboy
package
ninenines/cowboy |
affected from 309780a9fda145c262a47ac7811ffd50a0271c5b, before 3a34d8c1cfd94326466aa16a9017236691dc9c55
Other versions: unaffected
|
Is my server affected?
Find the installed version of cowboy and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cowboy
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-65624 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-65624RHEL, Rocky, Alma, Fedora
rpm -q cowboy
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-65624Alpine
apk list --installed | grep -i cowboyWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-65624
trivy image --scanners vuln IMAGE | grep CVE-2026-65624
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- EEF CNA record for CVE-2026-65624 cna.erlef.org · related, third party advisory
Patches and release notes
- Fix commit 3a34d8c in ninenines/cowboy github.com · patch
Other references
- OSV record EEF-CVE-2026-65624 osv.dev · related
- Introducing commit 309780a in ninenines/cowboy github.com · related
Source: the record CVE-2026-65624 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse