{"id":"CVE-2024-30270","published":"2024-04-04T20:27:40Z","modified":"2024-12-12T20:52:59Z","title":"mailcow Path Traversal and Arbitrary Code Execution Vulnerability","vendor":"mailcow","product":"mailcow-dockerized","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.27346,"percentile":0.98105,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp","tags":["x_refsource_CONFIRM"]},{"url":"https://mailcow.email/posts/2024/release-2024-04","tags":["x_refsource_MISC"]},{"url":"https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages","tags":["x_refsource_MISC"]},{"url":"https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270","tags":[]}],"priority":{"score":29.0,"factors":[{"name":"EPSS percentile","points":19.62},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.34}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2024-06-21","earliestUrl":"https://github.com/Alchemist3dot14/CVE-2024-30270-PoC","repos":[{"name":"Alchemist3dot14/CVE-2024-30270-PoC","url":"https://github.com/Alchemist3dot14/CVE-2024-30270-PoC","stars":4,"created":"2024-06-21"}]},"first":{"date":"2024-06-21","source":"PoC-in-GitHub","url":"https://github.com/Alchemist3dot14/CVE-2024-30270-PoC"},"provenance":"source"},"vendorSlug":"mailcow","affectedVersions":[{"vendor":"mailcow","product":"mailcow-dockerized","versions":["< 2024-04"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-04-05T18:05:43.220610Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is a combined path traversal and arbitrary code execution vulnerability in the rspamd_maps() function of mailcow-dockerized, the open source Docker-based groupware and email suite from mailcow. An attacker who holds authenticated administrator access over the network, with high complexity required to reach it, can overwrite any file writable by the www-data user, which can lead to arbitrary command execution on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:34Z"},"euvd":{"id":"EUVD-2024-28191","exploited":false,"provenance":"source"}}