# CVE-2026-40172: authentik: Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser

- Severity: High 8.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-05-22T19:00:52.278Z
- Modified: 2026-07-23T16:10:00.137Z
- Also known as: BIT-AUTHENTIK-2026-40172, GHSA-h6x7-hjjc-wjc9
- Weaknesses: CWE-269
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- goauthentik authentik: < 2025.12.5; >= 2026.2.0-rc1, < 2026.2.3
- authentik (Bitnami): before 2025.12.5; from 2026.2.0 before 2026.2.3

## Every score

- GitHub_M: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9> (web)
- <https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5> (web)
- <https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40172> (web)

## Sources

- CVE List: [CVE-2026-40172](https://www.cve.org/CVERecord?id=CVE-2026-40172), CVE Terms of Use, modified 2026-05-22
- NVD: [CVE-2026-40172](https://nvd.nist.gov/vuln/detail/CVE-2026-40172), Public domain, modified 2026-07-23
- Bitnami Vulnerability Database: [BIT-AUTHENTIK-2026-40172](https://osv.dev/vulnerability/BIT-AUTHENTIK-2026-40172), Apache-2.0, modified 2026-07-08

---

Page: https://cve.day/CVE-2026-40172 · Whole record: https://cve.day/CVE-2026-40172.json · Rebuilt by cve.day 2026-11-25T22:59:22.202Z
