CVE-2021-32679

Filenames not escaped by default in controllers using DownloadResponse

HIGH
8.8
CVSS Score
Published: July 12, 2021 at 12:50 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 2 vendorsFedoraNextcloud/server

Using security-advisories by nextcloud?

Get instant alerts when new vulnerabilities affect security-advisories - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 1%

Description

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 19.0.1320.0.0 ≤ v < 20.0.1121.0.0 ≤ v < 21.0.3
Affected range stops below 19.0.13, so it looks safe — our inference, not a vendor statement
Affected range stops below 20.0.11, so it looks safe — our inference, not a vendor statement
Affected range stops below 21.0.3, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-116

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card