Read the docs
TI-2021-12467 Aliases CVE-2021-32802

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

Priority MEDIUM 47CWE-829Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-829.

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

Why it matters now

EPSS 0.02604 85th percentileScored 2026-11-07
Fix Fixed security-advisories (nextcloud): 20.0.12, 21.0.4, 22.1.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
nextcloudsecurity-advisoriesbefore 20.0.12; 21.0.0 to before 21.0.4; 22.0.0 to before 22.1.020.0.12, 21.0.4, 22.1.0Patch availableCNA
  • security-advisories Vendornextcloud Affected before 20.0.12; 21.0.0 to before 21.0.4; 22.0.0 to before 22.1.0 Fixed in 20.0.12, 21.0.4, 22.1.0 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:*before 20.0.12; 21.0.0 to before 21.0.4; 22.0.0 to before 22.1.0Vulnerablenextcloud
  • cpe:2.3:a:nextcloud:nextcloud_server:*:*:*:*:*:*:*:* Versions before 20.0.12; 21.0.0 to before 21.0.4; 22.0.0 to before 22.1.0 Vulnerable ·nextcloud

Remediation

  • Fix · CNA security-advisories (nextcloud) Fixed in 20.0.12, 21.0.4, 22.1.0

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-32802

References

  • TI-2023-20855 Users can delete external storage mount points CVSS 3.1HIGH 7.7
  • TI-2023-11091 Nextcloud download permissions can be changed by resharer CVSS 3.1HIGH 7.5
  • TI-2023-10624 Nextcloud Server vulnerable to SSRF via filter bypass due to lax checking on IPs CVSS 3.1MEDIUM 5.3
  • TI-2025-37238 Cross-site scripting in Nextcloud CVSS 3.1MEDIUM 6.4
  • TI-2023-11086 nextcloud vulnerable to Uncontrolled Resource Consumption CVSS 3.1MEDIUM 6.5
  • TI-2022-18738 Exception logging in Sharepoint app reveals clear-text connection details CVSS 3.1MEDIUM 6.5
See all 188 →

Sources