Skip to content

CVE-2025-47790 Nextcloud Server doesn't request second factor after session timeout

MediumCVSS 6.4 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
PHP

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
nextcloud server >= 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 +2 more 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9, 31.0.3 Fixed
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 +2 more No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
Nextcloud security-advisories = >= 26.0.0, < 26.0.13.15 No fix listed
Nextcloud security-advisories = >= 27.0.0, < 27.1.11.15 No fix listed
Nextcloud security-advisories = >= 28.0.0, < 28.0.14.6 No fix listed
Nextcloud security-advisories = >= 29.0.0, < 29.0.15 No fix listed
Nextcloud security-advisories = >= 30.0.0, < 30.0.9 No fix listed
Nextcloud security-advisories = >= 31.0.0, < 31.0.3 No fix listed
nextcloud server >= 26.0.0, < 26.0.13.15 26.0.13.15
nextcloud server >= 27.0.0, < 27.1.11.15 27.1.11.15
nextcloud server >= 28.0.0, < 28.0.14.6 28.0.14.6
nextcloud server >= 29.0.0, < 29.0.15 29.0.15
nextcloud server >= 30.0.0, < 30.0.9 30.0.9
nextcloud server >= 31.0.0, < 31.0.3 31.0.3

References