CVE-2024-31994 Mealie vulnerable to a DoS in recipe image importer (GHSL-2023-228)

Medium 6.5 Published Updated

Attackers can cause denial of service by forcing the application to download arbitrarily large files, leading to out-of-memory crashes or disk exhaustion.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-31994?

CVE-2024-31994 is a medium-severity denial of service vulnerability in mealie-recipes mealie, published on 19 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, an attacker can point the image request to an arbitrarily large file. Mealie will attempt to retrieve this file in whole. If it can be retrieved, it may be stored on the file system in whole (leading to possible disk consumption), however the more likely scenario given resource limitations is that the container will OOM during file retrieval if the target file size is greater than the allocated memory of the container. At best this can be used to force the container to infinitely restart due to OOM (if so configured in `docker-compose.yml), or at worst this can be used to force the Mealie container to crash and remain offline. In the event that the file can be retrieved, the lack of rate limiting on this endpoint also permits an attacker to generate ongoing requests to any target of their choice, potentially contributing to an external-facing DoS attack. This vulnerability is fixed in 1.4.0.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2024-31994?

It affects 1 product.

Products include Mealie Mealie.

How do I fix CVE-2024-31994?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2024-31994 being exploited?

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

Sources

Is CVE-2024-31994 in your software?

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

Check your SBOMs for free