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`.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nextcloud | security-advisories | < 20.0.12, >= 21.0.0, < 21.0.4, >= 22.0.0, < 22.1.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP3 | nextcloud | 20.0.12-bp153.2.6.1 | openSUSE-SU-2021:1255-1 |
| SUSE Package Hub 15 SP2 | nextcloud | 20.0.12-bp152.2.12.1 | openSUSE-SU-2021:1275-1 |
| SUSE Package Hub 15 SP1 | nextcloud | 20.0.12-bp151.3.18.1 | openSUSE-SU-2021:1250-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 12 | nextcloud | 20.0.12-31.1 | openSUSE-SU-2021:1252-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.3 | nextcloud | 20.0.12-bp153.2.6.1 | openSUSE-SU-2021:1255-1 |
| openSUSE Leap 15.2 | nextcloud | 20.0.12-lp152.3.12.1 | openSUSE-SU-2021:1253-1 |
Advisories 5
- openSUSE-SU-2021:1253-1 Security update for nextcloud SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1275-1 Security update for nextcloud SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1255-1 Security update for nextcloud SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1250-1 Security update for nextcloud SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:1252-1 Security update for nextcloud SUSE / openSUSE Security Updates · May 7, 2025