CVE-2025-64521 authentik deactivated service accounts can authenticate to OAuth

Medium 4.8 Published Updated

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.

PackageAffectedFixed in
goauthentik.io GoAll versionsNone
goauthentik.io GoAll versions0.0.0-20251119140106-9dbdfc3f1be0
goauthentik.io GoAll versions0.0.0-20251119140106-9dbdfc3f1be0
authentik BitnamiAll versions0.0.0-20251119140106-9dbdfc3f1be0, 2025.8.5, 2025.10.2
authentik-client PyPIFrom 2025.8.02025.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.

Sources

Also known as BIT-authentik-2025-64521, GHSA-xr73-jq5p-ch8r, GO-2025-4137, PYSEC-2025-237.

Is CVE-2025-64521 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free