CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Nextcloud

CVE-2021-32679
Nextcloud Server vulnerability

Nextcloud Server is a Nextcloud package that handles data storage. In versions prior to 19.0.13, 20.0.11, and 21.0.3, filenames where 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 behaviours where Nextcloud applications would display a benign file extension (e.g. JPEG), but the file will actually be downloaded with an executable file extension. The vulnerability is patched in versions 19.0.13, 20.0.11, and 21.0.3. Administrators of Nextcloud instances do not have a workaround available, but developers of Nextcloud apps may manually escape the file name before passing it into `DownloadResponse`.

Affected products

Nextcloud Server, Fedora. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Nextcloud Server runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Nextcloud products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.