GHSA-7hwf-8pcj-33h4 / CVE-2026-104190: ImageMagick vulnerability abusable via previews of malicious files
- Published:
- Fetched:
- Updated:
- Affects:
- nextcloud Server
https://github.com/nextcloud/security-advisories/security/advisories/GHSA-7hwf-8pcj-33h4 ↗
ImageMagick vulnerability abusable via previews of malicious files ### 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) Affected packages: nextcloud enterprise:Server, nextcloud:Server Patched: Server 32.0.13, 33.0.7, 34.0.2, Server 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, 34.0.2