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 package | Versions | Reported 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.0 | CVE List, NVD |
| discourse (Bitnami) | before 2.8.14 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
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
| https://github.com/discourse/discourse/security/advisories/GHSA-5www-jxvf-vrc3 | advisory, third-party-advisory | |
| https://github.com/discourse/discourse/commit/4bf306f0e3bf54a9ef9c5886bf1cfb85c20da570 | advisory, patch, third-party-advisory | |
| https://github.com/discourse/discourse/commit/83944213b2b2454af80d0407f60d67641b1f0b38 | advisory, patch, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-46177 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-46177 changed 2025-03-10 | CVE Terms of Use |
| NVD | CVE-2022-46177 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DISCOURSE-2022-46177 changed 2026-09-08 | Apache-2.0 |