# CVE-2021-32802: Preview generation used third-party library not suited for user-generated content in Nextcloud server

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 05-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-09-07 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-32802 · JSON: https://cvemate.com/vulnerability/CVE-2021-32802/json

## Description

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

## Signals

- CVSS: 10 high (v2.0, NVD) AV:N/AC:L/Au:N/C:C/I:C/A:C
- EPSS: 2.604%, percentile 85.908%, as of 2026-12-05
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- nextcloud nextcloud\_server: \< 20.0.12 \| ≥ 21.0.0, \< 21.0.4 \| ≥ 22.0.0, \< 22.1.0
- nextcloud security-advisories: \< 20.0.12 \| ≥ 21.0.0, \< 21.0.4 \| ≥ 22.0.0, \< 22.1.0

## References

- <https://github.com/nextcloud/security-advisories/security/advisories/GHSA-m682-v4g9-wrq7>
- <https://hackerone.com/reports/1261413>
- <https://docs.nextcloud.com/server/21/admin_manual/configuration_files/previews_configuration.html#disabling-previews>
- <https://security.gentoo.org/glsa/202208-17>

---

Data as of 2026-12-05T18:29:37.315Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
