Intel

AIKIDO-2026-478480

cowboy is vulnerable to Denial of Service (DoS)

CVE-2026-65624Published Jul 29, 2026
July 29, 2026

69

CVE Score

Medium

Denial of Service (DoS)

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.

How do I fix this?

Upgrade the cowboy library to the patch version.

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.

Package

Versions

2.0.0 - 2.17.0

Fixed in 2.18.0

Background info

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

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea