Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-94609 Overview
CVE-2026-94609 is a privilege escalation vulnerability in authentik, an open-source identity provider. The flaw allows an account with delegated group management permissions to grant superuser status or assign existing roles to a group without holding the permissions that gate those privileges. Group hierarchy checks do not consistently account for superuser status inherited from ancestor groups, and role assignment to a group lacks the required authorization check. The issue is tracked under [CWE-269] Improper Privilege Management and is fixed in authentik versions 2026.2.7, 2026.5.7, and 2026.8.2.
Critical Impact
A delegated group manager can escalate to full superuser rights, compromising the identity provider and every application it fronts.
Affected Products
- authentik versions prior to 2026.2.7
- authentik versions prior to 2026.5.7
- authentik versions prior to 2026.8.2
Discovery Timeline
- 2026-09-24 - CVE-2026-94609 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-94609
Vulnerability Analysis
The vulnerability affects authentik deployments that delegate group or user management to accounts that are not full administrators. Two separate authorization gaps combine to produce privilege escalation.
First, the validate_groups function in authentik/core/api/users.py only inspected the immediate groups being added to a user. It did not traverse the group ancestry to determine whether any ancestor group carried the is_superuser flag. A delegated manager could therefore add a target user to a non-superuser group whose ancestor was a superuser group, inheriting superuser rights without holding the authentik_core.enable_group_superuser permission.
Second, the role assignment endpoint on groups did not enforce an authorization check. A user with delegated group management rights could attach any existing role to a group they manage, granting arbitrary permissions bound to that role.
Root Cause
The root cause is incomplete permission enforcement in the authentik core API. The group hierarchy evaluation ignored transitive superuser inheritance, and the role-to-group assignment code path lacked a PermissionDenied guard. Both are instances of [CWE-269] Improper Privilege Management.
Attack Vector
An authenticated attacker with delegated permission to manage a group, group membership, or a user issues an API call that either adds a target account to a group whose ancestor is a superuser group, or binds a privileged role to a group they already manage. No user interaction is required, and the attack is remotely exploitable over the authentik HTTP API.
# Patch excerpt - authentik/core/api/users.py
# Source: https://github.com/goauthentik/authentik/commit/5f95b86f6f70c3bd8c625a4f9ae474e235f84030
def validate_groups(self, groups: list) -> list:
"""Require enable_group_superuser permission when adding a user to a group which grants
superuser status."""
request: Request = self.context.get("request", None)
if not request:
return groups
new_groups = Group.objects.filter(pk__in=[group.pk for group in groups])
if self.instance:
new_groups = new_groups.exclude(pk__in=self.instance.groups.all())
ancestry = new_groups.with_ancestors()
if ancestry.filter(is_superuser=True).exists() and not request.user.has_perm(
"authentik_core.enable_group_superuser"
):
raise ValidationError(
_("User does not have permission to add members to a superuser group.")
)
return groups
The patched code now resolves the full ancestry of any new group assignment with with_ancestors() and blocks the operation unless the caller holds authentik_core.enable_group_superuser.
Detection Methods for CVE-2026-94609
Indicators of Compromise
- Unexpected members appearing in groups whose ancestry includes an is_superuser=True group.
- Role bindings added to groups by accounts that are not full administrators.
- API requests to the authentik group and user endpoints originating from delegated-manager accounts followed by privileged actions elsewhere in the stack.
Detection Strategies
- Audit authentik event logs for model_updated and model_created events on authentik_core.group and authentik_rbac.role where the acting user is not a full administrator.
- Correlate group membership changes with subsequent login events that exercise superuser capabilities in the admin interface.
- Review historical API traffic for PATCH and PUT calls to /api/v3/core/users/ and /api/v3/core/groups/ by non-admin principals.
Monitoring Recommendations
- Alert on any change to groups where is_superuser=True or to groups that are ancestors of such groups.
- Monitor creation of new role bindings on groups and compare the actor's permission set to the role being granted.
- Forward authentik audit events to a centralized log store and retain for a timeframe sufficient to detect delayed abuse.
How to Mitigate CVE-2026-94609
Immediate Actions Required
- Upgrade authentik to 2026.2.7, 2026.5.7, or 2026.8.2 depending on the deployed release train.
- Enumerate all accounts that hold delegated group, group membership, or user management permissions and review their recent activity.
- Revoke any superuser group memberships or role bindings that cannot be traced to an authorized change.
Patch Information
The fix is delivered in authentik releases 2026.2.7, 2026.5.7, and 2026.8.2. The underlying code changes are tracked in commits 5f95b86, 67317f6, 67e470d, and 898e4e4. Full advisory details are published as GHSA-h6c5-mpvq-j4jc.
Workarounds
- Temporarily restrict group, group membership, and user management permissions to full administrators until the patched version can be deployed.
- Remove delegated role assignment capabilities from non-administrator accounts.
- Audit group hierarchies and flatten or remove inheritance paths that lead to superuser groups where possible.
# Upgrade authentik via Docker Compose
docker compose pull
docker compose up -d
# Verify the running version matches a patched release
docker compose exec server ak version
# Expected output: 2026.2.7, 2026.5.7, or 2026.8.2
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

