Allocation of Resources Without Limits or Throttling Affecting cowboy package, versions >=2.0.0-pre.4 <2.18.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (31st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-HEX-COWBOY-18508173
  • published2 Aug 2026
  • disclosed28 Jul 2026
  • creditQiyi Deng,Min Shi,Yongkang Xiao, Jing Chen

Introduced: 28 Jul 2026

NewCVE-2026-65624  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade cowboy to version 2.18.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the parse_header/3 and parse_hd_value/6 functions of cowboy_http in src/cowboy_http.erl, which enforce the max_headers limit by counting distinct header names rather than total header lines. An attacker can grow a connection process's binary memory to an arbitrary size, driving out-of-memory conditions, by sending many HTTP/1.1 header lines that share a single name, whose values are concatenated into one ever-growing binary under one map key that the max_headers cap never counts. Exploitation requires an HTTP/1.1 connection, and the growth is bounded by request_timeout (default 5 seconds) and any configured max_heap_size, so exhaustion depends on sustained abuse where max_heap_size is unset.

Workaround

This vulnerability can be avoided by configuring max_heap_size on the connection processes, which caps per-process memory so a single connection's concatenated header binary cannot exhaust host memory.

CVSS Base Scores

version 4.0
version 3.1