{"id":"CVE-2026-40172","aliases":["CVE-2026-40172","BIT-AUTHENTIK-2026-40172","GHSA-h6x7-hjjc-wjc9"],"related":[],"kind":"vulnerability","state":"published","title":"authentik: Privilege Escalation via User PATCH: Superuser Group Assignment Bypasses enable_group_superuser","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"authentik es un proveedor de identidad de código abierto. En versiones anteriores a la 2025.12.5 y de la 2026.2.0-rc1 a la 2026.2.2, la API PATCH /api/v3/core/users/{pk}/ permite a un llamador con 'change_user' sobre un usuario objetivo asignar grupos arbitrarios a través de UserSerializer, incluyendo grupos con 'is_superuser=True', sin requerir 'enable_group_superuser', lo que lleva a una escalada de privilegios. Esto elude el modelo de permisos más estricto aplicado en las rutas de gestión de grupos y permite que los permisos delegados de gestión de usuarios escalen a los usuarios objetivo a privilegios equivalentes a los de administrador. Los usuarios con permisos para actualizar grupos o permisos para actualizar usuarios pueden añadirse a sí mismos o a otros usuarios sobre los que tienen permisos a usuarios que tienen permisos de superusuario. Este problema ha sido solucionado en las versiones 22025.12.5 y 2026.2.3.","source":"nvd"},{"lang":"en","text":"authentik is an open-source identity provider. In versions prior to 2025.12.5 and 2026.2.0 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.","format":"markdown","source":"bitnami"}],"published":"2026-05-22T19:00:52.278Z","modified":"2026-07-23T16:10:00.137Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"version":"< 2025.12.5","status":"affected"},{"version":">= 2026.2.0-rc1, < 2026.2.3","status":"affected"}],"vendor":"goauthentik","product":"authentik","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2025.12.5"},{"type":"semver","introduced":"2026.2.0","status":"affected","fixed":"2026.2.3"}],"ecosystem":"Bitnami","package":"authentik","purl":"pkg:bitnami/authentik","source":"bitnami"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-h6x7-hjjc-wjc9","tags":["web","x-refsource-confirm"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2025.12.5","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/goauthentik/authentik/releases/tag/version%2F2026.2.3","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40172","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-22T19:14:39.079Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40172","url":"https://www.cve.org/CVERecord?id=CVE-2026-40172","licence":"CVE Terms of Use","modified":"2026-05-22T19:15:18.353Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40172","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40172","licence":"Public domain","modified":"2026-07-23T16:10:00.137Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AUTHENTIK-2026-40172","url":"https://osv.dev/vulnerability/BIT-AUTHENTIK-2026-40172","licence":"Apache-2.0","modified":"2026-07-08T08:26:37.346Z"}],"updatedAt":"2026-11-25T22:59:22.202Z","epss":{"score":0.00546,"percentile":0.47185,"date":"2026-12-01T12:00:22.000Z"}}