CVE-2024-31992 Mealie contains a DoS vulnerability in recipe importer

Medium 6.5 Published Updated

Attackers can exhaust CPU resources and sustain traffic against external targets via unrate-limited recipe imports, requiring an upgrade to Mealie.

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-31992?

CVE-2024-31992 is a medium-severity denial of service vulnerability in mealie-recipes mealie, published on 19 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safe_scrape_html function utilizes a user-controlled URL to issue a request to a remote server, however these requests are not rate-limited. While there are efforts to prevent DDoS by implementing a timeout on requests, it is possible for an attacker to issue a large number of requests to the server which will be handled in batches based on the configuration of the Mealie server. The chunking of responses is helpful for mitigating memory exhaustion on the Mealie server, however a single request to an arbitrarily large external file (e.g. a Debian ISO) is often sufficient to completely saturate a CPU core assigned to the Mealie container. Without rate limiting in place, it is possible to not only sustain traffic against an external target indefinitely, but also to exhaust the CPU resources assigned to the Mealie container. This vulnerability is fixed in 1.4.0.

Weakness: CWE-770, CWE-400

Which versions are affected by CVE-2024-31992?

It affects 1 product.

Products include Mealie Mealie.

How do I fix CVE-2024-31992?

No fix has been published for CVE-2024-31992 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-31992 being exploited?

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

Sources

Is CVE-2024-31992 in your software?

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

Check your SBOMs for free