CVE-2026-104190: ImageMagick vulnerability abusable via previews of malicious files
CVE-2026-104190 affects 156 listed versions of Nextcloud in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Nextcloud
156 of 250 listed versions are affected. Fixed in 34.0.2, 33.0.7, 32.0.13, 31.0.14.8, 30.0.17.12, 29.0.16.19, 28.0.14.20, 27.1.11.29. The newest release, 35.0.3, is not affected.
34.0.1 34.0.0 33.0.6 33.0.5 33.0.4 33.0.3 33.0.2 33.0.1 33.0.0 32.0.12 32.0.11 32.0.10 32.0.9 32.0.8 32.0.7 32.0.6 32.0.5 32.0.4 32.0.3 32.0.2 32.0.1 31.0.14.7 31.0.14.6 31.0.14.5 31.0.14.4 31.0.14.3 31.0.14 31.0.13 31.0.12 31.0.11 31.0.10 31.0.9 31.0.8 31.0.7 30.0.17.10 30.0.17.9 30.0.17.8 30.0.17.7 30.0.17.5 30.0.17.3 30.0.17 30.0.16 30.0.15 30.0.14 30.0.13 30.0.12 30.0.11 29.0.16.16 29.0.16.14 29.0.16.10 29.0.16.8 29.0.16 29.0.15 29.0.14 29.0.13 29.0.12 29.0.11 29.0.10 29.0.9 28.0.14.17 and 96 more
What it is
### Impact By requesting previews of corrupted files a subsequent remote code execution (RCE) in Imagick (before 6.9.13-48 and 7.1.2-24) could be triggered, allowing an attacker to write arbitrary files. These files could then be used to further attack the system. However, the issue is limited to the following preview providers which are all not enabled by default: HEIC, Illustrator, PDF, Photoshop, Postscript, SGI, TGA, and TIFF. Additionally, the attacker must have access to either an account or a writable share link. ### Patches It is recommended that the Nextcloud Server is upgraded to 32.0.13, 33.0.7 or 34.0.2 It is recommended that the Nextcloud Enterprise Server is upgraded to 22.2.10.42, 23.0.12.38, 24.0.13.37, 25.0.13.32, 26.0.13.29, 27.1.11.29, 28.0.14.20, 29.0.16.19, 30.0.17.12, 31.0.14.8, 32.0.13, 33.0.7 or 34.0.2 ### Workarounds Each of them in itself is sufficient: * Uninstall imagick from PHP * Change config setting `enable_previews` to `false` in `config/config.php` * Ensure config setting `enabledPreviewProviders` in `config/config.php` does not contain any of: * `OC\Preview\Font` * `OC\Preview\HEIC` * `OC\Preview\Illustrator` * `OC\Preview\PDF` * `OC\Preview\Photoshop` * `OC\Preview\Postscript` * `OC\Preview\SGI` * `OC\Preview\TGA` * `OC\Preview\TIFF` ### References * [PullRequest](https://github.com/nextcloud/server/pull/62145) * Reported by Yordan Ganchev of [watchTowr](https://watchtowr.com/) ### For more information If you have any questions or comments about this advisory: * Create a post in [nextcloud/security-advisories](https://github.com/nextcloud/security-advisories/discussions) * Customers: Open a support ticket at [portal.nextcloud.com](https://portal.nextcloud.com)
CVSS:3.1/AV:A/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H (GitHub)
Published by GitHub on 17 September 2026.
Sources
Check one version you run: look CVE-2026-104190 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.