Cyber Resilience

CVE-2024-30270

MediumPublic PoC

Published: 04 April 2024

Published
04 April 2024
Modified
06 October 2025
KEV Added
Patch
CVSS Score v3.1 6.2 CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:L
EPSS Score 0.4879 97.8th percentile
Risk Priority 42 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2024-30270 is a medium-severity Path Traversal (CWE-22) vulnerability in Mailcow Mailcow\. Its CVSS base score is 6.2 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 2.2% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

mailcow: dockerized, an open source groupware and email suite based on Docker, contains a path traversal and arbitrary code execution vulnerability in versions prior to 2024-04. The flaw resides in the rspamd_maps() function, where improper path validation allows overwriting of any file writable by the www-data user and is tracked as CWE-22.

An authenticated administrator can exploit the issue remotely to chain the file write into arbitrary command execution on the server. The CVSS 6.2 rating reflects the required high attack complexity and high privileges, with impacts on confidentiality, integrity, and availability.

The GitHub security advisory and the mailcow 2024-04 release notes state that the update contains a patch for the path-validation weakness. A SonarSource analysis further highlights the need to sanitize inputs that reach error-handling paths leading to the vulnerable function.

The associated EPSS score shows a current value of 0.4879 against a peak of 0.4944.

EU & UK References

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()`…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.007 JavaScript Execution
Adversaries may abuse various implementations of JavaScript for execution.
T1539 Steal Web Session Cookie Credential Access
An adversary may steal web application or service session cookies and use them to gain access to web applications or Internet services as an authenticated user without needing credentials.
Why these techniques?

Path traversal (CVE-2024-30270) in mailcow's admin API enables arbitrary file overwrites by authenticated admins, facilitating RCE via exploitation of a public-facing email suite application (T1190). Combined XSS (CVE-2024-31204) via unsanitized error messages enables JavaScript execution in the admin context (T1059.007) and session hijacking for further exploitation (T1539).

Affected Assets

mailcow
mailcow\
_dockerized

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-22

Validates pathnames and filenames to prevent traversal outside intended directories.

References