Cowboy HTTP/1.1 Unbounded Buffering of Pipelined Data During Request Handling Enables Memory Exhaustion
Severity and exploitation
KEV coverage does not rule out exploitation.
Assessment 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:NAssessment 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:NSeverity
high8.2CVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Package fixes recorded
Fix versions are recorded for 1 of 1 mapped packages. Check each release branch and any separate product guidance.
What this means
Cowboy HTTP/1.1 has an unbounded buffering vulnerability, allowing an unauthenticated remote attacker to exhaust connection process memory. This affects versions from 2.18.0 before 2.21.0. An attacker can send arbitrary data on a connection while a handler runs, driving the Erlang VM into out-of-memory conditions.
Summarized by @cf/meta/llama-3.3-70b-instruct-fp8-fast. Verify details against the original sources.Attack conditions
No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
ninenines · EEF
cowboy
1 range
ninenines · EEF
cowboy
Package identity
pkg:hex/cowboyExplore cowboy →Identity supplied by EEF. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
2.18.0 → before 2.21.0
semver versions
Other versions: unaffected
Product identifiers (CPE)
cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*ninenines · EEF
cowboy
1 range
ninenines · EEF
cowboy
Package identity
pkg:github/ninenines/cowboyIdentity supplied by EEF. Version matching requires compatible range evidence.
Compare with this publisher’s ranges. This does not inspect your installation.
affected
faf5594fbf74530ace90b0c46c936bdc2cf82081 → before 3a630c07e1521abf63a1b9ea080509aa1337b60d
git versions
Other versions: unaffected
Product identifiers (CPE)
cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*Packages
Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.
| Affected range | Recorded fix |
|---|---|
| From 2.18.0 before 2.21.0Semantic versions | 2.21.0 |
Version evidence: OSV · EEF-CVE-2026-115701
View original version evidence (3 explicit versions)
Source version evidence
This source records affected versions without identifying a package ecosystem and name. This evidence is not used for package matching.
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
Use the recorded fix for your release branch. Review the publisher’s instructions and test compatibility before upgrading.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher description
Summary
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1.
Once a request has been received in full and its handler is still running, cowboy_http:parse/2 in src/cowboy_http.erl appends every further byte that arrives on the keep-alive connection to the connection buffer and returns to the receive loop without parsing it. The socket stays in active mode and no limit applies to this buffer: max_request_line_length, max_headers and the other parser limits only take effect once the handler returns and parsing resumes, and the only timer in this state is idle_timeout (default 60 seconds), which is reset on every received chunk. A client can therefore send an arbitrary amount of data on one connection for as long as the handler runs, and a few connections to an endpoint that holds requests open can drive the Erlang VM into out-of-memory conditions.
This issue affects cowboy: from 2.18.0 before 2.21.0.
Details
1. Request completes, handler runs. When cowboy_http finishes reading a request it moves the parser to the ps_next_request state while the stream for that request is still alive. The connection process keeps the socket in active mode (setopts_active/1 re-arms {active, N} whenever a passive notification arrives), so the VM continues to deliver socket data to the process.
2. Data is appended, never parsed. Each incoming chunk reaches loop/1, which concatenates it onto the connection buffer and calls parse/2. The parse/2 clause for in_state=ps_next_request with a live #stream{} returns straight to before_loop/1 with the enlarged buffer, deferring all parsing until the current stream stops. The parser limits (max_request_line_length, max_header_name_length, max_header_value_length, max_headers) are enforced only by the parsing clauses that run after that point, and max_skip_body_length only covers an unread body of the current request, not bytes after it.
3. No timer bounds the window. While a stream is live the connection runs on idle_timeout (default 60 seconds), and set_timeout/2 resets it on every received chunk. The attacker therefore keeps the window open by continuing to send. Only the handler finishing ends it, at which point parsing resumes, the buffered bytes fail the request-line checks, and the connection closes with a 4xx response. By then the data has been held for the full handler duration.
4. Introduction. The behaviour arrived with the change that removed concurrent processing of pipelined HTTP/1.1 requests (first shipped in 2.18.0). Earlier releases parsed pipelined data as it arrived, so excess bytes hit the request-line limit immediately and the connection was closed with 414 Request-URI Too Long before any significant amount was buffered. The introducing commit describes the intended behaviour as stopping reads from the socket until the stream stops, but the code keeps the socket active and buffers instead.
Proof of concept
- Start a cowboy HTTP/1.1 listener with a handler that takes time to reply, for example one that sleeps 20 seconds before calling
cowboy_req:reply/4. - Open one TCP connection and send a complete
GET / HTTP/1.1request with aHostheader. - While the handler is still running, keep writing arbitrary bytes on the same connection, for example 300 one-megabyte chunks.
- Inspect the connection process with
erlang:process_info/2while the handler runs: its referenced binaries grow by the amount sent anderlang:memory(binary)rises by the same amount. No parser limit or timeout interrupts the transfer. - When the handler replies, the client still receives the
200 OK; only afterwards does the buffered data get parsed and rejected.
On 2.16.1 and 2.17.0 step 3 is cut short: the server answers 414 Request-URI Too Long with connection: close as soon as the first chunk arrives and holds nothing.
Impact
An unauthenticated remote client can make one connection process hold an arbitrary amount of memory by sending data after a request while its handler runs. A few such connections to an endpoint that holds requests open exhaust node memory and terminate every connection served by that node.
Configurations
The amount of data buffered scales with how long the current handler keeps the connection busy. Any HTTP/1.1 endpoint exposes a window, but deployments with handlers that hold a request open, such as long polling with cowboy_loop, streamed responses via cowboy_req:stream_reply/3, or slow backend calls, give an attacker the time to buffer significant memory. HTTP/2 connections are not affected.
References
5 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-115701View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Environment requirements
These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.
EEF · platform conditions
All conditions must hold
Any condition may hold
Vulnerable product
cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*From (inclusive): 2.18.0
Before: 2.21.0
Applicability preview
[
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*",
"versionEndExcluding": "2.21.0",
"versionStartIncluding": "2.18.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "AND"
}
]Contributing organizations · 2
Assigning organization
Additional data publisher
Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changes- CVE · CVE-2026-115701
Observed 2026-11-10T15:16:26.724Z · upstream updated 2026-11-10T15:02:23.747Z
Prioritization updated
before
[]
after
[ { "source": "CISA-ADP", "type": "SSVC", "role": "CISA Coordinator", "timestamp": "2026-11-10T15:01:56.291118Z", "decisions": [ { "name": "Exploitation", "value": "none" }, { "name": "Automatable", "value": "no" }, { "name": "Technical Impact", "value": "partial" } ] } ] - CVE · CVE-2026-115701
Observed 2026-11-09T15:35:52.988Z · upstream updated 2026-11-09T15:28:28.965Z
Description revised
before
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1. Once a request has been received in full and its handler is still running, cowboy_http:parse/2 in src/cowboy_http.erl appends every further byte that arrives on the keep-alive connection to the connection buffer and returns to the receive loop without parsing it. The socket stays in active mode and no limit applies to this buffer: max_request_line_length, max_headers and the other parser limits only take effect once the handler returns and parsing resumes, and the only timer in this state is idle_timeout (default 60 seconds), which is reset on every received chunk. A client can therefore send an arbitrary amount of data on one connection for as long as the handler runs, and a few connections to an endpoint that holds requests open can drive the Erlang VM into out-of-memory conditions. This issue affects cowboy: from 2.18.0 onward.
after
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1. Once a request has been received in full and its handler is still running, cowboy_http:parse/2 in src/cowboy_http.erl appends every further byte that arrives on the keep-alive connection to the connection buffer and returns to the receive loop without parsing it. The socket stays in active mode and no limit applies to this buffer: max_request_line_length, max_headers and the other parser limits only take effect once the handler returns and parsing resumes, and the only timer in this state is idle_timeout (default 60 seconds), which is reset on every received chunk. A client can therefore send an arbitrary amount of data on one connection for as long as the handler runs, and a few connections to an endpoint that holds requests open can drive the Erlang VM into out-of-memory conditions. This issue affects cowboy: from 2.18.0 before 2.21.0.
Product or version evidence changed
before
[ { "vendor": "ninenines", "name": "cowboy", "platforms": [], "versions": [ { "version": "2.18.0", "status": "affected", "lessThan": "*", "versionType": "semver" } ], "defaultStatus": "unaffected", "packageURL": "pkg:hex/cowboy", "packageIdentity": { "ecosystem": "Hex", "name": "cowboy" }, "cpes": [ "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*" ], "source": "EEF", "url": "https://www.cve.org/CVERecord?id=CVE-2026-115701" }, { "vendor": "ninenines", "name": "cowboy", "platforms": [], "versions": [ { "version": "faf5594fbf74530ace90b0c46c936bdc2cf82081", "status": "affected", "lessThan": "3a630c07e1521abf63a1b9ea080509aa1337b60d", "versionType": "git" } ], "defaultStatus": "unaffected", "packageURL": "pkg:github/ninenines/cowboy", "cpes": [ "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*" ], "source": "EEF", "url": "https://www.cve.org/CVERecord?id=CVE-2026-115701" } ]after
[ { "vendor": "ninenines", "name": "cowboy", "platforms": [], "versions": [ { "version": "2.18.0", "status": "affected", "lessThan": "2.21.0", "versionType": "semver" } ], "defaultStatus": "unaffected", "packageURL": "pkg:hex/cowboy", "packageIdentity": { "ecosystem": "Hex", "name": "cowboy" }, "cpes": [ "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*" ], "source": "EEF", "url": "https://www.cve.org/CVERecord?id=CVE-2026-115701" }, { "vendor": "ninenines", "name": "cowboy", "platforms": [], "versions": [ { "version": "faf5594fbf74530ace90b0c46c936bdc2cf82081", "status": "affected", "lessThan": "3a630c07e1521abf63a1b9ea080509aa1337b60d", "versionType": "git" } ], "defaultStatus": "unaffected", "packageURL": "pkg:github/ninenines/cowboy", "cpes": [ "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*" ], "source": "EEF", "url": "https://www.cve.org/CVERecord?id=CVE-2026-115701" } ]Environment requirements changed
before
[ { "source": "EEF", "statements": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.18.0", "vulnerable": true } ], "negate": false, "operator": "OR" } ], "operator": "AND" } ] } ]after
[ { "source": "EEF", "statements": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:ninenines:cowboy:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.21.0", "versionStartIncluding": "2.18.0", "vulnerable": true } ], "negate": false, "operator": "OR" } ], "operator": "AND" } ] } ] - OSV · EEF-CVE-2026-115701
Observed 2026-11-09T15:35:37.563Z · upstream updated 2026-11-09T15:30:03.881Z
Description revised
before
## Summary Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1. Once a request has been received in full and its handler is still running, `cowboy_http:parse/2` in `src/cowboy_http.erl` appends every further byte that arrives on the keep-alive connection to the connection buffer and returns to the receive loop without parsing it. The socket stays in active mode and no limit applies to this buffer: `max_request_line_length`, `max_headers` and the other parser limits only take effect once the handler returns and parsing resumes, and the only timer in this state is `idle_timeout` (default 60 seconds), which is reset on every received chunk. A client can therefore send an arbitrary amount of data on one connection for as long as the handler runs, and a few connections to an endpoint that holds requests open can drive the Erlang VM into out-of-memory conditions. This issue affects cowboy: from 2.18.0 onward. ## Details **1. Request completes, handler runs.** When `cowboy_http` finishes reading a request it moves the parser to the `ps_next_request` state while the stream for that request is still alive. The connection process keeps the socket in active mode (`setopts_active/1` re-arms `{active, N}` whenever a passive notification arrives), so the VM continues to deliver socket data to the process. **2. Data is appended, never parsed.** Each incoming chunk reaches `loop/1`, which concatenates it onto the connection buffer and calls `parse/2`. The `parse/2` clause for `in_state=ps_next_request` with a live `#stream{}` returns straight to `before_loop/1` with the enlarged buffer, deferring all parsing until the current stream stops. The parser limits (`max_request_line_length`, `max_header_name_length`, `max_header_value_length`, `max_headers`) are enforced only by the parsing clauses that run after that point, and `max_skip_body_length` only covers an unread body of the current request, not bytes after it. **3. No timer bounds the window.** While a stream is live the connection runs on `idle_timeout` (default 60 seconds), and `set_timeout/2` resets it on every received chunk. The attacker therefore keeps the window open by continuing to send. Only the handler finishing ends it, at which point parsing resumes, the buffered bytes fail the request-line checks, and the connection closes with a 4xx response. By then the data has been held for the full handler duration. **4. Introduction.** The behaviour arrived with the change that removed concurrent processing of pipelined HTTP/1.1 requests (first shipped in 2.18.0). Earlier releases parsed pipelined data as it arrived, so excess bytes hit the request-line limit immediately and the connection was closed with `414 Request-URI Too Long` before any significant amount was buffered. The introducing commit describes the intended behaviour as stopping reads from the socket until the stream stops, but the code keeps the socket active and buffers instead. ## Proof of concept 1. Start a cowboy HTTP/1.1 listener with a handler that takes time to reply, for example one that sleeps 20 seconds before calling `cowboy_req:reply/4`. 2. Open one TCP connection and send a complete `GET / HTTP/1.1` request with a `Host` header. 3. While the handler is still running, keep writing arbitrary bytes on the same connection, for example 300 one-megabyte chunks. 4. Inspect the connection process with `erlang:process_info/2` while the handler runs: its referenced binaries grow by the amount sent and `erlang:memory(binary)` rises by the same amount. No parser limit or timeout interrupts the transfer. 5. When the handler replies, the client still receives the `200 OK`; only afterwards does the buffered data get parsed and rejected. On 2.16.1 and 2.17.0 step 3 is cut short: the server answers `414 Request-URI Too Long` with `connection: close` as soon as the first chunk arrives and holds nothing. ## Impact An unauthenticated remote client can make one connection process hold an arbitrary amount of memory by sending data after a request while its handler runs. A few such connections to an endpoint that holds requests open exhaust node memory and terminate every connection served by that node. ## Configurations The amount of data buffered scales with how long the current handler keeps the connection busy. Any HTTP/1.1 endpoint exposes a window, but deployments with handlers that hold a request open, such as long polling with `cowboy_loop`, streamed responses via `cowboy_req:stream_reply/3`, or slow backend calls, give an attacker the time to buffer significant memory. HTTP/2 connections are not affected.after
## Summary Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1. Once a request has been received in full and its handler is still running, `cowboy_http:parse/2` in `src/cowboy_http.erl` appends every further byte that arrives on the keep-alive connection to the connection buffer and returns to the receive loop without parsing it. The socket stays in active mode and no limit applies to this buffer: `max_request_line_length`, `max_headers` and the other parser limits only take effect once the handler returns and parsing resumes, and the only timer in this state is `idle_timeout` (default 60 seconds), which is reset on every received chunk. A client can therefore send an arbitrary amount of data on one connection for as long as the handler runs, and a few connections to an endpoint that holds requests open can drive the Erlang VM into out-of-memory conditions. This issue affects cowboy: from 2.18.0 before 2.21.0. ## Details **1. Request completes, handler runs.** When `cowboy_http` finishes reading a request it moves the parser to the `ps_next_request` state while the stream for that request is still alive. The connection process keeps the socket in active mode (`setopts_active/1` re-arms `{active, N}` whenever a passive notification arrives), so the VM continues to deliver socket data to the process. **2. Data is appended, never parsed.** Each incoming chunk reaches `loop/1`, which concatenates it onto the connection buffer and calls `parse/2`. The `parse/2` clause for `in_state=ps_next_request` with a live `#stream{}` returns straight to `before_loop/1` with the enlarged buffer, deferring all parsing until the current stream stops. The parser limits (`max_request_line_length`, `max_header_name_length`, `max_header_value_length`, `max_headers`) are enforced only by the parsing clauses that run after that point, and `max_skip_body_length` only covers an unread body of the current request, not bytes after it. **3. No timer bounds the window.** While a stream is live the connection runs on `idle_timeout` (default 60 seconds), and `set_timeout/2` resets it on every received chunk. The attacker therefore keeps the window open by continuing to send. Only the handler finishing ends it, at which point parsing resumes, the buffered bytes fail the request-line checks, and the connection closes with a 4xx response. By then the data has been held for the full handler duration. **4. Introduction.** The behaviour arrived with the change that removed concurrent processing of pipelined HTTP/1.1 requests (first shipped in 2.18.0). Earlier releases parsed pipelined data as it arrived, so excess bytes hit the request-line limit immediately and the connection was closed with `414 Request-URI Too Long` before any significant amount was buffered. The introducing commit describes the intended behaviour as stopping reads from the socket until the stream stops, but the code keeps the socket active and buffers instead. ## Proof of concept 1. Start a cowboy HTTP/1.1 listener with a handler that takes time to reply, for example one that sleeps 20 seconds before calling `cowboy_req:reply/4`. 2. Open one TCP connection and send a complete `GET / HTTP/1.1` request with a `Host` header. 3. While the handler is still running, keep writing arbitrary bytes on the same connection, for example 300 one-megabyte chunks. 4. Inspect the connection process with `erlang:process_info/2` while the handler runs: its referenced binaries grow by the amount sent and `erlang:memory(binary)` rises by the same amount. No parser limit or timeout interrupts the transfer. 5. When the handler replies, the client still receives the `200 OK`; only afterwards does the buffered data get parsed and rejected. On 2.16.1 and 2.17.0 step 3 is cut short: the server answers `414 Request-URI Too Long` with `connection: close` as soon as the first chunk arrives and holds nothing. ## Impact An unauthenticated remote client can make one connection process hold an arbitrary amount of memory by sending data after a request while its handler runs. A few such connections to an endpoint that holds requests open exhaust node memory and terminate every connection served by that node. ## Configurations The amount of data buffered scales with how long the current handler keeps the connection busy. Any HTTP/1.1 endpoint exposes a window, but deployments with handlers that hold a request open, such as long polling with `cowboy_loop`, streamed responses via `cowboy_req:stream_reply/3`, or slow backend calls, give an attacker the time to buffer significant memory. HTTP/2 connections are not affected.Package ranges changed
before
[ { "ecosystem": "Hex", "name": "cowboy", "sources": [ { "name": "OSV · EEF-CVE-2026-115701", "url": "https://osv.dev/vulnerability/EEF-CVE-2026-115701" } ], "ranges": [ { "events": [ { "introduced": "2.18.0" } ], "type": "SEMVER" } ], "versions": [ "2.18.0", "2.19.0", "2.20.0" ], "fixed": [] } ]after
[ { "ecosystem": "Hex", "name": "cowboy", "sources": [ { "name": "OSV · EEF-CVE-2026-115701", "url": "https://osv.dev/vulnerability/EEF-CVE-2026-115701" } ], "ranges": [ { "events": [ { "introduced": "2.18.0" }, { "fixed": "2.21.0" } ], "type": "SEMVER" } ], "versions": [ "2.18.0", "2.19.0", "2.20.0" ], "fixed": [ "2.21.0" ] } ]
Large field values are marked as truncated previews. Original source snapshots remain retained.
Showing up to 50 most recent observed changes.
Related advisories
Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.
Cowboy HTTP/1.1 max_headers Bypass via Duplicate Header Names Enables Memory Exhaustion
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows an unauthenticated remote attacker to exhaust connection process memory over HTTP/1.1.
Recorded fixes — cowboy: 2.18.0. Check your release branch.
Exploitation not established
HTTP Response Splitting via Non-VCHAR Bytes in cow_http_struct_hd:escape_string/2
Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting') vulnerability in ninenines cowlib allows HTTP response splitting via non-VCHAR bytes in structured-fields string values.
Recorded fixes — cowboy: 2.16.0; gun: 2.4.0; 1 more packages. Check your release branch.
Exploitation not established
cowboy: Denial of service
Allocation of Resources Without Limits or Throttling vulnerability in ninenines cowboy allows denial of service via unbounded buffer accumulation in multipart header parsing.
Recorded fixes — cowboy: 2.15.0. Check your release branch.
Exploitation not established