Vulnerability Name:

CVE-2021-32802 (CCN-208907)

Assigned:2021-09-06
Published:2021-09-06
Updated:2022-09-27
Summary:Nextcloud server is an open source, self hosted personal cloud. Nextcloud supports rendering image previews for user provided file content. For some image types, the Nextcloud server was invoking a third-party library that wasn't suited for untrusted user-supplied content. There are several security concerns with passing user-generated content to this library, such as Server-Side-Request-Forgery, file disclosure or potentially executing code on the system. The risk depends on your system configuration and the installed library version. It is recommended that the Nextcloud Server is upgraded to 20.0.12, 21.0.4 or 22.1.0. These versions do not use this library anymore. As a workaround users may disable previews by setting `enable_previews` to `false` in `config.php`.
CVSS v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
9.4 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L)
8.2 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): Low
CVSS v2 Severity:10.0 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
9.7 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Partial
Vulnerability Type:CWE-829
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-32802

Source: MISC
Type: Vendor Advisory
https://docs.nextcloud.com/server/21/admin_manual/configuration_files/previews_configuration.html#disabling-previews

Source: XF
Type: UNKNOWN
nextcloud-cve202132802-code-exec(208907)

Source: CCN
Type: Nextcloud GIT Repository
Preview generation used third-party library not suited for user-generated content

Source: CONFIRM
Type: Mitigation, Third Party Advisory
https://github.com/nextcloud/security-advisories/security/advisories/GHSA-m682-v4g9-wrq7

Source: MISC
Type: Permissions Required, Third Party Advisory
https://hackerone.com/reports/1261413

Source: GENTOO
Type: Third Party Advisory
GLSA-202208-17

Vulnerable Configuration:Configuration 1:
  • cpe:/a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:* (Version >= 21.0.0 and < 21.0.4)
  • OR cpe:/a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:* (Version >= 22.0.0 and < 22.1.0)
  • OR cpe:/a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:* (Version < 20.0.12)

  • Configuration CCN 1:
  • cpe:/a:nextcloud:nextcloud_server:20.0.0:-:*:*:*:*:*:*
  • OR cpe:/a:nextcloud:nextcloud_server:21.0.0:-:*:*:*:*:*:*
  • OR cpe:/a:nextcloud:nextcloud_server:22.0.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:93638
    P
    (Important)
    2022-03-10
    oval:org.opensuse.security:def:100351
    P
    (Important)
    2021-11-16
    oval:org.opensuse.security:def:11131
    P
    Security update for nextcloud (Important)
    2021-09-16
    oval:org.opensuse.security:def:103115
    P
    Security update for nextcloud (Important)
    2021-09-16
    oval:org.opensuse.security:def:96425
    P
    Security update for nextcloud (Important)
    2021-09-16
    oval:org.opensuse.security:def:109772
    P
    Security update for nextcloud (Important)
    2021-09-16
    oval:org.opensuse.security:def:111055
    P
    Security update for nextcloud (Important)
    2021-09-14
    oval:org.opensuse.security:def:35510
    P
    Security update for nextcloud (Important)
    2021-09-14
    oval:org.opensuse.security:def:111502
    P
    Security update for nextcloud (Important)
    2021-09-14
    oval:org.opensuse.security:def:11129
    P
    Security update for nextcloud (Important)
    2021-09-14
    oval:org.opensuse.security:def:11128
    P
    Security update for nextcloud (Important)
    2021-09-13
    oval:org.opensuse.security:def:107017
    P
    Security update for nextcloud (Important)
    2021-09-13
    BACK
    nextcloud nextcloud server *
    nextcloud nextcloud server *
    nextcloud nextcloud server *
    nextcloud nextcloud server 20.0.0
    nextcloud nextcloud server 21.0.0 -
    nextcloud nextcloud server 22.0.0 -