Atom table exhaustion via HTTP/2 :scheme pseudo-header in plug_cowboy
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| elixir-plug | plug_cowboy | unaffected |
|
||||||
| elixir-plug | plug_cowboy | unaffected |
|
No data.
| Vendor | Product | Versions | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Elixir-plug | Plug Cowboy |
|
||||||||||||
| Elixir-plug | Plug Cowboy |
|
Vendor Workaround
Disable HTTP/2 on the Plug.Cowboy.https/3 listener by passing protocol_options: %{protocols: [:http]} in the cowboy options. This restricts the listener to HTTP/1.1, where the scheme is derived from the listener type and is not attacker-controlled.
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-q8x4-x7mp-5vg2 | Plug.Cowboy vulnerable to unauthenticated remote DoS via HTTP/2 `:scheme` atom-table exhaustion |
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.545% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Elixir-plug plug.cowboy
|
|
| CPEs | cpe:2.3:a:elixir-plug:plug.cowboy:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Elixir-plug plug.cowboy
|
|
| Metrics |
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Allocation of Resources Without Limits or Throttling vulnerability in elixir-plug plug_cowboy allows unauthenticated remote denial of service via atom table exhaustion. Plug.Cowboy.Conn.conn/1 in lib/plug/cowboy/conn.ex calls String.to_atom/1 on the value returned by :cowboy_req.scheme/1. For HTTP/2 connections, cowlib passes the client-supplied :scheme pseudo-header value through verbatim without validation. Each unique value permanently allocates a new entry in the BEAM atom table. Since atoms are never garbage-collected and the atom table has a fixed limit (default 1,048,576), an unauthenticated attacker can exhaust the table by sending HTTP/2 requests with unique :scheme values, causing the Erlang VM to abort with system_limit and taking down the entire node. This vulnerability does not affect HTTP/1.1, where cowboy derives the scheme from the listener type rather than from a client-supplied header. This issue affects plug_cowboy: from 2.0.0 before 2.8.1. | |
| Title | Atom table exhaustion via HTTP/2 :scheme pseudo-header in plug_cowboy | |
| First Time appeared |
Elixir-plug
Elixir-plug plug Cowboy |
|
| Weaknesses | CWE-770 | |
| CPEs | cpe:2.3:a:elixir-plug:plug_cowboy:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Elixir-plug
Elixir-plug plug Cowboy |
|
| References |
| |
| Metrics |
cvssV4_0
|