{"id":"CVE-2025-64521","aliases":["CVE-2025-64521","GHSA-xr73-jq5p-ch8r","BIT-AUTHENTIK-2025-64521","GO-2025-4137","PYSEC-2025-237"],"related":[],"kind":"vulnerability","state":"published","title":"authentik deactivated service accounts can authenticate to OAuth","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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).","format":"markdown","source":"ghsa"},{"lang":"en","text":"authentik allows a deactivated Service account to authenticate to OAuth in goauthentik.io.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: goauthentik.io before v0.0.0-20251119140106-9dbdfc3f1be0.","format":"markdown","source":"go"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-11-19T17:03:19.703Z","modified":"2026-10-18T20:10:00.110Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-286","CWE-289"],"affected":[{"ranges":[{"version":"< 2025.10.2","status":"affected"},{"version":"< 2025.8.5","status":"affected"}],"vendor":"goauthentik","product":"authentik","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20251119140106-9dbdfc3f1be0"}],"ecosystem":"Go","package":"goauthentik.io","purl":"pkg:golang/goauthentik.io","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"goauthentik.io","purl":"pkg:golang/goauthentik.io","source":"go"},{"ranges":[{"status":"affected","introduced":"2025.8.0","fixed":"2025.8.5"},{"status":"affected","introduced":"2025.10.0","fixed":"2025.10.2"}],"vendor":"goauthentik","product":"authentik","cpe":"cpe:2.3:a:goauthentik:authentik:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"2025.8.0","status":"affected","fixed":"2025.8.5"},{"type":"ecosystem","introduced":"2025.10.0","status":"affected","fixed":"2025.10.2"}],"ecosystem":"PyPI","package":"authentik-client","purl":"pkg:pypi/authentik-client","source":"pysec"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.0-20251119140106-9dbdfc3f1be0"},{"type":"semver","introduced":"2000.0.0","status":"affected","fixed":"2025.8.5"},{"type":"semver","introduced":"2025.9.0","status":"affected","fixed":"2025.10.2"}],"ecosystem":"Bitnami","package":"authentik","purl":"pkg:bitnami/authentik","source":"bitnami"}],"references":[{"url":"https://github.com/goauthentik/authentik/security/advisories/GHSA-xr73-jq5p-ch8r","tags":["advisory","fix","patch","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","pysec","bitnami"]},{"url":"https://github.com/goauthentik/authentik/commit/9dbdfc3f1be0f1be36f8efce2442897b2a54a71c","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","pysec","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64521","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/goauthentik/authentik","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-11-19T21:09:31.811Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-64521","url":"https://www.cve.org/CVERecord?id=CVE-2025-64521","licence":"CVE Terms of Use","modified":"2025-11-19T21:09:40.560Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xr73-jq5p-ch8r","url":"https://github.com/advisories/GHSA-xr73-jq5p-ch8r","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:54.452Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-4137","url":"https://pkg.go.dev/vuln/GO-2025-4137","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:54.452Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-64521","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-64521","licence":"Public domain","modified":"2026-10-18T20:10:00.110Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-237","url":"https://osv.dev/vulnerability/PYSEC-2025-237","licence":"CC-BY-4.0","modified":"2026-07-13T07:26:54.452Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-AUTHENTIK-2025-64521","url":"https://osv.dev/vulnerability/BIT-AUTHENTIK-2025-64521","licence":"Apache-2.0","modified":"2026-09-08T08:45:39.753Z"}],"updatedAt":"2026-11-25T22:59:07.832Z","epss":{"score":0.00234,"percentile":0.15306,"date":"2026-12-01T12:00:22.000Z"}}