CVE-2024-8370 Grocy SVG File Upload recipepictures cross site scripting

Medium 5.3 Published Updated

An authenticated attacker can inject malicious scripts via SVG file uploads in Grocy, potentially leading to cross-site scripting attacks.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-8370?

CVE-2024-8370 is a medium-severity cross-site scripting vulnerability in Grocy, published on 1 Sep 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

A vulnerability classified as problematic was found in Grocy up to 4.2.0. This vulnerability affects unknown code of the file /api/files/recipepictures/ of the component SVG File Upload Handler. The manipulation of the argument force_serve_as with the input picture' leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. Unfortunately, the project maintainer does not want to be quoted in any way regarding the dispute rationale. The security policy of the project implies that this finding is "practically irrelevant" due to authentication requirements.

Weakness: CWE-79

Which versions are affected by CVE-2024-8370?

It affects 1 product.

Products include Grocy Project Grocy.

How do I fix CVE-2024-8370?

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

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2024-8370 being exploited?

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

Sources

Also known as GHSA-fvhw-w3qc-hw2r.

Is CVE-2024-8370 in your software?

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

Check your SBOMs for free