CVE-2025-64521
JSON

4.8medium

authentik deactivated service accounts can authenticate to OAuth

Severity
4.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.23% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xr73-jq5p-ch8rBIT-AUTHENTIK-2025-64521GO-2025-4137PYSEC-2025-237

Description

authentik is an open-source Identity Provider. Prior to versions 2025.8.5 and 2025.10.2, when authenticating with client_id and client_secret to an OAuth provider, authentik creates a service account for the provider. In previous authentik versions, authentication for this account was possible even when the account was deactivated. Other permissions are correctly applied and federation with other providers still take assigned policies correctly into account. authentik versions 2025.8.5 and 2025.10.2 fix this issue. A workaround involves adding a policy to the application that explicitly checks if the service account is still valid, and deny access if not.

Affected

Product or packageVersionsReported by
goauthentik authentik< 2025.10.2, < 2025.8.5, from 2025.8.0 before 2025.8.5, from 2025.10.0 before 2025.10.2CVE List, NVD
goauthentik.io (Go)before 0.0.0-20251119140106-9dbdfc3f1be0, all versionsGitHub Advisory Database, Go Vulnerability Database
authentik-client (PyPI)from 2025.8.0 before 2025.8.5, from 2025.10.0 before 2025.10.2PyPA Advisory Database
authentik (Bitnami)before 0.0.0-20251119140106-9dbdfc3f1be0, from 2000.0.0 before 2025.8.5, from 2025.9.0 before 2025.10.2Bitnami Vulnerability Database

All scores

GitHub_M4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
GitHub4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
PyPA Advisory Database4.8medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-286CWE-289

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

authentik is an open-source Identity Provider. Prior to versions 2025.8.5 and 2025.10.2, when authenticating with client_id and client_secret to an OAuth provider, authentik creates a service account for the provider. In previous authentik versions, authentication for this account was possible even when the account was deactivated. Other permissions are correctly applied and federation with other providers still take assigned policies correctly into account. authentik versions 2025.8.5 and 2025.10.2 fix this issue. A workaround involves adding a policy to the application that explicitly checks if the service account is still valid, and deny access if not.

GitHub Advisory Database
Summary

When authenticating with client_id and client_secret to an OAuth provider, authentik creates a service account for the provider. In previous authentik versions, authentication for this account was possible even when the account was deactivated. Other permissions are correctly applied and federation with other providers still take assigned policies correctly into account.

Patches

authentik 2025.8.5 and 2025.10.2 fix this issue, for other versions the workaround below can be used.

Workarounds

You can add a policy to your application that explicitly checks if the service account is still valid, and deny access if not.

return request.user.is_active
For more information

If you have any questions or comments about this advisory:

Go Vulnerability Database

authentik allows a deactivated Service account to authenticate to OAuth in goauthentik.io.

NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.

(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)

The additional affected modules and versions are: goauthentik.io before v0.0.0-20251119140106-9dbdfc3f1be0.

NVD (es)

authentik es un proveedor de identidad de código abierto. Versiones anteriores a las 2025.8.5 y 2025.10.2, al autenticarse con client_id y client_secret en un proveedor OAuth, authentik crea una cuenta de servicio para el proveedor. En versiones anteriores de authentik, la autenticación para esta cuenta era posible incluso cuando la cuenta estaba desactivada. Otros permisos se aplican correctamente y la federación con otros proveedores sigue teniendo en cuenta correctamente las políticas asignadas. Las versiones de authentik 2025.8.5 y 2025.10.2 solucionan este problema. Una solución alternativa implica añadir una política a la aplicación que compruebe explícitamente si la cuenta de servicio sigue siendo válida y deniegue el acceso en caso contrario.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-64521 changed 2025-11-19CVE Terms of Use
GitHub Advisory DatabaseGHSA-xr73-jq5p-ch8r changed 2026-07-13CC-BY-4.0
Go Vulnerability DatabaseGO-2025-4137 changed 2026-07-13CC-BY-4.0
NVDCVE-2025-64521 changed 2026-10-18Public domain
PyPA Advisory DatabasePYSEC-2025-237 changed 2026-07-13CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-AUTHENTIK-2025-64521 changed 2026-09-08Apache-2.0