{"vuln_id":"GHSA-9h3w-f3h4-qqrh","aliases":["CVE-2025-47790"],"description":"Second factor not requested after session timeout","published_at":"2025-05-16T08:05:58Z","modified_at":"2025-05-16T08:05:58Z","first_seen_at":"2026-11-22T14:05:36.512355Z","severity":"medium","severity_source":"ghsa","cvss_score":6.4,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","cwe":["CWE-287"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-9h3w-f3h4-qqrh"},"matched_alias":null,"items":[{"id":12503,"source":{"id":"gh-nextcloud-advisories","name":"Nextcloud security advisories (GitHub nextcloud/security-advisories)"},"title":"GHSA-9h3w-f3h4-qqrh / CVE-2025-47790: Second factor not requested after session timeout","summary":"Second factor not requested after session timeout\n\n### Impact\r\n\r\nA bug with the session handling 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.\r\n\r\n### Patches\r\n\r\n\r\nIt is recommended that the Nextcloud Server is upgraded to 29.0.15, 30.0.9 or 31.0.3\r\nIt is recommended that the Nextcloud Enterprise Server is upgraded to 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9 or 31.0.3\r\n\r\n### Workarounds\r\n\r\n* 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 listed by the following database query:\r\n  ```sql\r\n  SELECT id, uid FROM oc_authtoken WHERE type = 0 AND remember = 0;\r\n  ```\r\n\r\n### References\r\n\r\n* [HackerOne](https://hackerone.com/reports/2729367)\r\n* [PullRequest](https://github.com/nextcloud/server/pull/51905) \r\n\r\n### For more information\r\n\r\nIf you have any questions or comments about this advisory:\r\n\r\n* Create a post in [nextcloud/security-advisories](https://github.com/nextcloud/security-advisories/discussions)\r\n* Customers: Open a support ticket at [portal.nextcloud.com](https://portal.nextcloud.com)\n\nAffected packages: nextcloud enterprise:Server, nextcloud:Server\nPatched: Server 29.0.15, 30.0.9, 31.0.3, Server 26.0.13.15, 27.1.11.15, 28.0.14.6, 29.0.15, 30.0.9, 31.0.3","url":"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-9h3w-f3h4-qqrh","published_at":"2025-05-16T08:05:58Z","updated_at":"2025-05-16T08:05:58Z","fetched_at":"2026-11-22T14:05:36.350975Z","severity":"medium","cvss_score":6.4,"epss":0.00703,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"nextcloud","product":"Server","vuln_id":"CVE-2025-47790","vuln_ids":["CVE-2025-47790","GHSA-9H3W-F3H4-QQRH"],"tags":["repo-advisory","nextcloud","nextcloud enterprise","CWE-287","security","repo:nextcloud/security-advisories","stack"],"cluster_id":11678,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12503","html":"https://vulnwatch.ve1ve2.com/item/12503"}}]}