6.4medium
Nextcloud Server doesn't request second factor after session timeout
- Severity
- 6.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.40% (higher than 36% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Nextcloud Server is a self hosted personal cloud system. Nextcloud Server prior to 29.0.15, 30.0.9, and 31.0.3 and Nextcloud Enterprise Server prior to 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9, and 31.0.3 have a bug with session handling. The bug caused skipping the second factor confirmation after a successful login with the username and password when the server was configured with `remember_login_cookie_lifetime` set to `0`, once the session expired on the page to select the second factor and the page is reloaded. Nextcloud Server 29.0.15, 30.0.9, and 31.0.3 and Nextcloud Enterprise Server is upgraded to 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9 and 31.0.3 contain a patch. As a workaround, set the `remember_login_cookie_lifetime` in config.php to a value other than `0`, e.g. `900`. Beware that this is only a workaround for new sessions created after the configuration change. System administration can delete affected sessions.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nextcloud security-advisories | >= 26.0.0, < 26.0.13.15, >= 27.0.0, < 27.1.11.15, >= 28.0.0, < 28.0.14.6, >= 29.0.0, < 29.0.15, >= 30.0.0, < 30.0.9, >= 31.0.0, < 31.0.3 | CVE List |
| nextcloud nextcloud_server | from 26.0.0 before 26.0.13.15, from 27.0.0 before 27.1.11.15, from 28.0.0 before 28.0.14.6, from 29.0.0 before 29.0.15, from 30.0.0 before 30.0.9, from 31.0.0 before 31.0.3 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Nextcloud Server is a self hosted personal cloud system. Nextcloud Server prior to 29.0.15, 30.0.9, and 31.0.3 and Nextcloud Enterprise Server prior to 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9, and 31.0.3 have a bug with session handling. The bug caused skipping the second factor confirmation after a successful login with the username and password when the server was configured with `remember_login_cookie_lifetime` set to `0`, once the session expired on the page to select the second factor and the page is reloaded. Nextcloud Server 29.0.15, 30.0.9, and 31.0.3 and Nextcloud Enterprise Server is upgraded to 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9 and 31.0.3 contain a patch. As a workaround, set the `remember_login_cookie_lifetime` in config.php to a value other than `0`, e.g. `900`. Beware that this is only a workaround for new sessions created after the configuration change. System administration can delete affected sessions.
NVD (es)
Nextcloud Server es un sistema de nube personal autoalojado. Las versiones anteriores a 29.0.15, 30.0.9 y 31.0.3, y las anteriores a 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9 y 31.0.3, presentan un error en la gestión de sesiones. Este error omitía la confirmación del segundo factor tras iniciar sesión correctamente con el nombre de usuario y la contraseña cuando el servidor estaba configurado con `remember_login_cookie_lifetime` a `0`, una vez que la sesión expiraba en la página para seleccionar el segundo factor y se recargaba la página. Nextcloud Server 29.0.15, 30.0.9 y 31.0.3, y Nextcloud Enterprise Server se han actualizado a 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9 y 31.0.3, y contienen un parche. Como solución alternativa, configure `remember_login_cookie_lifetime` en config.php con un valor distinto de `0`, por ejemplo, `900`. Tenga en cuenta que esto solo es una solución alternativa para las nuevas sesiones creadas después del cambio de configuración. El administrador del sistema puede eliminar las sesiones afectadas.
References
| https://github.com/nextcloud/security-advisories/security/advisories/GHSA-9h3w-f3h4-qqrh | vendor-advisory | |
| https://github.com/nextcloud/server/pull/51905 | issue-tracking | |
| https://hackerone.com/reports/2729367 | permissions-required | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-47790 changed 2025-05-16 | CVE Terms of Use |
| NVD | CVE-2025-47790 changed 2026-06-17 | Public domain |