CVE-2021-32802
JSON

9.3critical

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

Severity
9.3critical CVSS:3.1 by GitHub_M
Exploit likelihood
2.60% (higher than 86% of CVEs)
Published
Last changed
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

Product or packageVersionsReported by
nextcloud security-advisories< 20.0.12, >= 21.0.0, < 21.0.4, >= 22.0.0, < 22.1.0CVE List
nextcloud nextcloud_serverbefore 20.0.12, from 21.0.0 before 21.0.4, from 22.0.0 before 22.1.0NVD

All scores

GitHub_M9.3critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0high CVSS:2.0AV:N/AC:L/Au:N/C:C/I:C/A:C

Classification

What each source says

CVE List

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

NVD (es)

El servidor Nextcloud es una nube personal de código abierto y autoalojada. Nextcloud admite la representación de vistas previas de imágenes para el contenido de archivos proporcionados por el usuario. Para algunos tipos de imágenes, el servidor Nextcloud estaba invocando una biblioteca de terceros que no era adecuada para el contenido no confiable proporcionado por el usuario. Se presentan varios problemas de seguridad al pasar contenido generado por el usuario a esta biblioteca, como un ataque de tipo Server-Side-Request-Forgery, una divulgación de archivos o una posible ejecución de código en el sistema. El riesgo depende de la configuración del sistema y de la versión de la biblioteca instalada. Es recomendado actualizar el servidor Nextcloud a versión 20.0.12, 21.0.4 o 22.1.0. Estas versiones ya no usan esta biblioteca. Como solución alternativa, los usuarios pueden deshabilitar las vistas previas al ajustar "enable_previews" a "false" en "config.php"

References

Sources

SourceRecordLicence
CVE ListCVE-2021-32802 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-32802 changed 2026-06-17Public domain