8.7high
Atom table exhaustion via HTTP/2 :scheme pseudo-header in plug_cowboy
- Severity
- 8.7high CVSS:4.0 by EEF
- Exploit likelihood
- 0.69% (higher than 54% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- EEF
- Also known as
- GHSA-q8x4-x7mp-5vg2EEF-CVE-2026-32688
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| plug_cowboy | from 2.0.0 before 2.8.1 | CVE List |
| elixir-plug/plug_cowboy | from 12ecfd024bb179d48b018fecf074e43fe6a19c83 before bfb34cb45eb354e56437f7023fb306de1bf9c19b | CVE List |
| plug_cowboy (Hex) | from 2.0.0 before 2.8.1 | GitHub Advisory Database, Erlang Ecosystem Foundation |
| https://github.com/elixir-plug/plug_cowboy | from 12ecfd024bb179d48b018fecf074e43fe6a19c83 before bfb34cb45eb354e56437f7023fb306de1bf9c19b | Erlang Ecosystem Foundation |
| elixir-plug plug.cowboy | from 2.0.0 before 2.8.1 | NVD |
All scores
| EEF | 8.7high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| Erlang Ecosystem Foundation | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
An unauthenticated remote denial-of-service vulnerability in Plug.Cowboy.Conn allows any attacker who can reach an HTTPS Plug.Cowboy listener via HTTP/2 to permanently exhaust the BEAM atom table and crash the entire Erlang VM.
Am I Affected?
All users running plug_cowboy with HTTP/2 may be affected, this includes Phoenix applications. If another HTTP adapter such as Bandit is used, then the consuming project is not affected. If the HTTP/2 endpoint is exposed directly (without a proxy) then the project will be affected. If a proxy is in use then it depends on the proxy configuration. Many proxies use HTTP/1.1 internally, and would be unaffected.
Impact
The vulnerability will allow crashing the Erlang VM (BEAM) via atom exhaustion.
Mitigation
Users are advised to update to plug_cowboy v2.8.1 to mitigate this issue.
Credits
Plug.Cowboy thanks Peter Ullrich for finding and responsibly disclosing this vulnerability.
Erlang Ecosystem Foundation
Summary
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.
Workarounds
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.
NVD (es)
Vulnerabilidad de asignación de recursos sin límites ni estrangulamiento en elixir-plug plug_cowboy permite la denegación de servicio remota no autenticada mediante el agotamiento de la tabla de átomos. Plug.Cowboy.Conn.conn/1 en lib/plug/cowboy/conn.ex llama a String.to_atom/1 sobre el valor devuelto por :cowboy_req.scheme/1. Para conexiones HTTP/2, cowlib pasa el valor del pseudo-encabezado :scheme suministrado por el cliente directamente sin validación. Cada valor único asigna permanentemente una nueva entrada en la tabla de átomos de BEAM. Dado que los átomos nunca son recolectados por el recolector de basura y la tabla de átomos tiene un límite fijo (predeterminado 1,048,576), un atacante no autenticado puede agotar la tabla enviando solicitudes HTTP/2 con valores :scheme únicos, haciendo que la VM de Erlang aborte con system_limit y derribe todo el nodo. Esta vulnerabilidad no afecta a HTTP/1.1, donde cowboy deriva el esquema del tipo de oyente en lugar de un encabezado suministrado por el cliente. Este problema afecta a plug_cowboy: desde 2.0.0 antes de 2.8.1.
References
| https://github.com/elixir-plug/plug_cowboy/security/advisories/GHSA-q8x4-x7mp-5vg2 | advisory, related, vendor-advisory, web | |
| https://cna.erlef.org/cves/CVE-2026-32688.html | related, third-party-advisory, web | |
| https://osv.dev/vulnerability/EEF-CVE-2026-32688 | related, third-party-advisory, web | |
| https://github.com/elixir-plug/plug_cowboy/commit/12ecfd024bb179d48b018fecf074e43fe6a19c83 | related, web | |
| https://github.com/elixir-plug/plug_cowboy/commit/bfb34cb45eb354e56437f7023fb306de1bf9c19b | fix, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-32688 | advisory | |
| https://github.com/elixir-plug/plug_cowboy | package | |
| https://hex.pm/packages/plug_cowboy | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-32688 changed 2026-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q8x4-x7mp-5vg2 changed 2026-05-05 | CC-BY-4.0 |
| Erlang Ecosystem Foundation | EEF-CVE-2026-32688 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-32688 changed 2026-11-20 | Public domain |