{"id":"CVE-2026-8466","aliases":["CVE-2026-8466","GHSA-jfc2-q6qh-g5x8","EEF-CVE-2026-8466"],"related":[],"kind":"vulnerability","state":"published","title":"Unbounded buffer accumulation in multipart header parsing causes denial of service in cowboy","summary":"Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\ncowboy_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.\n\nThe 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.\n\nThis issue affects cowboy: from 0.10.0 before 2.15.0.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\ncowboy_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.\n\nThe 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.\n\nThis issue affects cowboy: from 0.10.0 before 2.15.0.","source":"cvelist"},{"lang":"en","text":"Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\ncowboy_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.\n\nThis issue affects cowboy from 2.0.0 before 2.15.0.","format":"markdown","source":"ghsa"},{"lang":"en","text":"## Summary\n\nAllocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing.\n\n`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.\n\nThe 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.\n\nThis issue affects cowboy: from 0.10.0 before 2.15.0.\n\n## Configurations\n\nThe application must expose an HTTP endpoint that calls `cowboy_req:read_part/1,2` (`cowboy_req:part/1,2` before 2.0.0-pre.4) to process `multipart/form-data` request bodies. Deployments that do not handle multipart uploads are not affected.","format":"markdown","source":"eef"},{"lang":"es","text":"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.\n\ncowboy_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.\n\nEste problema afecta a cowboy desde 2.0.0 antes de 2.15.0.","source":"nvd"}],"published":"2026-05-13T18:26:21.089Z","modified":"2026-11-26T17:23:14.019Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"semver","introduced":"0.10.0","fixed":"2.15.0","status":"affected"}],"vendor":"ninenines","product":"cowboy","package":"cowboy","cpe":"cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowboy","source":"cvelist"},{"ranges":[{"type":"git","introduced":"917cf99e10c41676183d501b86af6e47c95afb89","fixed":"5c6a2061b41bb5771c4659fac7d5a822dca5bafb","status":"affected"}],"vendor":"ninenines","product":"cowboy","package":"ninenines/cowboy","cpe":"cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*","repo":"https://github.com/ninenines/cowboy","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.15.0"}],"ecosystem":"Hex","package":"cowboy","purl":"pkg:hex/cowboy","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.10.0","status":"affected","fixed":"2.15.0"}],"ecosystem":"Hex","package":"cowboy","purl":"pkg:hex/cowboy","source":"eef"},{"ranges":[{"type":"git","introduced":"917cf99e10c41676183d501b86af6e47c95afb89","status":"affected","fixed":"5c6a2061b41bb5771c4659fac7d5a822dca5bafb"}],"repo":"https://github.com/ninenines/cowboy","source":"eef"}],"references":[{"url":"https://cna.erlef.org/cves/CVE-2026-8466.html","tags":["related","third-party-advisory","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-8466","tags":["related","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/ninenines/cowboy/commit/917cf99e10c41676183d501b86af6e47c95afb89","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/ninenines/cowboy/commit/5c6a2061b41bb5771c4659fac7d5a822dca5bafb","tags":["fix","patch","web"],"sources":["cvelist","ghsa","eef","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8466","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/ninenines/cowboy","tags":["package"],"sources":["ghsa"]},{"url":"https://hex.pm/packages/cowboy","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Loïc Hoguin"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-13T18:46:37.406Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-8466","url":"https://www.cve.org/CVERecord?id=CVE-2026-8466","licence":"CVE Terms of Use","modified":"2026-11-20T05:22:18.846Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jfc2-q6qh-g5x8","url":"https://github.com/advisories/GHSA-jfc2-q6qh-g5x8","licence":"CC-BY-4.0","modified":"2026-05-19T20:26:06.334Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-8466","url":"https://osv.dev/vulnerability/EEF-CVE-2026-8466","licence":"CC-BY-4.0","modified":"2026-11-26T17:23:14.019Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-8466","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-8466","licence":"Public domain","modified":"2026-11-20T06:17:44.140Z"}],"updatedAt":"2026-11-26T17:37:13.152Z","epss":{"score":0.00426,"percentile":0.38767,"date":"2026-12-01T12:00:22.000Z"}}