Vulnerability Name:

CVE-2021-41178 (CCN-211971)

Assigned:2021-10-25
Published:2021-10-25
Updated:2022-10-25
Summary:Nextcloud is an open-source, self-hosted productivity platform. Prior to versions 20.0.13, 21.0.5, and 22.2.0, a file traversal vulnerability makes an attacker able to download arbitrary SVG images from the host system, including user provided files. This could also be leveraged into a XSS/phishing attack, an attacker could upload a malicious SVG file that mimics the Nextcloud login form and send a specially crafted link to victims. The XSS risk here is mitigated due to the fact that Nextcloud employs a strict Content-Security-Policy disallowing execution of arbitrary JavaScript. It is recommended that the Nextcloud Server be upgraded to 20.0.13, 21.0.5 or 22.2.0. There are no known workarounds aside from upgrading.
CVSS v3 Severity:6.5 Medium (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
5.7 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): None
Availibility (A): None
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.7 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/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): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:4.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:S/C:P/I:N/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Partial
Integrity (I): None
Availibility (A): None
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-434
CWE-23
Vulnerability Consequences:Obtain Information
References:Source: MITRE
Type: CNA
CVE-2021-41178

Source: XF
Type: UNKNOWN
nextcloud-cve202141178-dir-traversal(211971)

Source: CCN
Type: Nextcloud GIT Repository
File Traversal affecting SVG files on Nextcloud Server

Source: CONFIRM
Type: Third Party Advisory
https://github.com/nextcloud/security-advisories/security/advisories/GHSA-jp9c-vpr3-m5rf

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

Source: MISC
Type: Permissions Required
https://hackerone.com/reports/1302155

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

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2021-41178

Vulnerable Configuration:Configuration 1:
  • cpe:/a:nextcloud:server:*:*:*:*:*:*:*:* (Version >= 20.0.3 and < 20.0.13)
  • OR cpe:/a:nextcloud:server:*:*:*:*:*:*:*:* (Version >= 21.0.1 and < 21.0.5)
  • OR cpe:/a:nextcloud:server:*:*:*:*:*:*:*:* (Version >= 22.1.1 and < 22.2.0)

  • 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.1.0:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:96437
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:111176
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:35512
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:100357
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:111525
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:11160
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:103127
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:107023
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:93644
    P
    Security update for nextcloud (Important)
    2021-12-20
    oval:org.opensuse.security:def:109784
    P
    Security update for nextcloud (Important)
    2021-12-20
    BACK
    nextcloud server *
    nextcloud server *
    nextcloud server *
    nextcloud nextcloud server 20.0.0
    nextcloud nextcloud server 21.0.0 -
    nextcloud nextcloud server 22.1.0 -