# CVE-2026-65624: Cowboy HTTP/1.1 max\_headers Bypass via Duplicate Header Names Enables Memory Exhaustion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.9
- **CVSS:** 6.9 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2026-07-28T10:01:01.811Z
- **Modified:** 2026-11-24T07:17:20.097Z

## Who should check

- Anyone running ninenines cowboy \>= 2.0.0-pre.4, \< 2.18.0
- Anyone running ninenines cowboy \>= 309780a9fda145c262a47ac7811ffd50a0271c5b, \< 3a34d8c1cfd94326466aa16a9017236691dc9c55

## 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.

## Affected and fixed versions

- ninenines cowboy: \>= 2.0.0-pre.4, \< 2.18.0 (cvelist)
- ninenines cowboy: \>= 309780a9fda145c262a47ac7811ffd50a0271c5b, \< 3a34d8c1cfd94326466aa16a9017236691dc9c55 (cvelist)

## Mitigation

- Upgrade cowboy to 2.18.0 or later.
- Upgrade cowboy to 3a34d8c1cfd94326466aa16a9017236691dc9c55 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-65624. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-65624.md
Affected: ninenines cowboy >= 2.0.0-pre.4, < 2.18.0; ninenines cowboy >= 309780a9fda145c262a47ac7811ffd50a0271c5b, < 3a34d8c1cfd94326466aa16a9017236691dc9c55
Fixed in: ninenines cowboy 2.18.0, ninenines cowboy 3a34d8c1cfd94326466aa16a9017236691dc9c55

Steps:
1. Search this machine and project for ninenines cowboy: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-65624 being exploited?

There is no confirmed exploitation: CVE-2026-65624 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-65624?

Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-65624?

ninenines cowboy \>= 2.0.0-pre.4, \< 2.18.0; ninenines cowboy \>= 309780a9fda145c262a47ac7811ffd50a0271c5b, \< 3a34d8c1cfd94326466aa16a9017236691dc9c55.

### Is there a fix for CVE-2026-65624?

Yes. Fixed in ninenines cowboy 2.18.0, ninenines cowboy 3a34d8c1cfd94326466aa16a9017236691dc9c55. Upgrade cowboy to 2.18.0 or later. Upgrade cowboy to 3a34d8c1cfd94326466aa16a9017236691dc9c55 or later.

### How do I check if I'm affected by CVE-2026-65624?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://github.com/ninenines/cowboy/commit/309780a9fda145c262a47ac7811ffd50a0271c5b>
- patch: <https://github.com/ninenines/cowboy/commit/3a34d8c1cfd94326466aa16a9017236691dc9c55>
- other: <https://cna.erlef.org/cves/CVE-2026-65624.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-65624>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-65624>

HTML: <https://flawdb.com/CVE-2026-65624> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-65624>
