Nextcloud Server doesn't request second factor after session timeout
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-47790
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 17:11 UTC · Revision 1
Source evidence
Nextcloud Server doesn't request second factor after session timeout
core-osv · Original sourcePublished 16 May 2025, 14:02 UTC
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.
osv:CVE-2025-47790
Complete source record
{
"id": "db433c63a33e54dec7c3085bf6f8a5fe88d3298dfe350180d9f766993d1da3ab",
"url": "https://osv.dev/vulnerability/CVE-2025-47790",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Nextcloud Server doesn't request second factor after session timeout",
"summary": "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.",
"evidence": "osv:CVE-2025-47790",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-47790",
"aliases": [
"CVE-2025-47790",
"GHSA-9h3w-f3h4-qqrh"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/nextcloud/server",
"type": "GIT",
"events": [
{
"introduced": "36ae775aa7c9af22bf33645a2d8807206ec6c85f"
},
{
"fixed": "0209305ca5c3f1b4970ede8666cf976e30d98ace"
},
{
"introduced": "656488893e2175e19fbe273d76a5e16a598000c7"
},
{
"fixed": "8c428e22e4823b3df1870264fb7169ffd154118e"
},
{
"introduced": "051e46a7a272300cf7c90b3e330fd1501fd6a996"
},
{
"fixed": "048d03a43bcc90fb592c2327e5c2cd7981a98d31"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "29.0.0"
},
{
"fixed": "29.0.15"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "29.0.0"
},
{
"fixed": "29.0.15"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "30.0.0"
},
{
"fixed": "30.0.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "30.0.0"
},
{
"fixed": "30.0.9"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:-:*:*:*",
"range": [
{
"introduced": "31.0.0"
},
{
"fixed": "31.0.3"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:enterprise:*:*:*",
"range": [
{
"introduced": "31.0.0"
},
{
"fixed": "31.0.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v29.0.15rc2",
"v30.0.9rc2",
"v31.0.3rc2",
"v31.0.3rc1",
"v29.0.15rc1",
"v30.0.9rc1",
"v30.0.8rc1",
"v30.0.8",
"v31.0.2",
"v29.0.14",
"v29.0.14rc1",
"v31.0.2rc1",
"v29.0.13",
"v30.0.7",
"v31.0.1",
"v29.0.13rc2",
"v30.0.7rc2",
"v31.0.1rc2",
"v29.0.13rc1",
"v30.0.7rc1",
"v31.0.1rc1",
"v31.0.0",
"v29.0.12",
"v30.0.6",
"v29.0.12rc2",
"v30.0.6rc2",
"v29.0.12rc1",
"v30.0.6rc1",
"v29.0.11",
"v30.0.5",
"v29.0.11rc1",
"v30.0.5rc1",
"v29.0.10",
"v30.0.4",
"v30.0.4rc1",
"v30.0.3",
"v30.0.3rc2",
"v29.0.10rc1",
"v30.0.3rc1",
"v30.0.2",
"v29.0.9",
"v29.0.9rc2",
"v30.0.2rc2",
"v29.0.9rc1",
"v30.0.2rc1",
"v30.0.1",
"v29.0.8",
"v30.0.1rc2",
"v29.0.8rc1",
"v30.0.1rc1",
"v29.0.7",
"v30.0.0",
"v29.0.7rc1",
"v29.0.6",
"v29.0.6rc1",
"v29.0.5",
"v29.0.5rc1",
"v29.0.4",
"v29.0.4rc1",
"v29.0.3",
"v29.0.3rc4",
"v29.0.3rc3",
"v29.0.3rc2",
"v29.0.3rc1",
"v29.0.2",
"v29.0.2rc2",
"v29.0.2rc1",
"v29.0.1",
"v29.0.1rc1",
"v29.0.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-47790.json"
}
}
],
"modified": "2026-10-28T02:30:37.802921307Z",
"provider": "osv",
"references": [
"https://hackerone.com/reports/2729367",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47790.json",
"https://github.com/nextcloud/security-advisories/security/advisories/GHSA-9h3w-f3h4-qqrh",
"https://nvd.nist.gov/vuln/detail/CVE-2025-47790",
"https://github.com/nextcloud/server/pull/51905"
],
"provider_metadata": {
"cwe_ids": [
"CWE-287"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "26.0.0"
},
{
"fixed": "26.0.13.15"
},
{
"introduced": "27.0.0"
},
{
"fixed": "27.1.11.15"
},
{
"introduced": "28.0.0"
},
{
"fixed": "28.0.14.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/47xxx/CVE-2025-47790.json"
}
},
"related_cves": [
{
"value": "CVE-2025-47790",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 505187,
"published_at": "2025-05-16T14:02:57.806+00:00"
}