CVE-2024-31991: GHSL-2023-225, GHSL-2023-226, GHSL-2023-227, and GHSL-2023-228: Server-Side Request Forgery (SSRF) and Denial of Service (DoS) in Mealie - CVE-2024-31991, CVE-2024-31992, CVE-2024-31993, CVE-2024-31994
Mealie is a self hosted recipe manager and meal planner. Prior to 1.4.0, the safescrapehtml 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 changeme@example.com user is available with its hard-coded password. This vulnerability is fixed in 1.4.0.
Other sources
Mealie v1.0.0-RC1.1 is vulnerable to multiple SSRF and DoS vulnerabilities. These vulnerabilities can be leveraged to identify, map, and retrieve the contents of webservers on Mealie’s local network as well as being the victim of, or launching point for, a denial of service attack against a target of the attacker’s choice.
— GitHub Security Lab
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-31991?
The severity of CVE-2024-31991 is classified as a medium risk due to the potential for exploitation via user-controlled URLs.
How do I fix CVE-2024-31991?
To fix CVE-2024-31991, upgrade to Mealie version 1.4.0 or later.
What components are affected by CVE-2024-31991?
CVE-2024-31991 affects Mealie versions prior to 1.4.0.
What type of vulnerability is CVE-2024-31991?
CVE-2024-31991 is an input validation issue related to user-controlled URL handling.
Can CVE-2024-31991 lead to remote code execution?
CVE-2024-31991 could potentially lead to unauthorized actions based on user-controlled inputs, though not specifically remote code execution.