{"id":"CVE-2024-30270","state":"PUBLISHED","title":"mailcow Path Traversal and Arbitrary Code Execution Vulnerability","description":"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.","publishedAt":"2024-04-04T20:27:40.370Z","updatedAt":"2024-12-12T20:52:59.248Z","severity":{"score":6.2,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["mailcow mailcow-dockerized"],"affected":[{"vendor":"mailcow","product":"mailcow-dockerized","versions":[{"version":"< 2024-04","status":"affected"}]}],"references":["https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp","https://mailcow.email/posts/2024/release-2024-04","https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages","https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:07:21.467Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/30xxx/CVE-2024-30270.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-30270","state":"PUBLISHED","datePublished":"2024-04-04T20:27:40.370Z","dateUpdated":"2024-12-12T20:52:59.248Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-03-26T12:52:00.935Z"},"containers":{"cna":{"title":"mailcow Path Traversal and Arbitrary Code Execution Vulnerability","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"mailcow","product":"mailcow-dockerized","versions":[{"version":"< 2024-04","status":"affected"}]}],"references":[{"url":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp","name":"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","name":"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","name":"https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":6.2,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-12-12T20:52:59.248Z"},"source":{"advisory":"GHSA-4m8r-87gc-3vvp","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-30270","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-04-05T18:05:43.220610Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:38:21.058Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp","name":"https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://mailcow.email/posts/2024/release-2024-04","name":"https://mailcow.email/posts/2024/release-2024-04","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-19T07:47:49.385Z"}}]}}}