Preview generation used third-party library not suited for user-generated content in Nextcloud server
Nextcloud's image preview feature used an unsafe third-party library to process user-uploaded images, allowing attackers to trigger server requests to internal systems, leak files, or potentially run malicious code on the server.
CVE-2021-32802 involves improper input validation in Nextcloud's preview generation pipeline (CWE-829), where untrusted user-supplied image content is passed to an unsuitable third-party library without sanitization. Attack vectors include Server-Side-Request-Forgery (SSRF), arbitrary file disclosure, and remote code execution depending on system configuration and library version. Mitigation requires upgrading to patched versions (20.0.12+, 21.0.4+, 22.1.0+) or disabling preview functionality.
Want to know if your infrastructure is exposed to this?
Talk to TrueHacking →