Vulnerability Name:

CVE-2021-22877 (CCN-197702)

Assigned:2021-01-25
Published:2021-01-25
Updated:2022-09-27
Summary:A missing user check in Nextcloud prior to 20.0.6 inadvertently populates a user's own credentials for other users external storage configuration when not already configured yet.
CVSS v3 Severity:6.5 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N)
5.7 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): None
8.7 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N)
7.6 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): None
CVSS v2 Severity:5.5 Medium (CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:P/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): None
8.5 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): None
Vulnerability Type:CWE-862
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2021-22877

Source: XF
Type: UNKNOWN
nextcloud-cve202122877-info-disc(197702)

Source: MISC
Type: Exploit, Issue Tracking, Patch, Third Party Advisory
https://github.com/nextcloud/server/issues/24600

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/nextcloud/server/pull/25224

Source: MISC
Type: Issue Tracking, Third Party Advisory
https://hackerone.com/reports/1061591

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2021-eac0e52f88

Source: CCN
Type: NC-SA-2021-004
External storage credentials stored for wrong user

Source: MISC
Type: Broken Link, Vendor Advisory
https://nextcloud.com/security/advisory/?id=NC-SA-2021-004

Vulnerable Configuration:Configuration 1:
  • cpe:/a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:* (Version < 20.0.6)

  • Configuration 2:
  • cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/a:nextcloud:nextcloud_server:20.0.5:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    nextcloud nextcloud server *
    fedoraproject fedora 34
    nextcloud nextcloud server 20.0.5