CVE-2025-64521 authentik deactivated service accounts can authenticate to OAuth
Attackers can authenticate using deactivated service accounts in authentik OAuth providers, bypassing intended access restrictions.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-64521?
CVE-2025-64521 is a medium-severity authentication bypass vulnerability in goauthentik authentik, published on 19 Nov 2025. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-289
Which versions are affected by CVE-2025-64521?
5 open source packages ship an affected version, including goauthentik.io, authentik and authentik-client. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
goauthentik.io Go | All versions | None |
goauthentik.io Go | All versions | 0.0.0-20251119140106-9dbdfc3f1be0 |
goauthentik.io Go | All versions | 0.0.0-20251119140106-9dbdfc3f1be0 |
authentik Bitnami | All versions | 0.0.0-20251119140106-9dbdfc3f1be0, 2025.8.5, 2025.10.2 |
authentik-client PyPI | From 2025.8.0 | 2025.8.5, 2025.10.2 |
Products include Goauthentik Authentik.
How do I fix CVE-2025-64521?
Upgrade goauthentik.io to 0.0.0-20251119140106-9dbdfc3f1be0 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2025-64521 being exploited?
There is no known exploitation of CVE-2025-64521 in the wild and no public exploit code.
Other vulnerabilities in goauthentik authentik
- CVE-2026-49448 authentik: SourceStage bypass via empty POST
- CVE-2023-46249 authentik potential installation takeover when default admin user is deleted
- CVE-2022-23555 authentik vulnerable to Improper Authentication via invitation URL token reuse
- CVE-2026-42849 authentik: Reflected XSS in SFE AutosubmitStage allows IDP account takeover
- CVE-2026-25227 authentik affected by Remote Code Execution via Context Key Injection in PropertyMapping Test Endpoint
Sources
Also known as BIT-authentik-2025-64521, GHSA-xr73-jq5p-ch8r, GO-2025-4137, PYSEC-2025-237.