Descrizione
Uncaught Exception vulnerability in phoenixframework phoenix allows an unauthenticated attacker to cause a denial of service via a client-selected legacy serializer on binary channel broadcasts. When an application broadcasts {:binary, data} payloads on a channel topic, any client that connects without a vsn parameter, or with vsn=1.0.0, and joins that topic makes those broadcasts fail. Phoenix.Channel.Server.send/4 encodes each broadcast with every subscriber's own serializer inside the PubSub dispatch loop, calling fastlane!/1 with no rescue, and the negotiated Phoenix.Socket.V1.JSONSerializer raises Protocol.UndefinedError on a binary payload. Every binary broadcast on the topic then crashes the broadcasting process and skips every subscriber dispatched after the attacker. For broadcasts arriving from other nodes the loop runs in the PubSub adapter worker, whose repeated crashes restart the PubSub supervisor and empty the node's subscription registry while sockets stay connected. This issue affects phoenix: from 1.5.7 before 1.5.16, from 1.6.0-rc.0 before 1.6.18, from 1.7.0-rc.0 before 1.7.25, and from 1.8.0-rc.0 before 1.8.17.
Come correggere
Priorità: Media — correggere nel prossimo ciclo di patch. Motivazione: CVSS 8.2, EPSS 0.7% (percentile 50).
Versioni da aggiornare
- phoenixframework phoenix: vulnerabili le versioni dalla
1.5.7precedenti alla1.5.16→ aggiornare alla1.5.16o successiva. - phoenixframework phoenix: vulnerabili le versioni dalla
1.6.0-rc.0precedenti alla1.6.18→ aggiornare alla1.6.18o successiva. - phoenixframework phoenix: vulnerabili le versioni dalla
1.7.0-rc.0precedenti alla1.7.25→ aggiornare alla1.7.25o successiva. - phoenixframework phoenix: vulnerabili le versioni dalla
1.8.0-rc.0precedenti alla1.8.17→ aggiornare alla1.8.17o successiva.
Indicazioni del vendor
Workaround (testo originale del vendor):
Reject the V1 serializer by listing only the V2 serializer on each socket: socket "/socket", MyAppWeb.UserSocket, websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}]], longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, "~> 2.0.0"}]] Clients that connect without a vsn parameter or with vsn=1.0.0 are then refused.
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
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 |
|---|---|---|---|
| phoenixframework | phoenix | ≥ 1.5.7 < 1.5.16 | 1.5.16 |
| phoenixframework | phoenix | ≥ 1.6.0-rc.0 < 1.6.18 | 1.6.18 |
| phoenixframework | phoenix | ≥ 1.7.0-rc.0 < 1.7.25 | 1.7.25 |
| phoenixframework | phoenix | ≥ 1.8.0-rc.0 < 1.8.17 | 1.8.17 |
Riferimenti
- Riferimentohttps://cna.erlef.org/cves/CVE-2026-129344.html
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/07b401901fc1d649f126eee6315b5eb01fa5c85c
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/30e5d9d7704b964772c131314508c45ed85ed807
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/5d57f442a1ffab8a866add770477a14a0cd792d9
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/c255d983e03893ae46abf01d13c3ec3bd20f029c
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/cf098e9cf7a44ee6479d31d911a97d3c7430c6fe
- Riferimentohttps://github.com/phoenixframework/phoenix/commit/eddaeb6d50c903fc77b465dbf3efd89feee0816b
- Riferimentohttps://github.com/phoenixframework/phoenix/security/advisories/GHSA-5vmc-qgf8-rw36
- Riferimentohttps://osv.dev/vulnerability/EEF-CVE-2026-129344