Skip to content
Heist/ feed
Back to feed
Medium

Mealie contains a DoS vulnerability in recipe importer

Type: advisorySources: OSV

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, however these requests are not rate-limited. While there are efforts to prevent DDoS by implementing a timeout on requests, it is possible for an attacker to issue a large number of requests to the server which will be handled in batches based on the configuration of the Mealie server. The chunking of responses is helpful for mitigating memory exhaustion on the Mealie server, however a single request to an arbitrarily large external file (e.g. a Debian ISO) is often sufficient to completely saturate a CPU core assigned to the Mealie container. Without rate limiting in place, it is possible to not only sustain traffic against an external target indefinitely, but also to exhaust the CPU resources assigned to the Mealie container. This vulnerability is fixed in 1.4.0.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-31992
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 23:30 UTC · Revision 1

Source evidence

Mealie contains a DoS vulnerability in recipe importer

core-osv · Original source

Published 19 Apr 2024, 20:49 UTC

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, however these requests are not rate-limited. While there are efforts to prevent DDoS by implementing a timeout on requests, it is possible for an attacker to issue a large number of requests to the server which will be handled in batches based on the configuration of the Mealie server. The chunking of responses is helpful for mitigating memory exhaustion on the Mealie server, however a single request to an arbitrarily large external file (e.g. a Debian ISO) is often sufficient to completely saturate a CPU core assigned to the Mealie container. Without rate limiting in place, it is possible to not only sustain traffic against an external target indefinitely, but also to exhaust the CPU resources assigned to the Mealie container. This vulnerability is fixed in 1.4.0.

osv:CVE-2024-31992
Complete source record
{
  "id": "12c39206b00a95c5ee36abcfae5521e87c9a054f0daf5d5778ee4d8aeb5145ba",
  "url": "https://osv.dev/vulnerability/CVE-2024-31992",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Mealie contains a DoS vulnerability in recipe importer",
    "summary": "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, however these requests are not rate-limited. While there are efforts to prevent DDoS by implementing a timeout on requests, it is possible for an attacker to issue a large number of requests to the server which will be handled in batches based on the configuration of the Mealie server. The chunking of responses is helpful for mitigating memory exhaustion on the Mealie server, however a single request to an arbitrarily large external file (e.g. a Debian ISO) is often sufficient to completely saturate a CPU core assigned to the Mealie container. Without rate limiting in place, it is possible to not only sustain traffic against an external target indefinitely, but also to exhaust the CPU resources assigned to the Mealie container. This vulnerability is fixed in 1.4.0.",
    "evidence": "osv:CVE-2024-31992",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-31992",
      "aliases": [
        "CVE-2024-31992"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/mealie-recipes/mealie",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f709d11952ca8552214e4b9e8c2a189bc11bfb2a"
                },
                {
                  "fixed": "2a3463b7466bc297aede50046da9550d919ec56f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:mealie:mealie:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "1.4.0"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "2a3463b7466bc297aede50046da9550d919ec56f"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.3.2",
            "v1.3.1",
            "v1.3.0",
            "v1.2.0",
            "v1.1.1",
            "v1.1.0",
            "v1.0.0",
            "v1.0.0-RC2",
            "v1.0.0-RC1.1",
            "v1.0.0-RC1",
            "v1.0.0beta-5",
            "v1.0.0beta-4",
            "v1.0.0beta-3",
            "v1.0.0beta-2",
            "v1.0.0-beta-1",
            "v0.4.0",
            "v0.3.0",
            "v0.2.2",
            "v0.2.1",
            "v0.2.0",
            "v0.1.0",
            "v0.0.2",
            "v0.0.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31992.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.285397452Z",
      "provider": "osv",
      "references": [
        "https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py#L27-L70",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31992.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-31992",
        "https://securitylab.github.com/advisories/GHSL-2023-225_GHSL-2023-226_Mealie/",
        "https://github.com/mealie-recipes/mealie/commit/2a3463b7466bc297aede50046da9550d919ec56f",
        "https://github.com/mealie-recipes/mealie/pull/3368"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-400"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31992.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-31992",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490884,
  "published_at": "2024-04-19T20:49:18.141+00:00"
}