Skip to content

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

Critical
LukasReschke published GHSA-m682-v4g9-wrq7 Sep 6, 2021

Package

Nextcloud Server

Affected versions

< 20.0.12, < 21.0.4, < 22.1.0

Patched versions

20.0.12, 21.0.4, 22.1.0

Description

Impact

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.

Patches

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.

Workarounds

Disable previews by setting enable_previews to false in config.php. (documentation)

References

For more information

If you have any questions or comments about this advisory:

Severity

Critical

CVE ID

CVE-2021-32802

Weaknesses

Credits