CVE-2026-128361 (GCVE-0-2026-128361)
Vulnerability from cvelistv5 – Published: 2026-11-21 11:09 – Updated: 2026-11-23 20:27- CWE-20 - Improper Input Validation
| Vendor | Product | Version | CPE status | |
|---|---|---|---|---|
| phoenixframework | phoenix |
Affected:
1.2.0 , < 1.5.16
(semver)
Affected: 1.6.0-rc.0 , < 1.6.18 (semver) Affected: 1.7.0-rc.0 , < 1.7.25 (semver) Affected: 1.8.0-rc.0 , < 1.8.17 (semver) cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
||
| phoenixframework | phoenix |
Affected:
44e7618370629df93711cd6169789fd0d8f3678e , < *
(git)
cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:* |
{
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-128361",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:27:13.533560Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:27:25.217Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.2.0",
"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": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "39c1c6bfd0c817f1223c121f61c60a25f66b76cb",
"status": "unaffected"
},
{
"at": "6609595fb3e37f545c4ac636a369f14b0084bc3d",
"status": "unaffected"
},
{
"at": "81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b",
"status": "unaffected"
},
{
"at": "edb702804aeab3a29543668a8be8ea61291c4b75",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "44e7618370629df93711cd6169789fd0d8f3678e",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a \u003ccode\u003efetch/2\u003c/code\u003e callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose \u003ccode\u003efetch/2\u003c/code\u003e cannot raise are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a `fetch/2` callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose `fetch/2` cannot raise are not affected."
}
],
"value": "The application must use Phoenix.Presence and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a fetch/2 callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose fetch/2 cannot raise are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.2.0",
"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\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:53:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Input Validation vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Presence\u003c/code\u003e) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003etrack/3,4\u003c/code\u003e accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with \u003ccode\u003eto_string/1\u003c/code\u003e only later, in \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, which raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a map. \u003ccode\u003egroup/1\u003c/code\u003e runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\u003c/p\u003e\n\u003cp\u003eFrom 1.7.0 the diff runs in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.2.0 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (`Phoenix.Presence`) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\n`track/3,4` accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with `to_string/1` only later, in `Phoenix.Presence.group/1`, which raises `Protocol.UndefinedError` on a map. `group/1` runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s `fetch/2`, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 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": "Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\ntrack/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 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-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eWith one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
],
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
]
}
],
"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-20",
"description": "CWE-20 Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-21T11:09:51.800Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unsanitized presence key crashes Presence tracker",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr"
},
{
"name": "EEF CNA record for CVE-2026-128361",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-128361.html"
},
{
"name": "OSV record EEF-CVE-2026-128361",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-128361"
},
{
"name": "Introducing commit 44e7618 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e"
},
{
"name": "Fix commit 39c1c6b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb"
},
{
"name": "Fix commit 6609595 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d"
},
{
"name": "Fix commit 81bc027 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b"
},
{
"name": "Fix commit edb7028 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unsanitized presence key crashes Presence tracker",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate every presence key before passing it to \u003ccode\u003etrack/3,4\u003c/code\u003e, \u003ccode\u003euntrack/2,3\u003c/code\u003e or \u003ccode\u003eupdate/3,4\u003c/code\u003e, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003edef join(\"room:\" \u0026lt;\u0026gt; _, %{\"name\" =\u0026gt; name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eA \u003ccode\u003efetch/2\u003c/code\u003e callback must also not raise on any tracked key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate every presence key before passing it to `track/3,4`, `untrack/2,3` or `update/3,4`, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\n```elixir\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n```\n\nA `fetch/2` callback must also not raise on any tracked key."
}
],
"value": "Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\nA fetch/2 callback must also not raise on any tracked key."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose join reads \u003ccode\u003ename\u003c/code\u003e from the join payload and then calls \u003ccode\u003eMyPresence.track(socket, name, %{online_at: 1})\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eJoin the topic with 15 clients using string names, and confirm \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 15 entries.\u003c/li\u003e\n\u003cli\u003eJoin once more with the payload \u003ccode\u003e{\"name\": {\"x\": 1}}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e from \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, then the shard terminating. All 15 clients receive \u003ccode\u003ephx_error\u003c/code\u003e, and \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 0 entries.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose join reads `name` from the join payload and then calls `MyPresence.track(socket, name, %{online_at: 1})`.\n2. Join the topic with 15 clients using string names, and confirm `MyPresence.list(topic)` returns 15 entries.\n3. Join once more with the payload `{\"name\": {\"x\": 1}}`.\n4. The log shows `Protocol.UndefinedError` from `Phoenix.Presence.group/1`, then the shard terminating. All 15 clients receive `phx_error`, and `MyPresence.list(topic)` returns 0 entries."
}
],
"value": "* Run a Phoenix endpoint with a channel whose join reads name from the join payload and then calls MyPresence.track(socket, name, %{online_at: 1}).\n* Join the topic with 15 clients using string names, and confirm MyPresence.list(topic) returns 15 entries.\n* Join once more with the payload {\"name\": {\"x\": 1}}.\n* The log shows Protocol.UndefinedError from Phoenix.Presence.group/1, then the shard terminating. All 15 clients receive phx_error, and MyPresence.list(topic) returns 0 entries."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Key accepted.\u003c/strong\u003e The \u003ccode\u003etrack/3,4\u003c/code\u003e injected by \u003ccode\u003euse Phoenix.Presence\u003c/code\u003e passes any term to \u003ccode\u003ePhoenix.Tracker.track\u003c/code\u003e, which returns \u003ccode\u003e{:ok, ref}\u003c/code\u003e. The documented pattern \u003ccode\u003ePresence.track(socket, name, meta)\u003c/code\u003e with \u003ccode\u003ename\u003c/code\u003e from the join payload lets a client choose a map as the key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Deferred conversion.\u003c/strong\u003e \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e converts each key with \u003ccode\u003eto_string/1\u003c/code\u003e. It runs in \u003ccode\u003ePhoenix.Presence.list/2\u003c/code\u003e, in the calling process, and in \u003ccode\u003ehandle_diff/2\u003c/code\u003e before the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e. A map key raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e there, as does a \u003ccode\u003efetch/2\u003c/code\u003e such as the moduledoc\u0027s \u003ccode\u003eString.to_integer(key)\u003c/code\u003e on a non-numeric key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Topic crash.\u003c/strong\u003e While the key stays tracked, every \u003ccode\u003elist\u003c/code\u003e on the topic raises. The documented \u003ccode\u003eafter_join\u003c/code\u003e that pushes \u003ccode\u003ePresence.list(socket)\u003c/code\u003e therefore crashes each later joiner\u0027s channel. Before 1.7.0, \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs in an unlinked \u003ccode\u003eTask.Supervisor.start_child\u003c/code\u003e task, so a failing diff only loses that batch of joins and leaves.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Shard crash (1.7.0 and later).\u003c/strong\u003e \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs the diff in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e matches only the task\u0027s success reply. The failure terminates the shard (\u003ccode\u003eFunctionClauseError\u003c/code\u003e), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Key accepted.** The `track/3,4` injected by `use Phoenix.Presence` passes any term to `Phoenix.Tracker.track`, which returns `{:ok, ref}`. The documented pattern `Presence.track(socket, name, meta)` with `name` from the join payload lets a client choose a map as the key.\n\n**2. Deferred conversion.** `Phoenix.Presence.group/1` converts each key with `to_string/1`. It runs in `Phoenix.Presence.list/2`, in the calling process, and in `handle_diff/2` before the application\u0027s `fetch/2`. A map key raises `Protocol.UndefinedError` there, as does a `fetch/2` such as the moduledoc\u0027s `String.to_integer(key)` on a non-numeric key.\n\n**3. Topic crash.** While the key stays tracked, every `list` on the topic raises. The documented `after_join` that pushes `Presence.list(socket)` therefore crashes each later joiner\u0027s channel. Before 1.7.0, `handle_diff/2` runs in an unlinked `Task.Supervisor.start_child` task, so a failing diff only loses that batch of joins and leaves.\n\n**4. Shard crash (1.7.0 and later).** `handle_diff/2` runs the diff in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` matches only the task\u0027s success reply. The failure terminates the shard (`FunctionClauseError`), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
],
"value": "1. Key accepted. The track/3,4 injected by use Phoenix.Presence passes any term to Phoenix.Tracker.track, which returns {:ok, ref}. The documented pattern Presence.track(socket, name, meta) with name from the join payload lets a client choose a map as the key.\n\n2. Deferred conversion. Phoenix.Presence.group/1 converts each key with to_string/1. It runs in Phoenix.Presence.list/2, in the calling process, and in handle_diff/2 before the application\u0027s fetch/2. A map key raises Protocol.UndefinedError there, as does a fetch/2 such as the moduledoc\u0027s String.to_integer(key) on a non-numeric key.\n\n3. Topic crash. While the key stays tracked, every list on the topic raises. The documented after_join that pushes Presence.list(socket) therefore crashes each later joiner\u0027s channel. Before 1.7.0, handle_diff/2 runs in an unlinked Task.Supervisor.start_child task, so a failing diff only loses that batch of joins and leaves.\n\n4. Shard crash (1.7.0 and later). handle_diff/2 runs the diff in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 matches only the task\u0027s success reply. The failure terminates the shard (FunctionClauseError), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-128361",
"datePublished": "2026-11-21T11:09:51.800Z",
"dateReserved": "2026-11-18T13:53:21.753Z",
"dateUpdated": "2026-11-23T20:27:25.217Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"vulnerability-lookup:meta": {
"epss": {
"cve": "CVE-2026-128361",
"date": "2026-11-23",
"epss": "0.00604",
"percentile": "0.49842"
},
"nvd": {
"cve": {
"affected": [
{
"affectedData": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.2.0",
"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": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "39c1c6bfd0c817f1223c121f61c60a25f66b76cb",
"status": "unaffected"
},
{
"at": "6609595fb3e37f545c4ac636a369f14b0084bc3d",
"status": "unaffected"
},
{
"at": "81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b",
"status": "unaffected"
},
{
"at": "edb702804aeab3a29543668a8be8ea61291c4b75",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "44e7618370629df93711cd6169789fd0d8f3678e",
"versionType": "git"
}
]
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
}
],
"cveTags": [],
"descriptions": [
{
"lang": "en",
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\ntrack/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 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."
}
],
"id": "CVE-2026-128361",
"lastModified": "2026-11-23T21:16:52.900",
"metrics": {
"cvssMetricV40": [
{
"cvssData": {
"Automatable": "NOT_DEFINED",
"Recovery": "NOT_DEFINED",
"Safety": "NOT_DEFINED",
"attackComplexity": "LOW",
"attackRequirements": "PRESENT",
"attackVector": "NETWORK",
"availabilityRequirement": "NOT_DEFINED",
"baseScore": 8.2,
"baseSeverity": "HIGH",
"confidentialityRequirement": "NOT_DEFINED",
"exploitMaturity": "NOT_DEFINED",
"integrityRequirement": "NOT_DEFINED",
"modifiedAttackComplexity": "NOT_DEFINED",
"modifiedAttackRequirements": "NOT_DEFINED",
"modifiedAttackVector": "NOT_DEFINED",
"modifiedPrivilegesRequired": "NOT_DEFINED",
"modifiedSubAvailabilityImpact": "NOT_DEFINED",
"modifiedSubConfidentialityImpact": "NOT_DEFINED",
"modifiedSubIntegrityImpact": "NOT_DEFINED",
"modifiedUserInteraction": "NOT_DEFINED",
"modifiedVulnAvailabilityImpact": "NOT_DEFINED",
"modifiedVulnConfidentialityImpact": "NOT_DEFINED",
"modifiedVulnIntegrityImpact": "NOT_DEFINED",
"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"version": "4.0",
"vulnAvailabilityImpact": "HIGH",
"vulnConfidentialityImpact": "NONE",
"vulnIntegrityImpact": "NONE",
"vulnerabilityResponseEffort": "NOT_DEFINED"
},
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-128361",
"options": [
{
"exploitation": "none"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:27:13.533560Z",
"version": "2.0.3"
}
}
]
},
"published": "2026-11-21T11:16:38.787",
"references": [
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://cna.erlef.org/cves/CVE-2026-128361.html"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr"
},
{
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-128361"
}
],
"sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"vulnStatus": "Deferred",
"weaknesses": [
{
"description": [
{
"lang": "en",
"value": "CWE-20"
}
],
"source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"type": "Secondary"
}
]
}
},
"vulnrichment": {
"containers": {
"adp": [
{
"metrics": [
{
"other": {
"content": {
"id": "CVE-2026-128361",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"role": "CISA Coordinator",
"timestamp": "2026-11-23T20:27:13.533560Z",
"version": "2.0.3"
},
"type": "ssvc"
}
}
],
"providerMetadata": {
"dateUpdated": "2026-11-23T20:27:19.905Z",
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP"
},
"title": "CISA ADP Vulnrichment"
}
],
"cna": {
"affected": [
{
"collectionURL": "https://repo.hex.pm",
"cpes": [
"cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*"
],
"defaultStatus": "unaffected",
"modules": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenix",
"packageURL": "pkg:hex/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"lessThan": "1.5.16",
"status": "affected",
"version": "1.2.0",
"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": [
"\u0027Elixir.Phoenix.Presence\u0027"
],
"packageName": "phoenixframework/phoenix",
"packageURL": "pkg:github/phoenixframework/phoenix",
"product": "phoenix",
"programFiles": [
"lib/phoenix/presence.ex"
],
"programRoutines": [
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_info/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:handle_diff/2"
},
{
"name": "\u0027Elixir.Phoenix.Presence\u0027:group/1"
}
],
"repo": "https://github.com/phoenixframework/phoenix",
"vendor": "phoenixframework",
"versions": [
{
"changes": [
{
"at": "39c1c6bfd0c817f1223c121f61c60a25f66b76cb",
"status": "unaffected"
},
{
"at": "6609595fb3e37f545c4ac636a369f14b0084bc3d",
"status": "unaffected"
},
{
"at": "81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b",
"status": "unaffected"
},
{
"at": "edb702804aeab3a29543668a8be8ea61291c4b75",
"status": "unaffected"
}
],
"lessThan": "*",
"status": "affected",
"version": "44e7618370629df93711cd6169789fd0d8f3678e",
"versionType": "git"
}
]
}
],
"configurations": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eThe application must use \u003ccode\u003ePhoenix.Presence\u003c/code\u003e and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a \u003ccode\u003efetch/2\u003c/code\u003e callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose \u003ccode\u003efetch/2\u003c/code\u003e cannot raise are not affected.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "The application must use `Phoenix.Presence` and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a `fetch/2` callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose `fetch/2` cannot raise are not affected."
}
],
"value": "The application must use Phoenix.Presence and either track presences under a key influenced by client input (such as a name taken from the channel join payload), or define a fetch/2 callback that can raise on a tracked key. Applications that track only server-controlled string keys and whose fetch/2 cannot raise are not affected."
}
],
"cpeApplicability": [
{
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:phoenixframework:phoenix:*:*:*:*:*:*:*:*",
"versionEndExcluding": "1.5.16",
"versionStartIncluding": "1.2.0",
"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\u00e9 Valim"
}
],
"dateAssigned": "2026-11-20T10:53:30.000Z",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eImproper Input Validation vulnerability in phoenixframework phoenix (\u003ccode\u003ePhoenix.Presence\u003c/code\u003e) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\u003c/p\u003e\n\u003cp\u003e\u003ccode\u003etrack/3,4\u003c/code\u003e accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with \u003ccode\u003eto_string/1\u003c/code\u003e only later, in \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, which raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e on a map. \u003ccode\u003egroup/1\u003c/code\u003e runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\u003c/p\u003e\n\u003cp\u003eFrom 1.7.0 the diff runs in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\u003c/p\u003e\n\u003cp\u003eThis issue affects phoenix: from 1.2.0 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.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Improper Input Validation vulnerability in phoenixframework phoenix (`Phoenix.Presence`) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\n`track/3,4` accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with `to_string/1` only later, in `Phoenix.Presence.group/1`, which raises `Protocol.UndefinedError` on a map. `group/1` runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s `fetch/2`, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 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": "Improper Input Validation vulnerability in phoenixframework phoenix (Phoenix.Presence) allows an attacker who can join a channel to cause a denial of service via a non-string presence key.\n\ntrack/3,4 accepts any term as the presence key, such as a JSON object taken from a join payload. The key is converted with to_string/1 only later, in Phoenix.Presence.group/1, which raises Protocol.UndefinedError on a map. group/1 runs whenever presences are listed and when each presence diff is broadcast, together with the application\u0027s fetch/2, which can likewise raise on an unexpected key. Once such a key is tracked, every process that lists presences on the topic crashes, typically each channel that joins it, and presence diffs for the topic are lost.\n\nFrom 1.7.0 the diff runs in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 has no clause for its failure. The shard then terminates, taking down every channel and LiveView process tracked on it and erasing presence state for all its topics. Repeated joins exhaust the restart intensity and take down the application supervisor.\n\nThis issue affects phoenix: from 1.2.0 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-153",
"descriptions": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eWith one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
],
"value": "With one channel join an attacker makes the topic\u0027s presence unusable: every later join that lists presences crashes, and presence updates stop. From 1.7.0 the same join terminates every channel and LiveView process tracked on the Presence shard and erases presence state for all its topics, and repeating it brings down the application."
}
]
}
],
"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-20",
"description": "CWE-20 Improper Input Validation",
"lang": "en",
"type": "CWE"
}
]
}
],
"providerMetadata": {
"dateUpdated": "2026-11-21T11:09:51.800Z",
"orgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"shortName": "EEF"
},
"references": [
{
"name": "Unsanitized presence key crashes Presence tracker",
"tags": [
"vendor-advisory",
"related"
],
"url": "https://github.com/phoenixframework/phoenix/security/advisories/GHSA-pvfx-rx4x-phrr"
},
{
"name": "EEF CNA record for CVE-2026-128361",
"tags": [
"related"
],
"url": "https://cna.erlef.org/cves/CVE-2026-128361.html"
},
{
"name": "OSV record EEF-CVE-2026-128361",
"tags": [
"related"
],
"url": "https://osv.dev/vulnerability/EEF-CVE-2026-128361"
},
{
"name": "Introducing commit 44e7618 in phoenixframework/phoenix",
"tags": [
"related"
],
"url": "https://github.com/phoenixframework/phoenix/commit/44e7618370629df93711cd6169789fd0d8f3678e"
},
{
"name": "Fix commit 39c1c6b in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/39c1c6bfd0c817f1223c121f61c60a25f66b76cb"
},
{
"name": "Fix commit 6609595 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/6609595fb3e37f545c4ac636a369f14b0084bc3d"
},
{
"name": "Fix commit 81bc027 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/81bc0278c7a4e6204f7e2e0a3b3200e9f1ee5a4b"
},
{
"name": "Fix commit edb7028 in phoenixframework/phoenix",
"tags": [
"patch"
],
"url": "https://github.com/phoenixframework/phoenix/commit/edb702804aeab3a29543668a8be8ea61291c4b75"
}
],
"source": {
"discovery": "EXTERNAL"
},
"title": "Unsanitized presence key crashes Presence tracker",
"workarounds": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003eValidate every presence key before passing it to \u003ccode\u003etrack/3,4\u003c/code\u003e, \u003ccode\u003euntrack/2,3\u003c/code\u003e or \u003ccode\u003eupdate/3,4\u003c/code\u003e, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\u003c/p\u003e\n\u003cpre\u003e\u003ccode class=\"language-elixir\"\u003edef join(\"room:\" \u0026lt;\u0026gt; _, %{\"name\" =\u0026gt; name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eA \u003ccode\u003efetch/2\u003c/code\u003e callback must also not raise on any tracked key.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "Validate every presence key before passing it to `track/3,4`, `untrack/2,3` or `update/3,4`, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\n```elixir\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n```\n\nA `fetch/2` callback must also not raise on any tracked key."
}
],
"value": "Validate every presence key before passing it to track/3,4, untrack/2,3 or update/3,4, so that only strings reach the tracker. For a key taken from client input, reject a join whose value is not a binary, or convert it explicitly:\n\ndef join(\"room:\" \u003c\u003e _, %{\"name\" =\u003e name}, socket) when is_binary(name) do\n send(self(), {:after_join, name})\n {:ok, socket}\nend\n\nA fetch/2 callback must also not raise on any tracked key."
}
],
"x_proofOfConcept": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003col\u003e\n\u003cli\u003eRun a Phoenix endpoint with a channel whose join reads \u003ccode\u003ename\u003c/code\u003e from the join payload and then calls \u003ccode\u003eMyPresence.track(socket, name, %{online_at: 1})\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eJoin the topic with 15 clients using string names, and confirm \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 15 entries.\u003c/li\u003e\n\u003cli\u003eJoin once more with the payload \u003ccode\u003e{\"name\": {\"x\": 1}}\u003c/code\u003e.\u003c/li\u003e\n\u003cli\u003eThe log shows \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e from \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e, then the shard terminating. All 15 clients receive \u003ccode\u003ephx_error\u003c/code\u003e, and \u003ccode\u003eMyPresence.list(topic)\u003c/code\u003e returns 0 entries.\u003c/li\u003e\n\u003c/ol\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "1. Run a Phoenix endpoint with a channel whose join reads `name` from the join payload and then calls `MyPresence.track(socket, name, %{online_at: 1})`.\n2. Join the topic with 15 clients using string names, and confirm `MyPresence.list(topic)` returns 15 entries.\n3. Join once more with the payload `{\"name\": {\"x\": 1}}`.\n4. The log shows `Protocol.UndefinedError` from `Phoenix.Presence.group/1`, then the shard terminating. All 15 clients receive `phx_error`, and `MyPresence.list(topic)` returns 0 entries."
}
],
"value": "* Run a Phoenix endpoint with a channel whose join reads name from the join payload and then calls MyPresence.track(socket, name, %{online_at: 1}).\n* Join the topic with 15 clients using string names, and confirm MyPresence.list(topic) returns 15 entries.\n* Join once more with the payload {\"name\": {\"x\": 1}}.\n* The log shows Protocol.UndefinedError from Phoenix.Presence.group/1, then the shard terminating. All 15 clients receive phx_error, and MyPresence.list(topic) returns 0 entries."
}
],
"x_technicalAnalysis": [
{
"lang": "en",
"supportingMedia": [
{
"base64": false,
"type": "text/html",
"value": "\u003cp\u003e\u003cstrong\u003e1. Key accepted.\u003c/strong\u003e The \u003ccode\u003etrack/3,4\u003c/code\u003e injected by \u003ccode\u003euse Phoenix.Presence\u003c/code\u003e passes any term to \u003ccode\u003ePhoenix.Tracker.track\u003c/code\u003e, which returns \u003ccode\u003e{:ok, ref}\u003c/code\u003e. The documented pattern \u003ccode\u003ePresence.track(socket, name, meta)\u003c/code\u003e with \u003ccode\u003ename\u003c/code\u003e from the join payload lets a client choose a map as the key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e2. Deferred conversion.\u003c/strong\u003e \u003ccode\u003ePhoenix.Presence.group/1\u003c/code\u003e converts each key with \u003ccode\u003eto_string/1\u003c/code\u003e. It runs in \u003ccode\u003ePhoenix.Presence.list/2\u003c/code\u003e, in the calling process, and in \u003ccode\u003ehandle_diff/2\u003c/code\u003e before the application\u0027s \u003ccode\u003efetch/2\u003c/code\u003e. A map key raises \u003ccode\u003eProtocol.UndefinedError\u003c/code\u003e there, as does a \u003ccode\u003efetch/2\u003c/code\u003e such as the moduledoc\u0027s \u003ccode\u003eString.to_integer(key)\u003c/code\u003e on a non-numeric key.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e3. Topic crash.\u003c/strong\u003e While the key stays tracked, every \u003ccode\u003elist\u003c/code\u003e on the topic raises. The documented \u003ccode\u003eafter_join\u003c/code\u003e that pushes \u003ccode\u003ePresence.list(socket)\u003c/code\u003e therefore crashes each later joiner\u0027s channel. Before 1.7.0, \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs in an unlinked \u003ccode\u003eTask.Supervisor.start_child\u003c/code\u003e task, so a failing diff only loses that batch of joins and leaves.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003e4. Shard crash (1.7.0 and later).\u003c/strong\u003e \u003ccode\u003ehandle_diff/2\u003c/code\u003e runs the diff in a \u003ccode\u003eTask.Supervisor.async\u003c/code\u003e task linked to the tracker shard, and \u003ccode\u003ePhoenix.Presence.handle_info/2\u003c/code\u003e matches only the task\u0027s success reply. The failure terminates the shard (\u003ccode\u003eFunctionClauseError\u003c/code\u003e), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity.\u003c/p\u003e"
},
{
"base64": false,
"type": "text/markdown",
"value": "**1. Key accepted.** The `track/3,4` injected by `use Phoenix.Presence` passes any term to `Phoenix.Tracker.track`, which returns `{:ok, ref}`. The documented pattern `Presence.track(socket, name, meta)` with `name` from the join payload lets a client choose a map as the key.\n\n**2. Deferred conversion.** `Phoenix.Presence.group/1` converts each key with `to_string/1`. It runs in `Phoenix.Presence.list/2`, in the calling process, and in `handle_diff/2` before the application\u0027s `fetch/2`. A map key raises `Protocol.UndefinedError` there, as does a `fetch/2` such as the moduledoc\u0027s `String.to_integer(key)` on a non-numeric key.\n\n**3. Topic crash.** While the key stays tracked, every `list` on the topic raises. The documented `after_join` that pushes `Presence.list(socket)` therefore crashes each later joiner\u0027s channel. Before 1.7.0, `handle_diff/2` runs in an unlinked `Task.Supervisor.start_child` task, so a failing diff only loses that batch of joins and leaves.\n\n**4. Shard crash (1.7.0 and later).** `handle_diff/2` runs the diff in a `Task.Supervisor.async` task linked to the tracker shard, and `Phoenix.Presence.handle_info/2` matches only the task\u0027s success reply. The failure terminates the shard (`FunctionClauseError`), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
],
"value": "1. Key accepted. The track/3,4 injected by use Phoenix.Presence passes any term to Phoenix.Tracker.track, which returns {:ok, ref}. The documented pattern Presence.track(socket, name, meta) with name from the join payload lets a client choose a map as the key.\n\n2. Deferred conversion. Phoenix.Presence.group/1 converts each key with to_string/1. It runs in Phoenix.Presence.list/2, in the calling process, and in handle_diff/2 before the application\u0027s fetch/2. A map key raises Protocol.UndefinedError there, as does a fetch/2 such as the moduledoc\u0027s String.to_integer(key) on a non-numeric key.\n\n3. Topic crash. While the key stays tracked, every list on the topic raises. The documented after_join that pushes Presence.list(socket) therefore crashes each later joiner\u0027s channel. Before 1.7.0, handle_diff/2 runs in an unlinked Task.Supervisor.start_child task, so a failing diff only loses that batch of joins and leaves.\n\n4. Shard crash (1.7.0 and later). handle_diff/2 runs the diff in a Task.Supervisor.async task linked to the tracker shard, and Phoenix.Presence.handle_info/2 matches only the task\u0027s success reply. The failure terminates the shard (FunctionClauseError), every tracked process linked to it dies, and presence state is wiped. Repeated joins exhaust the supervisor\u0027s restart intensity."
}
]
}
},
"cveMetadata": {
"assignerOrgId": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
"assignerShortName": "EEF",
"cveId": "CVE-2026-128361",
"datePublished": "2026-11-21T11:09:51.800Z",
"dateReserved": "2026-11-18T13:53:21.753Z",
"dateUpdated": "2026-11-23T20:27:25.217Z",
"state": "PUBLISHED"
},
"dataType": "CVE_RECORD",
"dataVersion": "5.2"
}
}
}
Workarounds
Configurations
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.