# CVE-2024-30270: mailcow Path Traversal and Arbitrary Code Execution Vulnerability

- Severity: Medium 6.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 27.3%, higher than 98% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2024-04-04T20:27:40.370Z
- Modified: 2026-06-17T07:26:38.643Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mailcow mailcow-dockerized: < 2024-04
- mailcow mailcow:_dockerized: before 2024-04

## References

- <https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages> (exploit, third-party-advisory)
- <https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270> (exploit, third-party-advisory)
- <https://github.com/mailcow/mailcow-dockerized/security/advisories/GHSA-4m8r-87gc-3vvp> (vendor-advisory)
- <https://mailcow.email/posts/2024/release-2024-04> (release-notes)

## Sources

- CVE List: [CVE-2024-30270](https://www.cve.org/CVERecord?id=CVE-2024-30270), CVE Terms of Use, modified 2024-12-12
- NVD: [CVE-2024-30270](https://nvd.nist.gov/vuln/detail/CVE-2024-30270), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-30270 · Whole record: https://cve.day/CVE-2024-30270.json · Rebuilt by cve.day 2026-11-25T22:58:38.779Z
