CVE-2024-31994: 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, an attacker can point the image request to an arbitrarily large file. Mealie will attempt to retrieve this file in whole. If it can be retrieved, it may be stored on the file system in whole (leading to possible disk consumption), however the more likely scenario given resource limitations is that the container will OOM during file retrieval if the target file size is greater than the allocated memory of the container. At best this can be used to force the container to infinitely restart due to OOM (if so configured in docker-compose.yml), or at worst this can be used to force the Mealie container to crash and remain offline. In the event that the file can be retrieved, the lack of rate limiting on this endpoint also permits an attacker to generate ongoing requests to any target of their choice, potentially contributing to an external-facing DoS attack. 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
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2024-31994?
CVE-2024-31994 has a moderate severity rating due to the potential for excessive file system usage by attackers.
How do I fix CVE-2024-31994?
To fix CVE-2024-31994, upgrade Mealie to version 1.4.0 or later, which mitigates this vulnerability.
What types of attacks are possible with CVE-2024-31994?
CVE-2024-31994 allows attackers to exploit the image request mechanism to upload arbitrarily large files, potentially impacting system resources.
Is CVE-2024-31994 present in all versions of Mealie?
CVE-2024-31994 affects all versions of Mealie prior to 1.4.0.
What are the potential consequences of exploiting CVE-2024-31994?
Exploitation of CVE-2024-31994 could lead to denial of service by exhausting system resources through large file uploads.