Skip to content
Fencer Vulns
medium 6.2

CVE-2024-30270 json

mailcow Path Traversal and Arbitrary Code Execution Vulnerability

published 2024-04-04 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-28191

cvss
6.2
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
27.3%
EPSS 27.3% chance of exploitation in 30 days, percentile 98%
public exploits
0
none known

Summary

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.

Patch / fix

  • mailcow mailcow-dockerized 2024-04
  • mailcow mailcow:_dockerized 2024-04
  • mailcow mailcow_dockerized 2024-04

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

27.35% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • sonarsource.com https://www.sonarsource.com/blog/remote-code-execution-in-mailcow-always-sanitize-error-messages referenced PoC, tagged "exploit" by a source, unverified
  • vicarius.io https://www.vicarius.io/vsociety/posts/mailcow-with-xss-and-path-traversal-cve-2024-31204-and-cve-2024-30270 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 3.1 6.2 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L

Affected products

  • mailcow mailcow-dockerized

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.