SecurityContext

CVE-2021-32802: Nextcloud - Insecure Deserialization

  • Cve: CVE-2021-32802
  • Name: Nextcloud - Insecure Deserialization
  • 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`.
  • Impact: Attackers can execute code, perform server-side request forgery, or disclose files through malicious image content processing.
  • Remediation: Upgrade Nextcloud server to version 20.0.12, 21.0.4, or 22.1.0 which no longer use the vulnerable library. As a workaround, disable previews by setting `enable_previews` to `false` in `config.php`.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution, server_side_request_forgery, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02604
  • Epss percentile: 0.85764
  • Assignee: [email protected]
  • Published at: 2021-09-07T22:15:08Z
  • Age in days: 1904
  • Modified at: 2026-06-17T03:53:39Z
  • Patch available: yes
  • References total: 4
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-32802
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-829Inclusion of Functionality from Untrusted Control Sphere

Hackerone

  • Reports: 1
  • Rank: 5211

References

Same in every row:

  • Source: nvd
UrlTags
https://docs.nextcloud.com/server/21/admin_manual/configuration_files/previews_configuration.html#disabling-previewsVendor Advisory
https://github.com/nextcloud/security-advisories/security/advisories/GHSA-m682-v4g9-wrq7Mitigation, Third Party Advisory
https://hackerone.com/reports/1261413Permissions Required, Third Party Advisory
https://security.gentoo.org/glsa/202208-17Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
nextcloud:nextcloud_server>= 22.0.0, < 22.1.0; >= 21.0.0, < 21.0.4; < 20.0.12nonvd/v1/products/nextcloud/nextcloud_server

Projects

RepositoryLink kindsIndexedUrl
nextcloud/security-advisoriessecurity_advisoryyes/v1/repositories/nextcloud/security-advisories

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Hackerone reports: 1
  • Exposed hosts: 110639
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since