{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-58267",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-06-29T21:54:30.331Z",
        "datePublished": "2026-12-02T15:14:15.808Z",
        "dateUpdated": "2026-12-02T15:14:15.808Z"
    },
    "containers": {
        "cna": {
            "title": "ShellHub has BFLA in UpdateNamespaceMember: namespace administrator can permanently demote namespace owner",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-862",
                            "lang": "en",
                            "description": "CWE-862: Missing Authorization",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "NETWORK",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "HIGH",
                        "privilegesRequired": "LOW",
                        "scope": "UNCHANGED",
                        "userInteraction": "NONE",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/shellhub-io/shellhub/security/advisories/GHSA-ww26-9cqf-x69q"
                },
                {
                    "name": "https://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/shellhub-io/shellhub/commit/3ec88f0ccf058d8327102f89126472af79da83a4"
                },
                {
                    "name": "https://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/shellhub-io/shellhub/commit/f374c7302064c49427e8127ffd837f9c615ae315"
                },
                {
                    "name": "https://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/shellhub-io/shellhub/releases/tag/v0.26.0-rc.1"
                }
            ],
            "affected": [
                {
                    "vendor": "shellhub-io",
                    "product": "shellhub",
                    "versions": [
                        {
                            "version": "< 0.26.0-rc.1",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-12-02T15:14:15.808Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "source": {
                "advisory": "GHSA-ww26-9cqf-x69q",
                "discovery": "UNKNOWN"
            }
        }
    }
}