Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as org member with console access
-
DeliveryOpen device page and console tab
-
ExploitGet removed or demoted by admin
-
ExecutionKeep issuing commands on device at old role
-
ImpactLose access only on reload or node restart
Vulnerability Assessment
| Weakness |
CWE
|
| Exploitation Conditions | Exploitation requires being an authenticated organization member (PR:L) who already has a dashboard page, device console, local shell, or device event stream OPEN at the moment they are removed or demoted - the stale role persists only through those open sessions. Alternatively, an actor must obtain the console's 24-hour |
| Impact | All signals converge on low real-world risk. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:L/SA:N, score 2.3) shows network reach but requires existing low privileges (PR:L, an org member) and a specific attack requirement (AT:P) - exploitation only works through sessions the member already had open when their role changed. The vuln.today priority is 'monitor', not an escalated label. No EPSS score and no KEV listing are provided, and the product is not in CISA KEV, so there is no evidence of active exploitation - this is no public exploit identified as active exploitation; a detailed step-by-step PoC is published in the vendor's own GHSA advisory, but it is a reproduction recipe, not verified working exploit code. The vendor itself rates impact low because the actor 'gets nothing they didn't have before, and only what they had open when the change was made.' This is a genuine but narrow privilege-invalidation/offboarding gap, not a high-CVSS-but-overstated issue - the modest CVSS and the mechanism agree. The one caveat worth flagging for defenders: the separate 24-hour console token that survives sign-out (CWE-1465) means token theft from an open page extends exposure beyond the original session, though it stays bounded by the user's current membership and token expiry. |
| Exploit ScenarioDerived | An org member with the 'manage' role opens a device's Console tab; an admin then removes or demotes them precisely because they are no longer trusted, but the already-open console keeps executing commands on the device and the open org page keeps performing actions like rebooting until the page reloads, the socket drops, or the web node restarts. Separately, anyone who copies the 24-hour |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
Removed or demoted members of a NervesHub organization keep acting at their previous role through dashboard pages, device consoles, local shells and device event streams they already had open, because NervesHubWeb reads the role once at page mount (the :assign_org_to_scope hook in NervesHubWeb.Auth) and once at channel join, and nothing revalidates it after a membership change. Versions 1.0.0 through 2.5.2 are affected; 2.5.3 fixes it by broadcasting membership changes, re-mounting open pages, re-running channel join checks, and replacing the dashboard's 24-hour Phoenix.Token with session-cookie authentication whose socket id is scoped to the session so sign-out closes it. Exploitation requires an already-authenticated org member (PR:L) with an open page or console at the moment of removal or demotion, or possession of a console token lifted from such a page, and it grants nothing beyond what the user could already do at the time; there is no confirmed active exploitation, a step-by-step proof-of-concept reproduction is published in the vendor advisory, the vendor rates the issue low (CVSS 4.0 base 2.3), and the risk-signal decision is monitor.
RemediationAI
Upgrade to nerves_hub 2.5.3, the first fixed release (patch commit https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b); after the upgrade, role changes and removals propagate to open pages and channels instead of being cached, and the 24-hour console token is eliminated in favour of session-cookie authentication from the LiveView socket with a session-scoped socket id, so signing out closes consoles. Advisory details and the full workaround discussion are at https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8 and https://cna.erlef.org/cves/CVE-2026-120997.html. If upgrade cannot be done immediately, the vendor's only stated workaround is to restart the web nodes after removing a member or lowering their role, which closes every open page and console so each is checked again on reconnect; the trade-off is a service interruption for all connected users and devices. Note that issued console tokens cannot be revoked before their 24-hour expiry short of rotating SECRET_KEY_BASE, which signs every user out, and that the join-time membership check still bounds a stolen token to the user's current permissions; the vendor does not offer any narrower mitigation than these.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NervesHub is an Elixir/Phoenix firmware-management platform for Nerves devices, distributed as otp/nerves_hub and the container image ghcr.io/nerves-hub/nerves-hub; its web front end is NervesHubWeb, built on Phoenix LiveView and Phoenix Channels. The flaw is a session/authorization-state invalidation problem (CWE-1464, with the advisory also citing CWE-1465): authorization decisions are cached for the lifetime of a connection rather than rebound to the current database state. On the LiveView side, the on_mount(:assign_org_to_scope, ...) hook at lib/nerves_hub_web/auth.ex reads the member's role once per page mount and every subsequent permission check on that page reuses the cached value. On the channel side, user_console_channel.ex, user_local_shell_channel.ex and device_events_stream_channel.ex perform their access check only in join/3; the Accounts functions soft_delete_org_user/1 and change_org_user_role/2 persist the change without notifying any open subscriber. Separately, the dashboard's UserSocket joined with a Phoenix.Token carrying only the user id, valid for 24 hours, with a per-user socket id (user_socket:<id>), while log_out_user/1 disconnects only the session's own LiveViews - so sign-out neither revoked the token nor closed an already-open socket. The 2.5.3 fix publishes a PubSub message on role change or removal so open pages re-mount with the new role, removed members are redirected to their org list, and console/local-shell/event-stream channels re-run their join check and close on failure; UserSocket now authenticates from the session cookie with the page's CSRF token and adopts the session-scoped id so sign-out terminates the socket (commits a96497ddd4d24ab1847f7685e255bf96fd87b85b and b5d2438677f79d10e91aeef20a7b5cd8cca0d63c).
Know when Nerves Hub Web gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:L/SA:N
Requires existing org membership (PR:L) and a session already open at the time of role change (AC:H); retained device-command actions reach the managed device beyond the web app, so S:C with low C/I.
Primary rating from Vendor (EEF).
CVSS VectorVendor: EEF
DescriptionCVE.org
Improper Session Invalidation vulnerability in the dashboard pages, device console and local shell channels in nerves-hub nerves_hub_web allows an organization member who is removed or given a lower role to keep acting at their old role through anything they had open at the time. The dashboard reads the member's role once when a page mounts, in the assign_org_to_scope hook of NervesHubWeb.Auth, and the console, local shell and device event stream channels check membership once at join. Removing a member or changing their role tells none of them, so open pages keep carrying out actions and open consoles keep running commands on the device until the page reloads or the socket disconnects.
The dashboard also opens consoles over NervesHubWeb.UserSocket with a token that holds only the user's id, is accepted for 24 hours, and is not revoked by signing out, which disconnects only the session's LiveViews. Whoever holds a token taken from a page can open consoles as that user, within the user's current membership, until it expires.
This issue affects nerves_hub: from 1.0.0 before 2.5.3.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Nerves Hub Web
View allNervesHub CLI login (nerves_hub_web 2.5.0 through 2.5.2) hands an API token to whichever party started the login, so an
Cross-organization authorization bypass in NervesHub (nerves_hub_web) 1.0.0 through 2.5.2 lets an authenticated user who
Unauthenticated denial of service in NervesHub's device TLS endpoint: a client certificate that chains to a root the end
NervesHub 2.3.0 through 2.5.2 will sign a person in to an account that someone else created with their email address, so
Incorrect authorization in NervesHub (nerves_hub_web) 1.0.0 through 2.5.2 lets an authenticated user who holds the 'mana
Authenticated members of a NervesHub organization who hold only the low-privileged 'view' role can still change devices
EUVD-2026-120872
NVD
CVE.org
EPSS
GitHub
Exploit-DB