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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 3.5
- **CVSS:** 3.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.37% (percentile 72, 2026-11-26)
- **CWE:** CWE-116
- **Published:** 2021-07-12T12:50:10.000Z
- **Modified:** 2026-06-17T03:53:24.510Z

## Who should check

- Anyone running nextcloud security-advisories \< 19.0.13; \>= 20.0.0, \< 20.0.11; \>= 21.0.0, \< 21.0.3

## 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 and fixed versions

- nextcloud security-advisories: \< 19.0.13; \>= 20.0.0, \< 20.0.11; \>= 21.0.0, \< 21.0.3 (cvelist)

## Mitigation

- Upgrade security-advisories to 21.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-32679. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-32679.md
Affected: nextcloud security-advisories < 19.0.13; >= 20.0.0, < 20.0.11; >= 21.0.0, < 21.0.3
Fixed in: nextcloud security-advisories 19.0.13, nextcloud security-advisories 20.0.11, nextcloud security-advisories 21.0.3

Steps:
1. Search this machine and project for nextcloud security-advisories: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-32679 being exploited?

There is no confirmed exploitation: CVE-2021-32679 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.37% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-32679?

Low: CVSS 3.5 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2021-32679?

nextcloud security-advisories \< 19.0.13; \>= 20.0.0, \< 20.0.11; \>= 21.0.0, \< 21.0.3.

### Is there a fix for CVE-2021-32679?

Yes. Fixed in nextcloud security-advisories 19.0.13, nextcloud security-advisories 20.0.11, nextcloud security-advisories 21.0.3. Upgrade security-advisories to 21.0.3 or later.

### How do I check if I'm affected by CVE-2021-32679?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3hjp-26x8-mhf6>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J63NBVPR2AQCAWRNDOZSGRY5II4WS2CZ/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BVZS26RDME2DYTKET5AECRIZDFUGR2AZ/>
- vendor: <https://security.gentoo.org/glsa/202208-17>
- patch: <https://github.com/nextcloud/server/pull/27354>
- other: <https://hackerone.com/reports/1215263>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-32679>

HTML: <https://flawdb.com/CVE-2021-32679> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-32679>
