Descrizione
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.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 7.5.
Versioni da aggiornare
- Elixir-Plug Plug.Cowboy: vulnerabili le versioni dalla
2.0.0precedenti alla2.8.1→ aggiornare alla2.8.1o successiva.
Patch e advisory
- Patch: github.com/elixir-plug/plug_cowboy/commit/bfb34…
- Advisory del vendor: github.com/elixir-plug/plug_cowboy/security/adv…
- Advisory di terze parti: cna.erlef.org/cves/CVE-2026-32688.html
- Advisory di terze parti: osv.dev/vulnerability/EEF-CVE-2026-32688
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Applicare rate limiting e limiti sulle risorse a monte del servizio e monitorarne la disponibilità.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Elixir-Plug | Plug.Cowboy | ≥ 2.0.0 < 2.8.1 | 2.8.1 |
Riferimenti
- Patchhttps://github.com/elixir-plug/plug_cowboy/commit/bfb34cb45eb354e56437f7023fb306de1bf9c19b
- Advisory del vendorhttps://github.com/elixir-plug/plug_cowboy/security/advisories/GHSA-q8x4-x7mp-5vg2
- Advisory di terze partihttps://cna.erlef.org/cves/CVE-2026-32688.html
- Advisory di terze partihttps://osv.dev/vulnerability/EEF-CVE-2026-32688
- Riferimentohttps://github.com/elixir-plug/plug_cowboy/commit/12ecfd024bb179d48b018fecf074e43fe6a19c83