Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAccess authenticated Nextcloud registration flow
-
ExploitSupply victim's WebAuthn credential ID
-
ExecutionBypass missing user_handle ownership check
-
ImpactRemove victim's 2FA device, forcing re-registration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Configuration Dependency management, component inventory
|
| Exploitation Conditions | Exploitation requires the attacker to know or supply the victim's WebAuthn public_key_credential_id - an 80-128 character random string of letters, numbers, and symbols - which is high-entropy and not normally exposed, making brute-force guessing practically infeasible (this is the dominant limiting factor). The flaw is reached through the WebAuthn device registration/finish flow (finishRegister / WebauthnPublicKeyCredentialSourceRepository), where the user_handle ownership check was absent. Further limits: the attacker almost certainly needs an authenticated registration session, the impact is confined to removing the victim's 2FA device (forcing re-registration) and does NOT enable authenticating as the victim, and only versions prior to 1.4.2 (1.x branch) and 2.4.1 (2.x branch) are affected. |
| Impact | This is a low real-world priority despite its 'MEDIUM' CVSS 4.3 rating. The signals are consistent and all point low: EPSS is 0.02% (4th percentile), there is no CISA KEV listing (no active exploitation), and no public exploit code was identified - only a HackerOne disclosure report. Critically, the NVD vector rates AC:L, but this conflicts with the description: successful exploitation requires 'correctly guessing a 80-128 character long random string of letters, numbers and symbols' (the WebAuthn public_key_credential_id). Brute-forcing a high-entropy value of that length is computationally infeasible, so the practical attack complexity is effectively HIGH, not LOW - this discrepancy should be noted when prioritizing. The impact ceiling is also low (I:L, C:N, A:N): the description explicitly states 'The attacker can not authenticate as the victim'; the worst outcome is forcibly removing a victim's 2FA device, which merely prompts the victim to re-register on next login. This is a legitimate broken-object-level-authorization bug (CWE-639) worth patching, but it is a high-CVSS-but-low-real-risk issue, not an urgent threat. |
| Exploit ScenarioDerived | An attacker who can reach the Nextcloud WebAuthn device-registration flow submits a public_key_credential_id belonging to a victim; because the ownership (user_handle) check is missing, the backend acts on the victim's credential entity and removes the victim's 2FA device, forcing them to re-register on next login. In practice this requires knowing or guessing the victim's 80-128 character high-entropy credential ID, so brute-force exploitation is infeasible. No public exploit code was identified at time of analysis, though the issue was responsibly disclosed via HackerOne report 3360354. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 15, 2026
Nextcloud Twofactor WebAuthn before 1.4.2 and 2.4.1 allows an authenticated attacker who knows a victim's high-entropy WebAuthn public key credential ID to remove that victim's registered two-factor authentication device through a missing ownership check, forcing the victim to re-register a device on next login. The attacker cannot authenticate as the victim, and the dominant limiting factor is the 80-128 character random credential ID, which is not normally exposed and makes guessing practically infeasible; the independent assessment considers this a low real-world priority despite the vendor's CVSS 4.3 rating. No public exploit is identified at time of analysis, EPSS is 0.02% (4th percentile), and no CISA KEV entry is present.
Earlier versions of this analysis (1)
RemediationAI
Upgrade Nextcloud Twofactor WebAuthn to 1.4.2 on the 1.x branch or 2.4.1 on the 2.x branch; these are the vendor-released fixed versions, and the corresponding upstream fix is in commit 5d2302166d31ee2e01b2e21556bd5372156da13d and PR 881. Apply the vendor advisory GHSA-fr8x-mvjg-wf9q and patch as soon as possible. If immediate upgrade is not possible, restrict access to WebAuthn device management and registration/finish endpoints to trusted users or networks and monitor for unexpected removal of WebAuthn devices, but note these are only compensating controls and do not address the missing user_handle ownership check; disabling WebAuthn 2FA entirely would reduce exposure but removes a stronger authentication factor and should be a last resort.
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
This is a CWE-639 authorization bypass through user-controlled key in Nextcloud's Twofactor WebAuthn provider. The vulnerable code path is in PublicKeyCredentialEntityMapper::findPublicKeyCredential(), which looked up a WebAuthn public key credential by public_key_credential_id alone; the fix adds an andWhere on user_handle and threads the userId through WebauthnPublicKeyCredentialSourceRepository and WebAuthnManager::finishRegister(). Affected CPEs are cpe:2.3:a:nextcloud:two-factor_webauthn:*:*:*:*:*:*:*:*, covering the 1.x and 2.x branches, with EUVD listing versions <1.4.2 and >=2.0.0-beta.1 <2.4.1. The flaw is reached through the WebAuthn device registration/finish flow; because the credential ID is a high-entropy 80-128 character random string and is not normally exposed, the assessed vector uses AC:H and PR:L rather than treating this as a remotely exploitable unauthenticated issue, and impact is limited to removing the victim's 2FA device rather than account takeover.
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:L/PR:N/UI:R/S:U/C:N/I:L/A:N
Guessing the 80-128-char credential ID is infeasible (AC:H) and triggering registration needs an authenticated session (PR:L); impact is only removal of a victim's 2FA device, so I:L with no C/A.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
Nextcloud Twofactor WebAuthn is the WebAuthn Two-Factor Provider for Nextcloud. Prior to 1.4.2 and 2.4.1, a missing ownership check allowed an attack to take-away a 2FA webauthn device when correctly guessing a 80-128 character long random string of letters, numbers and symbols. The victim would then be prompted to register a new device on the next login. The attacker can not authenticate as the victim. This vulnerability is fixed in 1.4.2 and 2.4.1.
Executive ViewAI
CVE-2025-66558 is a low-severity vulnerability in Nextcloud Twofactor WebAuthn (CVSS 3.1). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. A patch is available and can be applied during standard maintenance windows.
Apply vendor patch during routine maintenance. Standard security controls provide adequate interim protection.
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.
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 OS command injection in the Collabora Online Built-in CODE Server Nextcloud app (richdocumentscode) befo
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-2025-201460
NVD
CVE.org
EPSS
GitHub
Exploit-DB