CVE-2024-31993 Mealie vulnerable to a GET-based SSRF in recipe image importer (GHSL-2023-227)

Medium 6.2 Published Updated

Attackers can exploit unvalidated URL imports to perform Server-Side Request Forgery, potentially reading internal files or bypassing network restrictions.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-31993?

CVE-2024-31993 is a medium-severity server-side request forgery vulnerability in mealie-recipes mealie, published on 19 Apr 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-918

Which versions are affected by CVE-2024-31993?

It affects 1 product.

Products include Mealie Mealie.

How do I fix CVE-2024-31993?

No fix has been published for CVE-2024-31993 yet. Limit exposure of the affected software until one is available.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2024-31993 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-31993 exists.

Sources

Is CVE-2024-31993 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free