FKIE_CVE-2026-120997

Vulnerability from fkie_nvd - Published: 2026-11-10 11:16 - Updated: 2026-11-12 20:07
Summary
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.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "collectionURL": "https://ghcr.io",
          "cpes": [
            "cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.NervesHubWeb.UserSocket\u0027",
            "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027",
            "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027",
            "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027",
            "\u0027Elixir.NervesHubWeb.Auth\u0027",
            "\u0027Elixir.NervesHub.Accounts\u0027"
          ],
          "packageName": "nerves-hub/nerves-hub",
          "packageURL": "pkg:oci/nerves-hub?repository_url=ghcr.io%2Fnerves-hub%2Fnerves-hub",
          "product": "nerves_hub_web",
          "programFiles": [
            "lib/nerves_hub_web/channels/user_socket.ex",
            "lib/nerves_hub_web/channels/user_console_channel.ex",
            "lib/nerves_hub_web/channels/user_local_shell_channel.ex",
            "lib/nerves_hub_web/channels/device_events_stream_channel.ex",
            "lib/nerves_hub_web/auth.ex",
            "lib/nerves_hub/accounts.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:connect/2"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:id/1"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:on_mount/4"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:log_out_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:soft_delete_org_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:change_org_user_role/2"
            }
          ],
          "vendor": "nerves-hub",
          "versions": [
            {
              "lessThan": "2.5.3",
              "status": "affected",
              "version": "1.0.0",
              "versionType": "other"
            }
          ]
        },
        {
          "cpes": [
            "cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.NervesHubWeb.UserSocket\u0027",
            "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027",
            "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027",
            "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027",
            "\u0027Elixir.NervesHubWeb.Auth\u0027",
            "\u0027Elixir.NervesHub.Accounts\u0027"
          ],
          "packageName": "nerves_hub",
          "packageURL": "pkg:otp/nerves_hub?repository_url=https:%2F%2Fgithub.com%2Fnerves-hub%2Fnerves_hub_web\u0026vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Fnerves-hub%2Fnerves_hub_web.git",
          "product": "nerves_hub_web",
          "programFiles": [
            "lib/nerves_hub_web/channels/user_socket.ex",
            "lib/nerves_hub_web/channels/user_console_channel.ex",
            "lib/nerves_hub_web/channels/user_local_shell_channel.ex",
            "lib/nerves_hub_web/channels/device_events_stream_channel.ex",
            "lib/nerves_hub_web/auth.ex",
            "lib/nerves_hub/accounts.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:connect/2"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:id/1"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:on_mount/4"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:log_out_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:soft_delete_org_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:change_org_user_role/2"
            }
          ],
          "repo": "https://github.com/nerves-hub/nerves_hub_web",
          "vendor": "nerves-hub",
          "versions": [
            {
              "lessThan": "2.5.3",
              "status": "affected",
              "version": "1.0.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://github.com",
          "cpes": [
            "cpe:2.3:a:nerves-hub:nerves_hub_web:*:*:*:*:*:*:*:*"
          ],
          "defaultStatus": "unaffected",
          "modules": [
            "\u0027Elixir.NervesHubWeb.UserSocket\u0027",
            "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027",
            "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027",
            "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027",
            "\u0027Elixir.NervesHubWeb.Auth\u0027",
            "\u0027Elixir.NervesHub.Accounts\u0027"
          ],
          "packageName": "nerves-hub/nerves_hub_web",
          "packageURL": "pkg:github/nerves-hub/nerves_hub_web",
          "product": "nerves_hub_web",
          "programFiles": [
            "lib/nerves_hub_web/channels/user_socket.ex",
            "lib/nerves_hub_web/channels/user_console_channel.ex",
            "lib/nerves_hub_web/channels/user_local_shell_channel.ex",
            "lib/nerves_hub_web/channels/device_events_stream_channel.ex",
            "lib/nerves_hub_web/auth.ex",
            "lib/nerves_hub/accounts.ex"
          ],
          "programRoutines": [
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:connect/2"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserSocket\u0027:id/1"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserConsoleChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.UserLocalShellChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.DeviceEventsStreamChannel\u0027:join/3"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:on_mount/4"
            },
            {
              "name": "\u0027Elixir.NervesHubWeb.Auth\u0027:log_out_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:soft_delete_org_user/1"
            },
            {
              "name": "\u0027Elixir.NervesHub.Accounts\u0027:change_org_user_role/2"
            }
          ],
          "repo": "https://github.com/nerves-hub/nerves_hub_web",
          "vendor": "nerves-hub",
          "versions": [
            {
              "lessThan": "a96497ddd4d24ab1847f7685e255bf96fd87b85b",
              "status": "affected",
              "version": "b5d2438677f79d10e91aeef20a7b5cd8cca0d63c",
              "versionType": "git"
            }
          ]
        }
      ],
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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\u0027s 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.\n\nThe dashboard also opens consoles over NervesHubWeb.UserSocket with a token that holds only the user\u0027s id, is accepted for 24 hours, and is not revoked by signing out, which disconnects only the session\u0027s LiveViews. Whoever holds a token taken from a page can open consoles as that user, within the user\u0027s current membership, until it expires.\n\nThis issue affects nerves_hub: from 1.0.0 before 2.5.3."
    }
  ],
  "id": "CVE-2026-120997",
  "lastModified": "2026-11-12T20:07:11.090",
  "metrics": {
    "cvssMetricV40": [
      {
        "cvssData": {
          "Automatable": "NOT_DEFINED",
          "Recovery": "NOT_DEFINED",
          "Safety": "NOT_DEFINED",
          "attackComplexity": "LOW",
          "attackRequirements": "PRESENT",
          "attackVector": "NETWORK",
          "availabilityRequirement": "NOT_DEFINED",
          "baseScore": 2.3,
          "baseSeverity": "LOW",
          "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": "LOW",
          "providerUrgency": "NOT_DEFINED",
          "subAvailabilityImpact": "NONE",
          "subConfidentialityImpact": "NONE",
          "subIntegrityImpact": "LOW",
          "userInteraction": "NONE",
          "valueDensity": "NOT_DEFINED",
          "vectorString": "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/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": "NONE",
          "vulnConfidentialityImpact": "LOW",
          "vulnIntegrityImpact": "LOW",
          "vulnerabilityResponseEffort": "NOT_DEFINED"
        },
        "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
        "type": "Secondary"
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "id": "CVE-2026-120997",
          "options": [
            {
              "exploitation": "poc"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "partial"
            }
          ],
          "role": "CISA Coordinator",
          "timestamp": "2026-11-12T17:46:56.169469Z",
          "version": "2.0.3"
        }
      }
    ]
  },
  "published": "2026-11-10T11:16:42.550",
  "references": [
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "url": "https://cna.erlef.org/cves/CVE-2026-120997.html"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "url": "https://github.com/nerves-hub/nerves_hub_web/commit/a96497ddd4d24ab1847f7685e255bf96fd87b85b"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "url": "https://github.com/nerves-hub/nerves_hub_web/commit/b5d2438677f79d10e91aeef20a7b5cd8cca0d63c"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "url": "https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8"
    },
    {
      "source": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-120997"
    },
    {
      "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
      "url": "https://github.com/nerves-hub/nerves_hub_web/security/advisories/GHSA-c7jf-qcx9-xxf8"
    }
  ],
  "sourceIdentifier": "6b3ad84c-e1a6-4bf7-a703-f496b71e49db",
  "vulnStatus": "Deferred"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

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.

Loading…

Loading…

Loading…

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.


Loading…