CVE-2023-39522
JSON

5.3medium

Username enumeration attack in goauthentik

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.62% (higher than 51% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vmf9-6pcv-xr87BIT-AUTHENTIK-2023-39522

Description

goauthentik is an open-source Identity Provider. In affected versions using a recovery flow with an identification stage an attacker is able to determine if a username exists. Only setups configured with a recovery flow are impacted by this. Anyone with a user account on a system with the recovery flow described above is susceptible to having their username/email revealed as existing. An attacker can easily enumerate and check users' existence using the recovery flow, as a clear message is shown when a user doesn't exist. Depending on configuration this can either be done by username, email, or both. This issue has been addressed in versions 2023.5.6 and 2023.6.2. Users are advised to upgrade. There are no known workarounds for this issue.

Affected

Product or packageVersionsReported by
goauthentik authentik>= 2023.6.0, < 2023.6.2, < 2023.5.6, before 2023.5.6, from 2023.6.0 before 2023.6.2CVE List, NVD
@goauthentik/api (npm)from 2023.6.0 before 2023.6.2, before 2023.5.6GitHub Advisory Database
authentik (Bitnami)before 2023.5.6, from 2023.6.0 before 2023.6.2Bitnami Vulnerability Database

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-203

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

goauthentik is an open-source Identity Provider. In affected versions using a recovery flow with an identification stage an attacker is able to determine if a username exists. Only setups configured with a recovery flow are impacted by this. Anyone with a user account on a system with the recovery flow described above is susceptible to having their username/email revealed as existing. An attacker can easily enumerate and check users' existence using the recovery flow, as a clear message is shown when a user doesn't exist. Depending on configuration this can either be done by username, email, or both. This issue has been addressed in versions 2023.5.6 and 2023.6.2. Users are advised to upgrade. There are no known workarounds for this issue.

GitHub Advisory Database
Withdrawn Advisory

This advisory has been withdrawn due to an incorrect package mapping error. This link is maintained to preserve external references.

Original Description

Summary

Using a recovery flow with an identification stage an attacker is able to determine if a username exists.

Impact

Only setups configured with a recovery flow are impacted by this. Anyone with a user account on a system with the recovery flow described above is susceptible to having their username/email revealed as existing.

Details

An attacker can easily enumerate and check users' existence using the recovery flow, as a clear message is shown when a user doesn't exist. Depending on configuration this can either be done by username, email, or both.

The invalid and valid usernames should both show the same message and always send an email. Article for reference here: https://postmarkapp.com/guides/password-reset-email-best-practices#how-to-make-sure-your-password-reset-emails-are-secure

For more information

If you have any questions or comments about this advisory:

NVD (es)

goauthentik es un proveedor de identidad de código abierto. En versiones afectadas que utilizan un flujo de recuperación con una etapa de identificación, un atacante puede determinar si un nombre de usuario existe. Solo las configuraciones con un flujo de recuperación se ven afectadas por esto. Cualquier persona con una cuenta de usuario en un sistema con el flujo de recuperación descrito anteriormente es susceptible de que se revele la existencia de su nombre de usuario/correo electrónico. Un atacante puede enumerar y verificar fácilmente la existencia de usuarios utilizando el flujo de recuperación, ya que se muestra un mensaje claro cuando un usuario no existe. Dependiendo de la configuración, esto se puede hacer por nombre de usuario, correo electrónico o ambos. Este problema se ha solucionado en las versiones 2023.5.6 y 2023.6.2. Se aconseja a los usuarios que actualicen. No se conocen soluciones alternativas para este problema.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-39522 changed 2024-10-01CVE Terms of Use
GitHub Advisory DatabaseGHSA-vmf9-6pcv-xr87 changed 2026-09-10CC-BY-4.0
NVDCVE-2023-39522 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-AUTHENTIK-2023-39522 changed 2026-09-08Apache-2.0