CVE-2022-46145 authentik vulnerable to unauthorized user creation and potential account takeover

High 8.1 Published Updated

Unauthenticated users can create accounts and potentially take over admin accounts via email verification flows in authentik.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-46145?

CVE-2022-46145 is a high-severity missing authorization vulnerability in goauthentik authentik, published on 2 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

authentik is an open-source identity provider. Versions prior to 2022.11.2 and 2022.10.2 are vulnerable to unauthorized user creation and potential account takeover. With the default flows, unauthenticated users can create new accounts in authentik. If a flow exists that allows for email-verified password recovery, this can be used to overwrite the email address of admin accounts and take over their accounts. authentik 2022.11.2 and 2022.10.2 fix this issue. As a workaround, a policy can be created and bound to the `default-user-settings-flow flow` with the contents `return request.user.is_authenticated`.

Weakness: CWE-306, CWE-287

Which versions are affected by CVE-2022-46145?

1 open source package ship an affected version, including authentik. It affects 1 product.

PackageAffectedFixed in
authentik BitnamiAll versions2022.10.2, 2022.11.2

Products include Goauthentik Authentik.

How do I fix CVE-2022-46145?

Upgrade authentik to a fixed version for your release line: 2022.10.2 or 2022.11.2.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2022-46145 being exploited?

There is no known exploitation of CVE-2022-46145 in the wild and no public exploit code.

Sources

Also known as BIT-authentik-2022-46145, GHSA-mjfw-54m5-fvjf.

Is CVE-2022-46145 in your software?

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

Check your SBOMs for free