CVE-2024-52515: Nextcloud Server has incomplete sanitization of SVG files allows to embed other images into previews
Nextcloud Server is a self hosted personal cloud system. After an admin enables the default-disabled SVG preview provider, a malicious user could upload a manipulated SVG file referencing paths. If the file would exist the preview of the SVG would preview the other file instead. It is recommended that the Nextcloud Server is upgraded to 27.1.10, 28.0.6 or 29.0.1 and Nextcloud Enterprise Server is upgraded to 24.0.12.15, 25.0.13.10, 26.0.13.4, 27.1.10, 28.0.6 or 29.0.1.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-52515?
CVE-2024-52515 has been categorized as a medium severity vulnerability.
How do I fix CVE-2024-52515?
To mitigate CVE-2024-52515, do not enable the SVG preview provider in your Nextcloud Server settings.
Which versions of Nextcloud are affected by CVE-2024-52515?
CVE-2024-52515 affects Nextcloud Server versions up to 27.1.10, 28.0.6, and 29.0.1, as well as Nextcloud Enterprise Server versions up to 24.0.12.15, 25.0.13.10, 26.0.13.4, 27.1.10, 28.0.6, and 29.0.1.
What type of vulnerability is CVE-2024-52515?
CVE-2024-52515 is a vulnerability that allows a malicious user to manipulate SVG file previews.
Is there a workaround for CVE-2024-52515?
A temporary workaround for CVE-2024-52515 is to only allow trusted users to upload SVG files or to disable SVG previews entirely.