// For flags

CVE-2025-47790

Nextcloud Server doesn't request second factor after session timeout

Severity Score

6.4
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track*
*SSVC
Descriptions

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.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None
Attack Vector
Network
Attack Complexity
High
Authentication
Single
Confidentiality
Complete
Integrity
Complete
Availability
None
* Common Vulnerability Scoring System
SSVC
  • Decision:Track*
Exploitation
None
Automatable
No
Tech. Impact
Total
* Organization's Worst-case Scenario
Timeline
  • 2025-05-09 CVE Reserved
  • 2025-05-16 CVE Published
  • 2025-05-16 CVE Updated
  • 2025-05-22 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-287: Improper Authentication
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 26.0.0.0 < 26.0.13.15
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 26.0.0.0 < 26.0.13.15"
en
Affected
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 27.0.0.0 < 27.1.11.15
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 27.0.0.0 < 27.1.11.15"
en
Affected
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 28.0.0.0 < 28.0.14.6
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 28.0.0.0 < 28.0.14.6"
en
Affected
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 29.0.0 < 29.0.15
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 29.0.0 < 29.0.15"
en
Affected
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 30.0.0 < 30.0.9
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 30.0.0 < 30.0.9"
en
Affected
Nextcloud
Search vendor "Nextcloud"
Security-advisories
Search vendor "Nextcloud" for product "Security-advisories"
>= 31.0.0 < 31.0.3
Search vendor "Nextcloud" for product "Security-advisories" and version " >= 31.0.0 < 31.0.3"
en
Affected