CVE-2021-32679
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`.
EPSS 0.81% · 74.6th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| nextcloud | nextcloud_server | 20.0.0, 21.0.0, 0 |
| nextcloud | security-advisories | < 19.0.13, >= 21.0.0, < 21.0.3, * |
| fedoraproject | fedora | 33, 34 |
Exploit Intelligence
- CIRCL seen: CVE-2021-32679 (circl-sighting)
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3hjp-26x8-mhf6 (circl)
- https://github.com/nextcloud/server/pull/27354 (circl)
- https://hackerone.com/reports/1215263 (circl)
- FEDORA-2021-9b421b78af (circl)
- FEDORA-2021-6f327296fe (circl)
- GLSA-202208-17 (circl)
- Download of file with arbitrary extension via injection into attachment header (hackerone)
- Download of file with arbitrary extension via injection into attachment header (hackerone)
- Download of file with arbitrary extension via injection into attachment header (hackerone)
Timeline
- CVE Published
- Jul 12, 2021 PoC Published
- Jul 13, 2021 EPSS Score
- Aug 11, 2021 PoC Published
- Sep 11, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Jan 8, 2022 EPSS Score
- Mar 9, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- May 7, 2022 EPSS Score
- Sep 5, 2022 EPSS Score
- Nov 4, 2022 EPSS Score
References
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-3hjp-26x8-mhf6 url
- https://github.com/nextcloud/server/pull/27354 url
- https://hackerone.com/reports/1215263 url
- FEDORA-2021-9b421b78af vendor-advisory
- FEDORA-2021-6f327296fe vendor-advisory
- GLSA-202208-17 vendor-advisory