CVE-2026-8466

Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing. cowboy_req:read_part/3 in src/cowboy_req.erl accumulates incoming request bytes into a Buffer binary with no upper-bound check. When cow_multipart:parse_headers/2 returns more or {more, Buffer2}, the function reads up to Length bytes (default 64 KB) from the request body and recurses with the enlarged buffer. There is no equivalent of the byte_size(Acc) > Length guard present in the sibling function read_part_body/4. An unauthenticated attacker can send a multipart/form-data request whose body never yields a complete header section — for example, a body that never contains the advertised boundary delimiter, or one whose header lines never contain \r\n\r\n — and force the server process to accumulate memory linearly with the bytes the protocol layer is willing to deliver. A handful of concurrent such uploads is sufficient to exhaust BEAM memory. The function has had two names. From 0.10.0 to 2.0.0-pre.3 it is cowboy_req:part/3, reached through cowboy_req:part/1 and cowboy_req:part/2. From 2.0.0-pre.4 it is cowboy_req:read_part/3, reached through cowboy_req:read_part/1 and cowboy_req:read_part/2. Both have the same buffer loop. This issue affects cowboy: from 0.10.0 before 2.15.0.
CVSS

No CVSS.

Configurations

No configuration.

History

20 Nov 2026, 06:17

Type Values Removed Values Added
Summary (en) Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing. cowboy_req:read_part/3 in src/cowboy_req.erl accumulates incoming request bytes into a Buffer binary with no upper-bound check. When cow_multipart:parse_headers/2 returns more or {more, Buffer2}, the function reads up to Length bytes (default 64 KB) from the request body and recurses with the enlarged buffer. There is no equivalent of the byte_size(Acc) > Length guard present in the sibling function read_part_body/4. An unauthenticated attacker can send a multipart/form-data request whose body never yields a complete header section — for example, a body that never contains the advertised boundary delimiter, or one whose header lines never contain \r\n\r\n — and force the server process to accumulate memory linearly with the bytes the protocol layer is willing to deliver. A handful of concurrent such uploads is sufficient to exhaust BEAM memory. This issue affects cowboy from 2.0.0 before 2.15.0. (en) Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing. cowboy_req:read_part/3 in src/cowboy_req.erl accumulates incoming request bytes into a Buffer binary with no upper-bound check. When cow_multipart:parse_headers/2 returns more or {more, Buffer2}, the function reads up to Length bytes (default 64 KB) from the request body and recurses with the enlarged buffer. There is no equivalent of the byte_size(Acc) > Length guard present in the sibling function read_part_body/4. An unauthenticated attacker can send a multipart/form-data request whose body never yields a complete header section — for example, a body that never contains the advertised boundary delimiter, or one whose header lines never contain \r\n\r\n — and force the server process to accumulate memory linearly with the bytes the protocol layer is willing to deliver. A handful of concurrent such uploads is sufficient to exhaust BEAM memory. The function has had two names. From 0.10.0 to 2.0.0-pre.3 it is cowboy_req:part/3, reached through cowboy_req:part/1 and cowboy_req:part/2. From 2.0.0-pre.4 it is cowboy_req:read_part/3, reached through cowboy_req:read_part/1 and cowboy_req:read_part/2. Both have the same buffer loop. This issue affects cowboy: from 0.10.0 before 2.15.0.
References
  • () https://github.com/ninenines/cowboy/commit/917cf99e10c41676183d501b86af6e47c95afb89 -

26 Oct 2026, 14:10

Type Values Removed Values Added
Summary
  • (es) La vulnerabilidad de asignación de recursos sin límites ni limitación en ninenines cowboy permite la denegación de servicio a través de la acumulación ilimitada de búfer en el análisis de encabezados multipart. cowboy_req:read_part/3 en src/cowboy_req.erl acumula bytes de solicitud entrantes en un binario de búfer sin una comprobación de límite superior. Cuando cow_multipart:parse_headers/2 devuelve more o {more, Buffer2}, la función lee hasta Length bytes (64 KB por defecto) del cuerpo de la solicitud y recurre con el búfer ampliado. No existe un equivalente de la guarda byte_size(Acc) > Length presente en la función hermana read_part_body/4. Un atacante no autenticado puede enviar una solicitud multipart/form-data cuyo cuerpo nunca produce una sección de encabezado completa - por ejemplo, un cuerpo que nunca contiene el delimitador de límite anunciado, o uno cuyas líneas de encabezado nunca contienen \r\n\r\n - y forzar al proceso del servidor a acumular memoria linealmente con los bytes que la capa del protocolo está dispuesta a entregar. Un puñado de dichas cargas concurrentes es suficiente para agotar la memoria BEAM. Este problema afecta a cowboy desde 2.0.0 antes de 2.15.0.

13 May 2026, 19:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-13 19:17

Updated : 2026-11-20 06:17


NVD link : CVE-2026-8466

Mitre link : CVE-2026-8466

CVE.ORG link : CVE-2026-8466


JSON object : View

Products Affected

No product.

CWE
CWE-770

Allocation of Resources Without Limits or Throttling