{"id":"CVE-2024-30270","summary":"mailcow Path Traversal and Arbitrary Code Execution Vulnerability","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.","aliases":["GHSA-4m8r-87gc-3vvp"],"modified":"2026-04-10T05:12:05.479810Z","published":"2024-04-04T20:27:40.370Z","database_specific":{"cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/30xxx/CVE-2024-30270.json","cna_assigner":"GitHub_M"},"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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/mailcow/mailcow-dockerized","events":[{"introduced":"0"},{"fixed":"36b5cccd186090d726de62b6b00d1e842e67aacd"}]}],"versions":["2022-01","2022-01a","2022-03","2022-03a","2022-05","2022-05a","2022-05b","2022-05c","2022-05d","2022-06","2022-06a","2022-06b","2022-07","2022-07a","2022-08","2022-08a","2022-08b","2022-09","2022-09a","2022-10","2022-10a","2022-11","2022-11a","2022-11b","2022-12","2022-12a","2022-12b","2023-01","2023-01a","2023-02","2023-02a","2023-03","2023-04","2023-04a","2023-04b","2023-05","2023-05a","2023-07","2023-07a","2023-08","2023-09","2023-10","2023-10a","2023-11","2023-11a","2023-12","2023-12a","2024-01","2024-01a","2024-01b","2024-01c","2024-01d","2024-01e","2024-02"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-30270.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L"}]}