{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "0.26.0-rc.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "3ec88f0ccf058d8327102f89126472af79da83a4"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "f374c7302064c49427e8127ffd837f9c615ae315"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v0.26.0-rc.1",
                "range": [
                  {
                    "fixed": "b0d4c03ce98623948f9b903bfd3ed17a1b16f2b7"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "b0d4c03ce98623948f9b903bfd3ed17a1b16f2b7"
            },
            {
              "fixed": "3ec88f0ccf058d8327102f89126472af79da83a4"
            },
            {
              "fixed": "f374c7302064c49427e8127ffd837f9c615ae315"
            }
          ],
          "repo": "https://github.com/shellhub-io/shellhub",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-ww26-9cqf-x69q"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-862"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58267.json"
  },
  "details": "ShellHub is an SSH gateway. Prior to version 0.26.0-rc.1, UpdateNamespaceMember in api/services/member.go checks whether the caller has authority over the requested new role but never checks whether the caller has authority over the target member's current role. A namespace administrator can demote the namespace owner to observer with one authenticated PATCH request. The demotion cannot be reversed through the API: HasAuthority(RoleOwner) returns false unconditionally for all roles, including administrator. Restoring the owner role requires direct database access. This issue has been patched in version 0.26.0-rc.1.",
  "id": "CVE-2026-58267",
  "modified": "2026-12-02T17:46:09.501988256Z",
  "published": "2026-12-02T15:14:15.808Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58267.json"
    },
    {
      "type": "FIX",
      "url": "https://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4"
    },
    {
      "type": "FIX",
      "url": "https://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315"
    },
    {
      "type": "WEB",
      "url": "https://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58267"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner"
}