CVE-2021-32802: Preview generation used third-party library not suited for user-generated content in Nextcloud server
Vulnerability summary
CVE-2021-32802 is a high (CVSS 10.0) vulnerability in nextcloud nextcloud_server. EPSS estimates a 2.60% chance of exploitation in the next 30 days, higher than 85.9% of scored vulnerabilities.
Severe, CVSS 9.3 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 05-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 5 · Related 5Timeline
- 07-09-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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`.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.60%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.60% on 05-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Nextcloud2 products
- nextcloud_server< 20.0.12 | ≥ 21.0.0, < 21.0.4 | ≥ 22.0.0, < 22.1.0
- security-advisories< 20.0.12 | ≥ 21.0.0, < 21.0.4 | ≥ 22.0.0, < 22.1.0
1 vendor · 2 products
References
4 links- github.com/nextcloud/security-advisories/security/advisories/GHSA-m682-v4g9-wrq7X Refsource CONFIRMMitigationThird Party Advisory
- docs.nextcloud.com/server/21/admin_manual/configuration_files/previews_configuration.htmlX Refsource MISCVendor Advisory