Skip to main content

authentik CVE-2026-40172

HIGH
Improper Privilege Management (CWE-269)
2026-05-22 GitHub_M
8.1
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate as delegated user-admin
  2. Delivery
    Enumerate superuser group PK via /api/v3/core/groups/
  3. Exploit
    Send PATCH /api/v3/core/users/{pk}/ adding superuser group
  4. Install
    UserSerializer bypasses enable_group_superuser check
  5. C2
    Target account inherits is_superuser=True
  6. Execute
    Log in with elevated session
  7. Impact
    Pivot to federated applications as administrator

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must possess a valid authentik session with the change_user permission on the target user (or equivalent group-modification permission), matching CVSS PR:L - this is exactly the delegated user-administration role that authentik documents as safe to grant to help-desk staff, so the realistic precondition is 'any tenant that has delegated user management to non-superusers'. A superuser group with is_superuser=True must already exist in the deployment (the default authentik installation ships such a group), and the /api/v3/core/users/{pk}/ endpoint must be network-reachable from the attacker. Limiting factors: deployments that have not delegated change_user or group-edit permissions outside the existing administrator pool gain no new attack surface from this bug, and pre-release-only deployments on the 2026.2 line before rc1 are not affected.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H aligns with the description: the attack is network-reachable, requires only low (delegated) privileges, needs no user interaction, and produces high integrity and availability impact while confidentiality impact is rated none (the act of granting a group does not by itself read data, although the resulting superuser session obviously can). The 8.1 base score is credible for an identity provider because compromise of the IdP cascades into every federated application. No EPSS, KEV, or POC signal is present in the supplied data, so this is currently a high-severity but not-yet-actively-exploited issue; however, the simplicity of the exploit (one authenticated PATCH call) means EPSS is likely to rise quickly once the advisory propagates. Defenders who have delegated any user-management permission to non-administrators should treat this as a real priority rather than a theoretical CVSS-inflation case.

Exploit ScenarioDerived

A help-desk operator (or any attacker who has compromised a help-desk account) who has been granted the change_user permission sends a single authenticated PATCH /api/v3/core/users/{pk}/ request with a JSON body that adds the built-in superuser group to their own user record or to a controlled service account. On the next session refresh the targeted account inherits is_superuser=True, granting full control of authentik and, through federation, every downstream application that trusts it. No public exploit code is identified at time of analysis, but the exploit reduces to one HTTP request and could be reproduced from the advisory text alone.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 22, 2026

Privilege escalation in authentik identity provider versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2 allows an authenticated user holding the change_user permission to assign arbitrary groups - including superuser groups - to any target user via the PATCH /api/v3/core/users/{pk}/ endpoint. The UserSerializer skips the enable_group_superuser check enforced in the dedicated group-management paths, letting delegated user-management roles promote themselves or others to administrator-equivalent privilege. No public exploit identified at time of analysis and the vulnerability is not listed in CISA KEV, but the trivial attack mechanics (a single PATCH request) make weaponization straightforward for any tenant that has delegated user administration.

RemediationAI

Vendor-released patch: upgrade to authentik 2025.12.5 on the stable branch or 2026.2.3 on the 2026.2 release line, per the vendor advisory GHSA-h6x7-hjjc-wjc9 and the release notes at https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5 and https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3. Until the upgrade is rolled out, audit and revoke any custom roles or RBAC bindings that grant authentik_core.change_user or group-modification permissions to non-administrator principals, since the vulnerability is only reachable by accounts already holding one of those delegations; the trade-off is that legitimate help-desk or onboarding workflows that depend on those permissions will be temporarily blocked. Additionally, review the membership of any group whose is_superuser flag is true and constrain network access to the /api/v3/core/users/ endpoint via reverse-proxy ACLs where feasible, accepting that this will also restrict the legitimate admin UI which uses the same API.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

authentik is a widely deployed open-source identity and access management platform (CPE cpe:2.3:a:goauthentik:authentik) that exposes a Django REST Framework API for user and group administration. The root cause is CWE-269 Improper Privilege Management: the UserSerializer used by the user PATCH endpoint accepts a 'groups' field and writes it directly to the relation without re-validating whether the calling principal is permitted to confer the privileges granted by those groups. authentik already enforces a stricter check - enable_group_superuser - on the group-management code path to prevent delegated group editors from creating or modifying superuser groups, but that gate was never mirrored on the user-update path, so the same restricted role can simply attach an existing superuser group to a target user as an indirect route to the same outcome.

Know when Authentik 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 (GitHub_M) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0-rc1 through 2026.2.2, the PATCH /api/v3/core/users/{pk}/ API allows a caller with change_user on a target user to assign arbitrary groups through UserSerializer, including groups with is_superuser=True, without requiring enable_group_superuser, leading to privilege escalation. This bypasses the stricter permission model enforced in group-management paths and enables delegated user-management permissions to escalate target users to administrator-equivalent privilege. Users with permissions to update groups or permissions to update users are able to add themselves or other users they have permissions on to users which have superuser permissions. This issue has been fixed in versions 22025.12.5 and 2026.2.3.

Executive ViewAI

Why It Matters

Authentik identity provider versions prior to 2025.12.5 contain a privilege escalation vulnerability (CVE-2026-40172, CVSS 8.1) allowing any user with user management permissions to promote themselves or others to administrator-equivalent status in a single API request. While no public exploit has been identified, the simplicity of the attack vector makes rapid mitigation essential for organizations that have delegated user administration. This directly compromises the integrity of organizational access control.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict 'change_user' permission to essential administrators only; (2) enable detailed API audit logging for user management PATCH requests; (3) audit current superuser group memberships for unauthorized additions; (4) require approval workflow for group assignment changes; (5) implement real-time alerting for superuser group modifications.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
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 HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Affected Products (CPE)CVE.org

cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:*
CVE-2023-48228 CRITICAL POC
9.8 Nov 21

authentik is an open-source identity provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2022-23555 HIGH POC
8.8 Dec 28

authentik is an open-source Identity Provider focused on flexibility and versatility. Rated high severity (CVSS 8.8), th

CVE-2022-46172 MEDIUM POC
6.4 Dec 28

authentik is an open-source Identity provider focused on flexibility and versatility. Rated medium severity (CVSS 6.4),

CVE-2026-49448 CRITICAL
9.8 Jun 02

Authentication bypass in authentik identity provider (versions prior to 2025.12.6, 2026.2.4, and 2026.5.1) allows remote

CVE-2024-38371 CRITICAL
9.8 Jun 28

authentik is an open-source Identity Provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2023-46249 CRITICAL
9.8 Oct 31

authentik is an open-source Identity Provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2022-46145 CRITICAL
9.8 Dec 02

authentik is an open-source identity provider. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploi

CVE-2025-52553 CRITICAL
9.6 Jun 27

authentik is an open-source identity provider. After authorizing access to a RAC endpoint, authentik creates a token whi

CVE-2026-57580 CRITICAL
9.4 Aug 18

Account takeover in authentik (goauthentik) identity provider before 2026.2.6 and 2026.5.5 allows an attacker holding an

CVE-2026-42849 CRITICAL
9.3 Jun 02

Cross-site scripting in authentik identity provider versions prior to 2025.12.5 and 2026.2.3 allows remote attackers to

CVE-2026-25227 CRITICAL
9.1 Feb 12

Code injection in authentik identity provider from 2021.3.1 through multiple versions. Users with delegated permissions

CVE-2024-47070 CRITICAL
9.0 Sep 27

authentik is an open-source identity provider. Rated critical severity (CVSS 9.0), this vulnerability is remotely exploi

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