CVE-2021-32679: Filenames not escaped by default in controllers using DownloadResponse

Published Jul 12, 2021
·
Updated

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 Software

5 affected components
Nextcloud Server<19.0.13
Nextcloud Server>=20.0.0<20.0.11
Nextcloud Server>=21.0.0<21.0.3
fedoraproject fedora=33
fedoraproject fedora=34

Event History

Jul 12, 2021
CVE Published
via MITRE·12:50 PM
Data Sourced
via MITRE·12:50 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2021-32679?

CVE-2021-32679 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2021-32679?

To fix CVE-2021-32679, upgrade to Nextcloud Server versions 19.0.13, 20.0.11, or 21.0.3 or later.

3

What is the impact of CVE-2021-32679 on Nextcloud Server?

The impact of CVE-2021-32679 is that it allows for potential file name injection attacks due to unsanitized user input.

4

Which versions of Nextcloud Server are affected by CVE-2021-32679?

CVE-2021-32679 affects Nextcloud Server versions prior to 19.0.13, 20.0.11, and 21.0.3.

5

Is there a workaround for CVE-2021-32679 if I cannot upgrade?

There are no specific workarounds provided for CVE-2021-32679, so upgrading is the recommended action.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203