CVE-2024-31992
Mealie CPU Exhaustion and Amplified DDoS Vulnerability
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.
INFO
Published Date :
April 19, 2024, 9:15 p.m.
Last Modified :
March 7, 2025, 12:36 p.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
3.6
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-31992
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-31992
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-31992
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Mar. 07, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-770 Added CPE Configuration OR *cpe:2.3:a:mealie:mealie:*:*:*:*:*:*:*:* versions from (excluding) 1.4.0 Added Reference Type CVE: https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70 Types: Product Added Reference Type GitHub, Inc.: https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70 Types: Product Added Reference Type CVE: https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f Types: Patch Added Reference Type GitHub, Inc.: https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f Types: Patch Added Reference Type CVE: https://github.com/mealie-recipes/mealie/pull/3368 Types: Issue Tracking Added Reference Type GitHub, Inc.: https://github.com/mealie-recipes/mealie/pull/3368 Types: Issue Tracking Added Reference Type CVE: https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/ Types: Third Party Advisory Added Reference Type GitHub, Inc.: https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/ Types: Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70 Added Reference https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f Added Reference https://github.com/mealie-recipes/mealie/pull/3368 Added Reference https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/ -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
Apr. 19, 2024
Action Type Old Value New Value Added 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. Added Reference GitHub, Inc. https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/ [No types assigned] Added Reference GitHub, Inc. https://github.com/mealie-recipes/mealie/pull/3368 [No types assigned] Added Reference GitHub, Inc. https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f [No types assigned] Added Reference GitHub, Inc. https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70 [No types assigned] Added CWE GitHub, Inc. CWE-400 Added CVSS V3.1 GitHub, Inc. AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-31992
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-31992
weaknesses.