CVE-2021-32802: Preview generation used third-party library not suited for user-generated content in Nextcloud server
CVE-2021-32802 affects 32 listed versions of Nextcloud in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Nextcloud
32 of 250 listed versions are affected. Fixed in 20.0.12. The newest release, 35.0.3, is not affected.
20.0.11 20.0.10 20.0.9 20.0.8 20.0.7 20.0.6 19.0.13.10 19.0.13.9 19.0.13.7 19.0.13 19.0.12 19.0.11 19.0.10 19.0.9 19.0.8 19.0.7 19.0.6 19.0.5 19.0.4 19.0.3 19.0.2 18.0.14 18.0.13 18.0.12 18.0.11 18.0.10 18.0.9 18.0.8 18.0.7 18.0.6 18.0.5 18.0.4
What it is
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`.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)
Published by GitHub on 7 September 2021. Last changed 17 June 2026.
Sources
Check one version you run: look CVE-2021-32802 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.