CVE-2024-31993
Mealie File Inclusion Vulnerability
Description
Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the scrape_image function will retrieve an image based on a user-provided URL, however the provided URL is not validated to point to an external location and does not have any enforced rate limiting. The response from the Mealie server will also vary depending on whether or not the target file is an image, is not an image, or does not exist. Additionally, when a file is retrieved the file may remain stored on Mealie’s file system as original.jpg under the UUID of the recipe it was requested for. If the attacker has access to an admin account (e.g. the default [email protected]), this file can then be retrieved. Note that if Mealie is running in a development setting this could be leveraged by an attacker to retrieve any file that the Mealie server had downloaded in this fashion without the need for administrator access. 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 :
No
Impact Score :
4.0
Exploitability Score :
1.7
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-31993
.
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-31993
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-31993
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:A/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N Added CWE CWE-918 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/ee121a12f8db33ecb4db5f8582f7ea9788d019e4/mealie/services/recipe/recipe_data_service.py#L107 Types: Product Added Reference Type GitHub, Inc.: https://github.com/mealie-recipes/mealie/blob/ee121a12f8db33ecb4db5f8582f7ea9788d019e4/mealie/services/recipe/recipe_data_service.py#L107 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/ee121a12f8db33ecb4db5f8582f7ea9788d019e4/mealie/services/recipe/recipe_data_service.py#L107 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 scrape_image function will retrieve an image based on a user-provided URL, however the provided URL is not validated to point to an external location and does not have any enforced rate limiting. The response from the Mealie server will also vary depending on whether or not the target file is an image, is not an image, or does not exist. Additionally, when a file is retrieved the file may remain stored on Mealie’s file system as original.jpg under the UUID of the recipe it was requested for. If the attacker has access to an admin account (e.g. the default [email protected]), this file can then be retrieved. Note that if Mealie is running in a development setting this could be leveraged by an attacker to retrieve any file that the Mealie server had downloaded in this fashion without the need for administrator access. 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/ee121a12f8db33ecb4db5f8582f7ea9788d019e4/mealie/services/recipe/recipe_data_service.py#L107 [No types assigned] Added CWE GitHub, Inc. CWE-918 Added CVSS V3.1 GitHub, Inc. AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N
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-31993
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-31993
weaknesses.