CVE-2026-32688
JSON

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 packageVersionsReported by
plug_cowboyfrom 2.0.0 before 2.8.1CVE List
elixir-plug/plug_cowboyfrom 12ecfd024bb179d48b018fecf074e43fe6a19c83 before bfb34cb45eb354e56437f7023fb306de1bf9c19bCVE List
plug_cowboy (Hex)from 2.0.0 before 2.8.1GitHub Advisory Database, Erlang Ecosystem Foundation
https://github.com/elixir-plug/plug_cowboyfrom 12ecfd024bb179d48b018fecf074e43fe6a19c83 before bfb34cb45eb354e56437f7023fb306de1bf9c19bErlang Ecosystem Foundation
elixir-plug plug.cowboyfrom 2.0.0 before 2.8.1NVD

All scores

EEF8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS: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 FoundationNot scored CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

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

Sources

SourceRecordLicence
CVE ListCVE-2026-32688 changed 2026-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-q8x4-x7mp-5vg2 changed 2026-05-05CC-BY-4.0
Erlang Ecosystem FoundationEEF-CVE-2026-32688 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-32688 changed 2026-11-20Public domain