CVE-2022-46177
JSON

5.7medium

Discourse password reset link can lead to in account takeover if user changes to a new email

Severity
5.7medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.74% (higher than 55% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
BIT-DISCOURSE-2022-46177GHSA-5www-jxvf-vrc3

Description

Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 3.0.0.beta16 on the `beta` and `tests-passed` branches, when a user requests for a password reset link email, then changes their primary email, the old reset email is still valid. When the old reset email is used to reset the password, the Discourse account's primary email would be re-linked to the old email. If the old email address is compromised or has transferred ownership, this leads to an account takeover. This is however mitigated by the SiteSetting `email_token_valid_hours` which is currently 48 hours. Users should upgrade to versions 2.8.14 or 3.0.0.beta15 to receive a patch. As a workaround, lower `email_token_valid_hours ` as needed.

Affected

Product or packageVersionsReported by
discourse discourse< 2.8.14, >= 2.9.0.beta0, < 3.0.0.beta16, before 2.8.14, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0CVE List, NVD
discourse (Bitnami)before 2.8.14Bitnami Vulnerability Database

All scores

GitHub_M5.7medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-613

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Discourse is an option source discussion platform. Prior to version 2.8.14 on the `stable` branch and version 3.0.0.beta16 on the `beta` and `tests-passed` branches, when a user requests for a password reset link email, then changes their primary email, the old reset email is still valid. When the old reset email is used to reset the password, the Discourse account's primary email would be re-linked to the old email. If the old email address is compromised or has transferred ownership, this leads to an account takeover. This is however mitigated by the SiteSetting `email_token_valid_hours` which is currently 48 hours. Users should upgrade to versions 2.8.14 or 3.0.0.beta15 to receive a patch. As a workaround, lower `email_token_valid_hours ` as needed.

NVD (es)

Discourse es una plataforma de discusión de fuentes de opciones. Antes de la versión 2.8.14 en la rama `stable` y la versión 3.0.0.beta16 en las ramas `beta` y `tests-passed`, cuando un usuario solicita un correo electrónico con un enlace para restablecer su contraseña y luego cambia su correo electrónico principal, el antiguo correo electrónico de restablecimiento sigue siendo válido. Cuando se utiliza el correo electrónico de restablecimiento anterior para restablecer la contraseña, el correo electrónico principal de la cuenta de Discourse se volverá a vincular al correo electrónico anterior. Si la antigua dirección de correo electrónico está comprometida o ha transferido la propiedad, esto conduce a una apropiación de la cuenta. Sin embargo, esto se mitiga con SiteSetting `email_token_valid_hours`, que actualmente es de 48 horas. Los usuarios deben actualizar a las versiones 2.8.14 o 3.0.0.beta15 para recibir un parche. Como workaround, reduzca `email_token_valid_hours ` según sea necesario.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-46177 changed 2025-03-10CVE Terms of Use
NVDCVE-2022-46177 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DISCOURSE-2022-46177 changed 2026-09-08Apache-2.0