CVE-2024-31993: 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 scrapeimage 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 changeme@example.com), 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.
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-31993?
CVE-2024-31993 has a medium severity rating due to the potential for abuse of the scrape_image function.
How do I fix CVE-2024-31993?
To fix CVE-2024-31993, upgrade Mealie to version 1.4.0 or higher, which implements URL validation and rate limiting.
What is the exploit in CVE-2024-31993?
CVE-2024-31993 allows attackers to exploit the scrape_image function to possibly retrieve images from unvalidated URLs.
Which versions of Mealie are affected by CVE-2024-31993?
Mealie versions prior to 1.4.0 are affected by CVE-2024-31993.
Is user data at risk with CVE-2024-31993?
While CVE-2024-31993 does not directly compromise user data, it could allow attackers to perform unwanted actions by manipulating image scraping.