CVE-2024-52515 Nextcloud Server has incomplete sanitization of SVG files allows to embed other images into previews

Medium 5.7 Published Updated

Attackers can read arbitrary files via manipulated SVG previews if the SVG provider is enabled, requiring an upgrade to Nextcloud Server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2024-52515?

CVE-2024-52515 is a medium-severity path traversal vulnerability in Nextcloud Nextcloud Server, published on 15 Nov 2024. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-706

Which versions are affected by CVE-2024-52515?

It affects 1 product.

Products include Nextcloud Nextcloud Server.

How do I fix CVE-2024-52515?

No fix has been published for CVE-2024-52515 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-52515 being exploited?

There is no known exploitation of CVE-2024-52515 in the wild and no public exploit code.

All Nextcloud Nextcloud Server vulnerabilities

Sources

Also known as GHSA-5m5g-hw8c-2236.

Is CVE-2024-52515 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free