{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "36b5cccd186090d726de62b6b00d1e842e67aacd"
            }
          ],
          "repo": "https://github.com/mailcow/mailcow-dockerized",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4m8r-87gc-3vvp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30270.json"
  },
  "details": "mailcow: dockerized is an open source groupware/email suite based on docker. A security vulnerability has been identified in mailcow affecting versions prior to 2024-04. This vulnerability is a combination of path traversal and arbitrary code execution, specifically targeting the `rspamd_maps()` function. It allows authenticated admin users to overwrite any file writable by the www-data user by exploiting improper path validation. The exploit chain can lead to the execution of arbitrary commands on the server. Version 2024-04 contains a patch for the issue.",
  "id": "CVE-2024-30270",
  "modified": "2026-04-01T23:08:40.902838831Z",
  "published": "2024-04-04T20:27:40.370Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://mailcow.email/posts/2024/release-2024-04"
    },
    {
      "type": "WEB",
      "url": "https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30270.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-30270"
    },
    {
      "type": "ARTICLE",
      "url": "https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L",
      "type": "CVSS_V3"
    }
  ],
  "summary": "mailcow Path Traversal and Arbitrary Code Execution Vulnerability"
}