Read the docs

Imagick flaw in Nextcloud Server lets attackers write arbitrary files

Priority MEDIUM 48CWE-1395Published · Updated

Key facts

Attack vector
Adjacent network
Privileges required
Low
User interaction
Required
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · GHSA-7hwf-8pcj-33h4. Fix status from GitHub.

Summary

Nextcloud Server and Nextcloud Enterprise Server are affected because they use Imagick before 6.9.13-48 and 7.1.2-24 for previews. Requesting previews of corrupted files can trigger remote code execution in Imagick, a flaw that stems from a vulnerable third-party component (CWE-1395). An attacker with an account or a writable share link can write arbitrary files that could be used for further attacks, but the affected preview providers (HEIC, Illustrator, PDF, Photoshop, Postscript, SGI, TGA, TIFF) are not enabled by default.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

Description from the GitHub advisory

### 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)

Why it matters now

Fix Fixed Server (nextcloud): 32.0.13, 33.0.7, 34.0.2Server (nextcloud enterprise): 22.2.10.42, 23.0.12.38, 24.0.13.37 +10

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—Server (nextcloud)>= 32.0.0, >= 33.0.0, >= 34.0.032.0.13, 33.0.7, 34.0.2Patch availableGHSA-7hwf-8pcj-33h4
—Server (nextcloud enterprise)>= 22.0.0.0, >= 23.0.0.0, >= 24.0.0.0, >= 25.0.0.0, >= 26.0.0.0, >= 27.0.0.0, >= 28.0.0.0, >= 29.0.0.0, >= 30.0.0.0, >= 31.0.0.0, >= 32.0.0, >= 33.0.0, >= 34.0.022.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.2Patch availableGHSA-7hwf-8pcj-33h4
  • Server (nextcloud) Vendor— Affected >= 32.0.0, >= 33.0.0, >= 34.0.0 Fixed in 32.0.13, 33.0.7, 34.0.2 Patch available GHSA-7hwf-8pcj-33h4
  • Server (nextcloud enterprise) Vendor— Affected >= 22.0.0.0, >= 23.0.0.0, >= 24.0.0.0, >= 25.0.0.0, >= 26.0.0.0, >= 27.0.0.0, >= 28.0.0.0, >= 29.0.0.0, >= 30.0.0.0, >= 31.0.0.0, >= 32.0.0, >= 33.0.0, >= 34.0.0 Fixed in 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 Patch available GHSA-7hwf-8pcj-33h4

Remediation

Upgrade Nextcloud Server to 32.0.13, 33.0.7 or 34.0.2. Upgrade Nextcloud Enterprise Server 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. Alternatively, set enable_previews to false in config/config.php or uninstall imagick from PHP.

Written with Claude Haiku 5.5 from the sources below · 2026-11-12

  • Fix · GHSA-7hwf-8pcj-33h4 Server (nextcloud) Fixed in 32.0.13, 33.0.7, 34.0.2 Advisory →
  • Fix · GHSA-7hwf-8pcj-33h4 Server (nextcloud enterprise) Fixed in 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 Advisory →

Timeline

  1. 2026-11-12 Threatist record created from GHSA-7hwf-8pcj-33h4
  2. 2026-11-12 Alias added: CVE-2026-104190

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences