PT-2021-19851 · Nextcloud+2 · Nextcloud Server+2

Foobar7

·

Published

2021-07-12

·

Updated

2022-10-26

·

CVE-2021-32679

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Nextcloud Server versions prior to 19.0.13 Nextcloud Server versions prior to 20.0.11 Nextcloud Server versions prior to 21.0.3
Description Nextcloud Server is a package that handles data storage. In affected versions, filenames were not escaped by default in controllers using DownloadResponse. When a user-supplied filename was passed unsanitized into a DownloadResponse, this could be used to trick users into downloading malicious files with a benign file extension. This would show in UI behaviors where Nextcloud applications would display a benign file extension, but the file will actually be downloaded with an executable file extension.
Recommendations For versions prior to 19.0.13, update to version 19.0.13 or later. For versions prior to 20.0.11, update to version 20.0.11 or later. For versions prior to 21.0.3, update to version 21.0.3 or later. As a temporary workaround, developers of Nextcloud apps may manually escape the file name before passing it into DownloadResponse.

Fix

Improper Encoding or Escaping of Output

Weakness Enumeration

Related Identifiers

ALT-PU-2021-3108
ALT-PU-2021-3224
CVE-2021-32679
GHSA-3HJP-26X8-MHF6
OPENSUSE-SU-2021:1068-1
OPENSUSE-SU-2021_1068-1

Affected Products

Alt Linux
Nextcloud Server
Suse