CVE-2021-32802: Nextcloud Server
Critical severity, CVSS 9.8. EPSS: 2.6% probability of exploitation activity in the next 30 days.
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
The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.
- Nextcloud Server, before 20.0.12: fixed in 20.0.12
- Nextcloud Server, from 21.0.0, before 21.0.4: fixed in 21.0.4
- Nextcloud Server, from 22.0.0, before 22.1.0: fixed in 22.1.0
Affected products
- Nextcloud Nextcloud Server: before 20.0.12 (fixed in 20.0.12); from 21.0.0, before 21.0.4 (fixed in 21.0.4); from 22.0.0, before 22.1.0 (fixed in 22.1.0)
Published 2021-09-07. Last modified 2026-06-17.