Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid Nextcloud account credentials
-
DeliveryAuthenticate with password to generate TEMPORARY_TOKEN session cookie
-
ExploitIntercept or steal the pre-2FA session cookie
-
ExecutionSubmit cookie value as HTTP Authorization Bearer token to DAV endpoint
-
PersistBypass 2FA enforcement gate
-
ImpactRead or write files, calendars, or contacts via DAV
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Mandatory two-factor authentication must be enabled and enforced on the Nextcloud instance - the vulnerability exists specifically in the gap between password authentication and 2FA completion, so instances without 2FA are not affected by this bypass (they have no TEMPORARY_TOKEN concept in this context). The attacker must have valid password credentials for a Nextcloud account (completing the first authentication factor), producing a TEMPORARY_TOKEN session cookie. The attacker must additionally obtain that specific intermediate cookie value - exploitation is limited to scenarios where session hijacking is feasible (e.g., XSS, unencrypted HTTP, shared device access, or malicious browser extension). CVSS AC:H reflects this non-trivial cookie-acquisition step. Exploitation targets DAV protocol endpoints specifically; other Nextcloud API surfaces are not confirmed affected by this specific token-type confusion. The attack is unauthenticated in the 2FA sense but does require a valid password (PR:L in CVSS terms). |
| Impact | The CVSS 5.9 score reflects a meaningful but constrained risk profile: AV:N confirms remote exploitability, but AC:H (high attack complexity) acknowledges that the attacker must first obtain the intermediate pre-2FA session cookie - a non-trivial prerequisite that typically requires session hijacking, XSS exploitation, network interception on unencrypted channels, or local device access. PR:L indicates the attacker must have at least completed password authentication against a valid account. The impact asymmetry (C:L, I:H) is notable - an attacker can write to DAV-accessible storage, contacts, and calendars without corresponding confidentiality parity, though read access to synced data is still possible. No EPSS score was provided in the available data, so exploitation probability cannot be quantified. The issue is not listed in CISA KEV, and no public POC has been confirmed. For organizations that deploy mandatory 2FA specifically to protect against compromised passwords, this vulnerability critically undermines that control - making the real-world risk higher than the CVSS score suggests in high-security environments. The AC:H modifier should not be dismissed: it meaningfully limits opportunistic or automated exploitation. |
| Exploit ScenarioDerived | An attacker with a valid Nextcloud account initiates login, completes the password step, and captures the resulting TEMPORARY_TOKEN session cookie - for example, via a cross-site scripting vulnerability, network interception, or direct access to the browser session. The attacker then sends this cookie value as a Bearer token in an HTTP Authorization header (e.g., Authorization: Bearer <TEMPORARY_TOKEN>) to a DAV endpoint such as /remote.php/dav/files/, gaining authenticated file read/write access without ever completing the TOTP second factor. No confirmed public POC exists at time of analysis, but the attack technique is straightforward once the intermediate token is obtained. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 01, 2026
Two-factor authentication bypass in Nextcloud Server 32.0.0-32.0.8 and 33.0.0-33.0.2 enables a partially-authenticated attacker to access DAV endpoints (WebDAV, CalDAV, CardDAV) with full read/write privileges by reusing a pre-2FA intermediate session cookie as a Bearer token. The TEMPORARY_TOKEN issued after successful password authentication but before TOTP completion was not restricted to cookie-based requests, allowing it to be replayed in an HTTP Authorization: Bearer header against DAV APIs - entirely circumventing mandatory two-factor authentication enforcement. No public exploit has been identified at time of analysis, though a HackerOne report (3573399) documents the issue; vendor-confirmed patches are available.
RemediationAI
Vendor-released patches are available: Nextcloud Server should be upgraded to 32.0.9 or 33.0.3. Nextcloud Enterprise Server users should upgrade to 33.0.3, 32.0.9, 31.0.14.5, 30.0.17.9, or 29.0.16.16 depending on the branch in use. The full advisory is published at https://github.com/nextcloud/security-advisories/security/advisories/GHSA-mp6x-g55j-w9jw and the source fix is in PR #59758 at https://github.com/nextcloud/server/pull/59758. If immediate patching is not possible, a specific compensating control is to disable or restrict network access to DAV endpoints (WebDAV at /remote.php/dav, CalDAV, CardDAV) at the reverse proxy or firewall layer - this prevents Bearer token replay against those endpoints but will break calendar sync, contact sync, and file access for all clients including legitimate ones, representing a significant service disruption trade-off. There is no configuration toggle to disable pre-2FA session token Bearer acceptance without patching; the fix is exclusively a code-level change.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Nextcloud implements a two-phase authentication flow: after password verification, the server issues a TEMPORARY_TOKEN (a session-scoped PublicKeyToken) that persists until the user completes the second factor (e.g., TOTP). The vulnerability resides in lib/private/User/Session.php within the tryTokenLogin() method, which is responsible for authenticating DAV and API requests via Bearer token. Prior to the fix, this method lacked a type-check discriminating between TEMPORARY_TOKEN (session cookies, pre-2FA) and PERMANENT_TOKEN or ONETIME_TOKEN (app tokens, which legitimately authenticate DAV). As confirmed by PR #59758, the code introduced a $tokenFromCookie boolean flag and added an explicit guard rejecting PublicKeyTokens of type TEMPORARY_TOKEN when presented via the Bearer Authorization header rather than a session cookie. CWE-287 (Improper Authentication) applies precisely: the system accepted a credential that was not yet fully authenticated as if it were, skipping the second-factor gate.
Know when Nextcloud gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
Nextcloud is an open source content collaboration platform. In Nextcloud Server from versions 32.0.0 to before 32.0.9, and 33.0.0 to before 33.0.3, a pre-2FA session cookie (created after successful password authentication but before TOTP completion) could be reused as a Bearer token to authenticate against DAV endpoints, granting read/write access and bypassing mandatory two-factor authentication. It is recommended that the Nextcloud Server is upgraded to 33.0.3 or 32.0.9. It is recommended that the Nextcloud Enterprise Server is upgraded to 33.0.3, 32.0.9, 31.0.14.5, 30.0.17.9 or 29.0.16.16
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Unauthenticated OS command injection in the Collabora Online Built-in CODE Server Nextcloud app (richdocumentscode) befo
Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
A too lax check in Nextcloud Talk 6.0.4, 7.0.2 and 8.0.7 allowed a code injection when a not correctly sanitized talk co
Nextcloud Server provides data storage for Nextcloud, an open source cloud platform. Rated critical severity (CVSS 9.8),
Unauthenticated vector-store tampering in Nextcloud MCP Server before 0.117.2 lets any network attacker who can reach th
Nextcloud Server before 9.0.54 and 10.0.1 & ownCloud Server before 9.1.2, 9.0.6, and 8.2.9 suffer from SMB User Authenti
NextCloud Cookbook is a recipe library app. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable,
Nextcloud server is an open source home cloud implementation. Rated high severity (CVSS 8.8), this vulnerability is remo
Nextcloud Desktop Client prior to 3.1.3 is vulnerable to resource injection by way of missing validation of URLs, allowi
lib/Controller/ExtractionController.php in the Extract add-on before 1.2.0 for Nextcloud allows Remote Code Execution vi
Authorization bypass in Windmill 1.56.0-1.614.0 enables Operator role users to escalate privileges to remote code execut
Insufficient protection of the server-side encryption keys in Nextcloud Server 19.0.1 allowed an attacker to replace the
EUVD-2026-33718
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB