{"containers":{"cna":{"affected":[{"collectionURL":"https://repo.hex.pm","cpes":["cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Phoenix.Channel.Server'","'Elixir.Phoenix.Socket.V1.JSONSerializer'","'Elixir.Phoenix.Channel'"],"packageName":"phoenix","packageURL":"pkg:hex/phoenix","product":"phoenix","programFiles":["lib/phoenix/channel/server.ex","lib/phoenix/socket/serializers/v1_json_serializer.ex","lib/phoenix/channel.ex"],"programRoutines":[{"name":"'Elixir.Phoenix.Channel.Server':send/4"},{"name":"'Elixir.Phoenix.Socket.V1.JSONSerializer':fastlane!/1"},{"name":"'Elixir.Phoenix.Channel':broadcast/3"},{"name":"'Elixir.Phoenix.Channel':broadcast_from/3"}],"repo":"https://github.com/phoenixframework/phoenix","vendor":"phoenixframework","versions":[{"lessThan":"1.5.16","status":"affected","version":"1.5.7","versionType":"semver"},{"lessThan":"1.6.18","status":"affected","version":"1.6.0-rc.0","versionType":"semver"},{"lessThan":"1.7.25","status":"affected","version":"1.7.0-rc.0","versionType":"semver"},{"lessThan":"1.8.17","status":"affected","version":"1.8.0-rc.0","versionType":"semver"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["'Elixir.Phoenix.Channel.Server'","'Elixir.Phoenix.Socket.V1.JSONSerializer'","'Elixir.Phoenix.Channel'"],"packageName":"phoenixframework/phoenix","packageURL":"pkg:github/phoenixframework/phoenix","product":"phoenix","programFiles":["lib/phoenix/channel/server.ex","lib/phoenix/socket/serializers/v1_json_serializer.ex","lib/phoenix/channel.ex"],"programRoutines":[{"name":"'Elixir.Phoenix.Channel.Server':send/4"},{"name":"'Elixir.Phoenix.Socket.V1.JSONSerializer':fastlane!/1"},{"name":"'Elixir.Phoenix.Channel':broadcast/3"},{"name":"'Elixir.Phoenix.Channel':broadcast_from/3"}],"repo":"https://github.com/phoenixframework/phoenix","vendor":"phoenixframework","versions":[{"lessThan":"c255d983e03893ae46abf01d13c3ec3bd20f029c","status":"affected","version":"07b401901fc1d649f126eee6315b5eb01fa5c85c","versionType":"git"},{"changes":[{"at":"30e5d9d7704b964772c131314508c45ed85ed807","status":"unaffected"},{"at":"5d57f442a1ffab8a866add770477a14a0cd792d9","status":"unaffected"},{"at":"eddaeb6d50c903fc77b465dbf3efd89feee0816b","status":"unaffected"}],"lessThan":"*","status":"affected","version":"cf098e9cf7a44ee6479d31d911a97d3c7430c6fe","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The application must broadcast <code>{:binary, data}</code> payloads (through <code>Phoenix.Channel.broadcast/3</code>, <code>broadcast_from/3</code>, or <code>Phoenix.Endpoint.broadcast/3</code>) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected.</p>"},{"base64":false,"type":"text/markdown","value":"The application must broadcast `{:binary, data}` payloads (through `Phoenix.Channel.broadcast/3`, `broadcast_from/3`, or `Phoenix.Endpoint.broadcast/3`) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."}],"value":"The application must broadcast {:binary, data} payloads (through Phoenix.Channel.broadcast/3, broadcast_from/3, or Phoenix.Endpoint.broadcast/3) on a channel topic that an untrusted client can join. Applications that broadcast only map payloads are not affected."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","versionEndExcluding":"1.5.16","versionStartIncluding":"1.5.7","vulnerable":true},{"criteria":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","versionEndExcluding":"1.6.18","versionStartIncluding":"1.6.0-rc.0","vulnerable":true},{"criteria":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","versionEndExcluding":"1.7.25","versionStartIncluding":"1.7.0-rc.0","vulnerable":true},{"criteria":"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*","versionEndExcluding":"1.8.17","versionStartIncluding":"1.8.0-rc.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Peter Ullrich"},{"lang":"en","type":"reporter","value":"Peter Ullrich"},{"lang":"en","type":"remediation developer","value":"Steffen Deusch"},{"lang":"en","type":"remediation reviewer","value":"José Valim"}],"dateAssigned":"2026-11-20T10:54:44.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>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.</p>\n<p>When an application broadcasts <code>{:binary, data}</code> payloads on a channel topic, any client that connects without a <code>vsn</code> parameter, or with <code>vsn=1.0.0</code>, and joins that topic makes those broadcasts fail. <code>Phoenix.Channel.Server.send/4</code> encodes each broadcast with every subscriber's own serializer inside the PubSub dispatch loop, calling <code>fastlane!/1</code> with no rescue, and the negotiated <code>Phoenix.Socket.V1.JSONSerializer</code> raises <code>Protocol.UndefinedError</code> 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.</p>\n<p>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.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nWhen 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.\n\nThis 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."}],"value":"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.\n\nWhen 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.\n\nThis 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."}],"impacts":[{"capecId":"CAPEC-220","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node's subscriptions are lost.</p>"},{"base64":false,"type":"text/markdown","value":"An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node's subscriptions are lost."}],"value":"An attacker who can join a topic makes every binary broadcast on it fail, crashing the broadcasting channel and starving the other subscribers. In clustered deployments, forwarded broadcasts crash the PubSub adapter worker until the node's subscriptions are lost."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":8.2,"baseSeverity":"HIGH","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-248","description":"CWE-248 Uncaught Exception","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-21T10:59:15.168Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads","tags":["vendor-advisory","related"],"url":"https://github.com/phoenixframework/phoenix/security/advisories/GHSA-5vmc-qgf8-rw36"},{"name":"EEF CNA record for CVE-2026-129344","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-129344.html"},{"name":"OSV record EEF-CVE-2026-129344","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-129344"},{"name":"Introducing commit 07b4019 in phoenixframework/phoenix","tags":["related"],"url":"https://github.com/phoenixframework/phoenix/commit/07b401901fc1d649f126eee6315b5eb01fa5c85c"},{"name":"Introducing commit cf098e9 in phoenixframework/phoenix","tags":["related"],"url":"https://github.com/phoenixframework/phoenix/commit/cf098e9cf7a44ee6479d31d911a97d3c7430c6fe"},{"name":"Fix commit 30e5d9d in phoenixframework/phoenix","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix/commit/30e5d9d7704b964772c131314508c45ed85ed807"},{"name":"Fix commit 5d57f44 in phoenixframework/phoenix","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix/commit/5d57f442a1ffab8a866add770477a14a0cd792d9"},{"name":"Fix commit c255d98 in phoenixframework/phoenix","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix/commit/c255d983e03893ae46abf01d13c3ec3bd20f029c"},{"name":"Fix commit eddaeb6 in phoenixframework/phoenix","tags":["patch"],"url":"https://github.com/phoenixframework/phoenix/commit/eddaeb6d50c903fc77b465dbf3efd89feee0816b"}],"source":{"discovery":"EXTERNAL"},"title":"Client-selected V1 serializer crashes shared broadcast dispatch on binary payloads","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Reject the V1 serializer by listing only the V2 serializer on each socket:</p>\n<pre><code class=\"language-elixir\">socket \"/socket\", MyAppWeb.UserSocket,\n  websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~&gt; 2.0.0\"}]],\n  longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~&gt; 2.0.0\"}]]\n</code></pre>\n<p>Clients that connect without a <code>vsn</code> parameter or with <code>vsn=1.0.0</code> are then refused.</p>"},{"base64":false,"type":"text/markdown","value":"Reject the V1 serializer by listing only the V2 serializer on each socket:\n\n```elixir\nsocket \"/socket\", MyAppWeb.UserSocket,\n  websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~> 2.0.0\"}]],\n  longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~> 2.0.0\"}]]\n```\n\nClients that connect without a `vsn` parameter or with `vsn=1.0.0` are then refused."}],"value":"Reject the V1 serializer by listing only the V2 serializer on each socket:\n\nsocket \"/socket\", MyAppWeb.UserSocket,\n  websocket: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~> 2.0.0\"}]],\n  longpoll: [serializer: [{Phoenix.Socket.V2.JSONSerializer, \"~> 2.0.0\"}]]\n\nClients that connect without a vsn parameter or with vsn=1.0.0 are then refused."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Run a Phoenix endpoint with a channel whose <code>handle_in/3</code> calls <code>broadcast(socket, \"evt\", {:binary, &lt;&lt;0, 1, 2, 3&gt;&gt;})</code> on its topic.</li>\n<li>As the attacker, open <code>/socket/websocket?vsn=1.0.0</code> and join the topic with a V1 frame (<code>{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}</code>).</li>\n<li>Connect several V2 clients (<code>vsn=2.0.0</code>) and join the same topic.</li>\n<li>From another V2 client on the topic, push the event that triggers the binary broadcast.</li>\n<li>The broadcaster receives <code>phx_error</code>, the log shows <code>Protocol.UndefinedError</code> raised from <code>Phoenix.Socket.V1.JSONSerializer.fastlane!/1</code> through <code>Phoenix.Channel.Server.send/4</code>, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Run a Phoenix endpoint with a channel whose `handle_in/3` calls `broadcast(socket, \"evt\", {:binary, <<0, 1, 2, 3>>})` on its topic.\n2. As the attacker, open `/socket/websocket?vsn=1.0.0` and join the topic with a V1 frame (`{\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}`).\n3. Connect several V2 clients (`vsn=2.0.0`) and join the same topic.\n4. From another V2 client on the topic, push the event that triggers the binary broadcast.\n5. The broadcaster receives `phx_error`, the log shows `Protocol.UndefinedError` raised from `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` through `Phoenix.Channel.Server.send/4`, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."}],"value":"* Run a Phoenix endpoint with a channel whose handle_in/3 calls broadcast(socket, \"evt\", {:binary, <<0, 1, 2, 3>>}) on its topic.\n* As the attacker, open /socket/websocket?vsn=1.0.0 and join the topic with a V1 frame ({\"topic\": ..., \"event\": \"phx_join\", \"payload\": {}, \"ref\": ...}).\n* Connect several V2 clients (vsn=2.0.0) and join the same topic.\n* From another V2 client on the topic, push the event that triggers the binary broadcast.\n* The broadcaster receives phx_error, the log shows Protocol.UndefinedError raised from Phoenix.Socket.V1.JSONSerializer.fastlane!/1 through Phoenix.Channel.Server.send/4, and the V2 subscribers after the attacker receive nothing. Without the attacker, the same broadcast reaches every subscriber."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Serializer selection.</strong> The socket picks its serializer from the client's <code>vsn</code> parameter. A missing <code>vsn</code> or <code>vsn=1.0.0</code> selects <code>Phoenix.Socket.V1.JSONSerializer</code>, and <code>Phoenix.Channel.Server</code> registers it as the subscriber's fastlane metadata when the channel joins.</p>\n<p><strong>2. Shared dispatch.</strong> A broadcast runs <code>Phoenix.Channel.Server.send/4</code> once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber's serializer through <code>fastlane!/1</code> and has no rescue.</p>\n<p><strong>3. Crash.</strong> <code>Phoenix.Socket.V1.JSONSerializer.fastlane!/1</code> JSON-encodes the payload, so a <code>{:binary, data}</code> tuple raises <code>Protocol.UndefinedError</code>. The exception aborts the loop: the broadcasting channel crashes (its client receives <code>phx_error</code>) and every subscriber after the attacker misses the message.</p>\n<p><strong>4. Cluster spread.</strong> For broadcasts from other nodes, the same loop runs in the <code>Phoenix.PubSub.PG2</code> adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending <code>:forward_to_local</code> to the worker.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Serializer selection.** The socket picks its serializer from the client's `vsn` parameter. A missing `vsn` or `vsn=1.0.0` selects `Phoenix.Socket.V1.JSONSerializer`, and `Phoenix.Channel.Server` registers it as the subscriber's fastlane metadata when the channel joins.\n\n**2. Shared dispatch.** A broadcast runs `Phoenix.Channel.Server.send/4` once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber's serializer through `fastlane!/1` and has no rescue.\n\n**3. Crash.** `Phoenix.Socket.V1.JSONSerializer.fastlane!/1` JSON-encodes the payload, so a `{:binary, data}` tuple raises `Protocol.UndefinedError`. The exception aborts the loop: the broadcasting channel crashes (its client receives `phx_error`) and every subscriber after the attacker misses the message.\n\n**4. Cluster spread.** For broadcasts from other nodes, the same loop runs in the `Phoenix.PubSub.PG2` adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending `:forward_to_local` to the worker."}],"value":"1. Serializer selection. The socket picks its serializer from the client's vsn parameter. A missing vsn or vsn=1.0.0 selects Phoenix.Socket.V1.JSONSerializer, and Phoenix.Channel.Server registers it as the subscriber's fastlane metadata when the channel joins.\n\n2. Shared dispatch. A broadcast runs Phoenix.Channel.Server.send/4 once per subscriber, inside the PubSub dispatch loop of the broadcasting process. It encodes the message with each subscriber's serializer through fastlane!/1 and has no rescue.\n\n3. Crash. Phoenix.Socket.V1.JSONSerializer.fastlane!/1 JSON-encodes the payload, so a {:binary, data} tuple raises Protocol.UndefinedError. The exception aborts the loop: the broadcasting channel crashes (its client receives phx_error) and every subscriber after the attacker misses the message.\n\n4. Cluster spread. For broadcasts from other nodes, the same loop runs in the Phoenix.PubSub.PG2 adapter worker. Each forwarded binary broadcast crashes it, and repeated crashes exceed the restart intensity and restart the PubSub supervisor, which empties the subscription registry while sockets stay connected. The report simulated this step locally by sending :forward_to_local to the worker."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-129344","datePublished":"2026-11-21T10:59:15.168Z","dateReserved":"2026-11-18T04:41:14.165Z","dateUpdated":"2026-11-21T10:59:15.168Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}