Nextcloud · Nextcloud Server · CVE-2021-32802
**Name of the Vulnerable Software and Affected Versions**
Nextcloud Server versions prior to 20.0.12
Nextcloud Server versions prior to 21.0.4
Nextcloud Server versions prior to 22.1.0
**Description**
Nextcloud server is an open source, self-hosted personal cloud that 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. This poses several security concerns, such as Server-Side-Request-Forgery, file disclosure, or potentially executing code on the system. The risk depends on the system configuration and the installed library version.
**Recommendations**
For versions prior to 20.0.12, upgrade to 20.0.12 or later.
For versions prior to 21.0.4, upgrade to 21.0.4 or later.
For versions prior to 22.1.0, upgrade to 22.1.0 or later.
As a temporary workaround, users may disable previews by setting `enable previews` to `false` in `config.php`.