Skip to main content
← All vulnerabilities
CVE-2021-32802

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 20.0.12, 21.0.4, 22.1.0
None on Exploit-DB, Metasploit or GitHub

Summary

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

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • nextcloud security-advisories

    fixed in 20.0.12; From 21.0.0 · fixed in 21.0.4; From 22.0.0 · fixed in 22.1.0

References 4

GitHub · nextcloud/security-advisories

hackerone.com

docs.nextcloud.com

security.gentoo.org