Intel

AIKIDO-2026-478480

cowboy is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-65624 Published 4 days ago

69

Medium Risk

This Affects:

ELIXIRcowboy
2.0.0 - 2.17.0
Fixed in 2.18.0
Are you affected? Scan for Free

TL;DR

cowboy_http enforces max_headers by counting distinct header names in a map (maps:size(Headers)). Duplicate header lines with the same name are concatenated into one map entry (", " for normal headers, "; " for cookies), so the map size never grows and the default max_headers cap is never hit. With only per-line name/value length limits and no bound on total header-line count or header-block size, an unauthenticated HTTP/1.1 client can send many duplicate-name lines and grow the connection process binary heap until request_timeout or, if unset, drive the Erlang VM toward out-of-memory. The fix counts header lines (including duplicates) toward max_headers so the limit cannot be bypassed.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application accepts HTTP/1.1 requests through Cowboy.

Background info

cowboy is vulnerable to Denial of Service (DoS) in versions 2.0.0 - 2.17.0.

How to fix this

Upgrade the cowboy library to the patch version.