CVE-2021-32802
published critical CVSS 3.1 · 9.3Preview generation used third-party library not suited for user-generated content in Nextcloud server
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nextcloud | — | security-advisories< 20.0.12 · >= 21.0.0, < 21.0.4 · >= 22.0.0, < 22.1.0 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.2 | nextcloudnoarch | Advisory build | 20.0.12-lp152.3.12.1 | OPENSUSE-SU-2021:1253-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | nextcloud-apachenoarch | Advisory build | 20.0.12-lp152.3.12.1 | OPENSUSE-SU-2021:1253-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | nextcloudnoarch | Advisory build | 20.0.12-bp153.2.6.1 | OPENSUSE-SU-2021:1255-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | nextcloud-apachenoarch | Advisory build | 20.0.12-bp153.2.6.1 | OPENSUSE-SU-2021:1255-1 |
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`.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nextcloud | security-advisories | < 20.0.12 (affected)>= 21.0.0, < 21.0.4 (affected)>= 22.0.0, < 22.1.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-829 CWE-829: Inclusion of Functionality from Untrusted Control Sphere
References
4- https://docs.nextcloud.com/server/21/admin_manual/configuration_files/previews_configuration.html#disabling-previews
- https://github.com/nextcloud/security-advisories/security/advisories/GHSA-m682-v4g9-wrq7
- https://hackerone.com/reports/1261413
- GLSA-202208-17 https://security.gentoo.org/glsa/202208-17
Provider assertions
2GitHub_M · cna
Preview generation used third-party library not suited for user-generated content in Nextcloud server
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3ef2998207136bab9ad1238d21151bf283166b90fca8df96589bb799f006454c
- Ingested
- 23 Sep 2026, 07:54:30 UTC
- Source record
- Official CVE record