VDB
KO

EEF-CVE-2026-65624

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

Quick fix

EEF-CVE-2026-65624 — cowboy: upgrade to the fixed version with the command below.

mix deps.update cowboy

Details

## Summary

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Hex / cowboy
Introduced in: 2.0.0-pre.4 Fixed in: 2.18.0
Fix mix deps.update cowboy

References