CVE-2021-32802 Preview generation used third-party library not suited for user-generated content in Nextcloud server
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- PHP
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| nextcloud server | < 20.0.12; >= 21.0.0, < 21.0.4; >= 22.0.0, < 22.1.0 | 20.0.12, 21.0.4, 22.1.0 | Fixed |
| Nextcloud security-advisories | = < 20.0.12; = >= 21.0.0, < 21.0.4; = >= 22.0.0, < 22.1.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| nextcloud server | < 20.0.12 | 20.0.12 |
| nextcloud server | >= 21.0.0, < 21.0.4 | 21.0.4 |
| nextcloud server | >= 22.0.0, < 22.1.0 | 22.1.0 |
| Nextcloud security-advisories | = < 20.0.12 | No fix listed |
| Nextcloud security-advisories | = >= 21.0.0, < 21.0.4 | No fix listed |
| Nextcloud security-advisories | = >= 22.0.0, < 22.1.0 | No fix listed |
References
- docs.nextcloud.com vendor-advisory
- github.com mitigation third-party-advisory
- hackerone.com permissions-required third-party-advisory
- GLSA-202208-17 third-party-advisory vendor-advisory