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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: High; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Remote, login needed
- **EPSS:** 2.05% (percentile 82, 2026-11-26)
- **CWE:** CWE-22
- **Published:** 2024-04-04T20:27:40.370Z
- **Modified:** 2026-06-17T07:26:38.643Z

## Who should check

- Anyone running mailcow-dockerized \< 2024-04

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

## Affected and fixed versions

- mailcow-dockerized: \< 2024-04 (cvelist)

## Mitigation

- Upgrade mailcow-dockerized to 2024-04 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-30270. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-30270.md
Affected: mailcow-dockerized < 2024-04
Fixed in: mailcow-dockerized 2024-04

Steps:
1. Search this machine and project for mailcow-dockerized: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-30270 being exploited?

There is no confirmed exploitation: CVE-2024-30270 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 2.05% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-30270?

Medium: CVSS 6.2 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2024-30270?

mailcow-dockerized \< 2024-04.

### Is there a fix for CVE-2024-30270?

Yes. Fixed in mailcow-dockerized 2024-04. Upgrade mailcow-dockerized to 2024-04 or later.

### How do I check if I'm affected by CVE-2024-30270?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

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

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-30270>

HTML: <https://flawdb.com/CVE-2024-30270> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-30270>
