Skip to main content

NervesHub EUVDEUVD-2026-120872

| CVE-2026-120997 LOW
2026-11-10 EEF
2.3
CVSS 4.0 · Vendor: EEF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as org member with console access
  2. Delivery
    Open device page and console tab
  3. Exploit
    Get removed or demoted by admin
  4. Execution
    Keep issuing commands on device at old role
  5. Impact
    Lose 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 Phoenix.Token (the data-user-token attribute) taken from a page the user had open, then connect to /socket/websocket; this works even after sign-out but stays within the user's CURRENT membership (the join membership check still applies) and expires in 24 hours. Key limiting factors: no effect on new/reloaded sessions, exposure ends on page reload, socket disconnect, or web-node restart (the vendor's workaround), the token cannot be revoked short of rotating SECRET_KEY_BASE, and the actor must already have had legitimate access - no new capabilities are gained beyond what was open at the time of change.

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 data-user-token from a page the user had open can connect a Phoenix socket client to /socket and open consoles as that user even after they sign out, limited by the user's current membership. A full PoC reference exists in the vendor GHSA advisory; it is not verified as a packaged working exploit.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nerves_hub_web b5d2438677f79d10e91aeef20a7b5cd8cca0d63c <a96497ddd4d24ab1847f7685e255bf96fd87b85b
nerves_hub_web 1.0.0 <2.5.3

Affected Packages

euvd nerves_hub_web fix: 2.5.3

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

Vendor (EEF) PRIMARY 2.3 LOW
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
vuln.today AI 4.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:L/SA:N

Primary rating from Vendor (EEF).

CVSS VectorVendor: EEF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
Low
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche Elixir/Nerves IoT fleet-management platform, limited enterprise footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

12
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +12
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy