Skip to content
OpenAdvisories
Critical · 9.3 CVE-2021-32802 EUVD-2021-19562

Preview generation used third-party library not suited for user-generated content in Nextcloud server

Published Sep 7, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

Description

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`.

Affected products

VendorProductAffectedFixed
nextcloud security-advisories < 20.0.12, >= 21.0.0, < 21.0.4, >= 22.0.0, < 22.1.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP3 nextcloud 20.0.12-bp153.2.6.1 openSUSE-SU-2021:1255-1
SUSE Package Hub 15 SP2 nextcloud 20.0.12-bp152.2.12.1 openSUSE-SU-2021:1275-1
SUSE Package Hub 15 SP1 nextcloud 20.0.12-bp151.3.18.1 openSUSE-SU-2021:1250-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 12 nextcloud 20.0.12-31.1 openSUSE-SU-2021:1252-1
ReleasePackageFixed inAdvisory
openSUSE Leap 15.3 nextcloud 20.0.12-bp153.2.6.1 openSUSE-SU-2021:1255-1
openSUSE Leap 15.2 nextcloud 20.0.12-lp152.3.12.1 openSUSE-SU-2021:1253-1

Advisories 5

References