CVE-2025-64521: Goauthentik.io Authentik Allows A Deactivated Service Vulnerability
MODERATECVE-2025-64521 is a MODERATE (CVSS 4.8) authentik allows a deactivated service vulnerability (CWE-289: Authentication Bypass by Alternate Name) affecting Goauthentik.io libraries in the Go ecosystem. The issue involves authentik allows a deactivated service account to authenticate to oauth. Remediation is available by upgrading affected packages to version 0.0.0-20251119140106-9dbdfc3f1be0.
CVE-2025-64521 at a Glance
Security Impact
CVSS: 4.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2025-64521
To remediate this vulnerability, upgrade all affected Goauthentik.io dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade goauthentik.io to 0.0.0-20251119140106-9dbdfc3f1be0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for goauthentik.io
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-64521, inspect your project dependencies for Goauthentik.io:
inspect dependencies for goauthentik.io
Analyze the terminal output to locate any version of Goauthentik.io in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.0.0-20251119140106-9dbdfc3f1be0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-289: Authentication Bypass by Alternate Name, where the product performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor. In Goauthentik.io, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-64521 Affected Goauthentik.io Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
goauthentik.io
|
Go |
< 0.0.0-20251119140106-9dbdfc3f1be0
|
0.0.0-20251119140106-9dbdfc3f1be0
|
References
Frequently Asked Questions
What is CVE-2025-64521?
Which Goauthentik.io versions are affected?
What version fixes CVE-2025-64521?
Is goauthentik.io affected?
What is the CVSS score of CVE-2025-64521?
What CWE is associated with CVE-2025-64521?
How can I check Go dependencies for CVE-2025-64521?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-xr73-jq5p-ch8r",
"modified" : "2025-11-19T18:59:53Z",
"published" : "2025-11-19T18:13:03Z",
"aliases" : [ "CVE-2025-64521" ],
"summary" : "authentik allows a deactivated Service account to authenticate to OAuth",
"details" : "### Summary\n\nWhen 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.\n\n### Patches\n\nauthentik 2025.8.5 and 2025.10.2 fix this issue, for other versions the workaround below can be used.\n\n### Workarounds\n\nYou can add a policy to your application that explicitly checks if the service account is still valid, and deny access if not.\n\n```python\nreturn request.user.is_active\n```\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\n- Email us at [security@goauthentik.io](mailto:security@goauthentik.io).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "goauthentik.io"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.0.0-20251119140106-9dbdfc3f1be0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/goauthentik/authentik/security/advisories/GHSA-xr73-jq5p-ch8r"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64521"
}, {
"type" : "WEB",
"url" : "https://github.com/goauthentik/authentik/commit/9dbdfc3f1be0f1be36f8efce2442897b2a54a71c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/goauthentik/authentik"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-286", "CWE-289" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-11-19T18:13:03Z",
"nvd_published_at" : "2025-11-19T17:15:52Z"
}
}