4.1
MEDIUM
CVE-2024-31991
Mealie Local Network Information Disclosure
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. Based on the content of the response, it will either parse the content or disregard it. This function, nor those that call it, add any restrictions on the URL that can be provided, nor is it restricted to being an FQDN (i.e., an IP address can be provided). As this function’s return will be handled differently by its caller depending on the response, it is possible for an attacker to use this functionality to positively identify HTTP(s) servers on the local network with any IP/port combination. This issue can result in any authenticated user being able to map HTTP servers on a local network that the Mealie service has access to. Note that by default any user can create an account on a Mealie server, and that the default [email protected] user is available with its hard-coded password. 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.

Remotely Exploitable :

No

Impact Score :

1.4

Exploitability Score :

2.3
Affected Products

The following products are affected by CVE-2024-31991 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Mealie mealie
1 Mealie_project mealie

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-31991 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-31991 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:L/UI:N/S:U/C:N/I:L/A:N
    Added CWE NVD-CWE-noinfo
    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. Based on the content of the response, it will either parse the content or disregard it. This function, nor those that call it, add any restrictions on the URL that can be provided, nor is it restricted to being an FQDN (i.e., an IP address can be provided). As this function’s return will be handled differently by its caller depending on the response, it is possible for an attacker to use this functionality to positively identify HTTP(s) servers on the local network with any IP/port combination. This issue can result in any authenticated user being able to map HTTP servers on a local network that the Mealie service has access to. Note that by default any user can create an account on a Mealie server, and that the default [email protected] user is available with its hard-coded password. 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-918
    Added CVSS V3.1 GitHub, Inc. AV:A/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:N
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
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-31991 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-31991 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability