CVE-2021-32802Nextcloud Server
Critical 9.8 No auth needed
Follow: this CVE · Nextcloud · Nextcloud Server We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.6% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Sep 7, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-829
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Nextcloud server is an open source, self hosted personal cloud. Nextcloud supports rendering image previews for user provided file content. For some image types, the Nextcloud server was invoking a third-party library that wasn't suited for untrusted user-supplied content. There are several security concerns with passing user-generated content to this library, such as Server-Side-Request-Forgery, file disclosure or potentially executing code on the system. The risk depends on your system configuration and the installed library version. It is recommended that the Nextcloud Server is upgraded to 20.0.12, 21.0.4 or 22.1.0. These versions do not use this library anymore. As a workaround users may disable previews by setting `enable_previews` to `false` in `config.php`.
What to do
- Apply the vendor's security update for Nextcloud Server.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| nextcloud | nextcloud_server | < 20.0.12 |
| nextcloud | nextcloud_server | ≥ 21.0.0 < 21.0.4 |
| nextcloud | nextcloud_server | ≥ 22.0.0 < 22.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- docs.nextcloud.com Vendor Advisory
- github.com Mitigation Third Party Advisory
- hackerone.com Permissions Required Third Party Advisory
- security.gentoo.org Third Party Advisory