Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in mailcow:dockerized, an email server suite, allows domain administrators to execute commands on the shared rspamd container. This occurs when a malicious domain-wide footer is stored, enabling attackers to potentially read or inject mail for all tenants and disable filtering. The main concern is confirming relevance and exposure.
- Stored footer allows command execution.
- Affects mail administrators, impacts tenants.
- Confirm relevance and review footer settings.
Attack Path
How an attacker could exploit the issue
An attacker with administrative access to mailcow:dockerized can exploit a server-side template injection vulnerability by configuring a malicious domain-wide footer. This crafted footer, containing a Jinja macro with an `os.execute` command, will be processed by the rspamd MOO_FOOTER prefilter. When rendered, this macro allows the attacker to execute commands within the shared rspamd container, potentially leading to the compromise of mail for all tenants and the disabling of email filtering services.
- Requires administrative privileges.
- Triggered by storing a malicious domain footer.
- Risk of command execution and service disruption.
Live Threat
Current exploitation, exposure, and threat context
This vulnerability could allow a malicious actor with administrative access to execute commands on the shared rspamd container. This could impact all tenants by enabling unauthorized access to read or inject mail, and potentially disable filtering services.
- System data and service behavior at risk.
- Command execution via malicious domain footer.
- Loss of mail filtering and data integrity.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability in mailcow:dockerized affects domain administrators, indicating that platform or infrastructure teams managing mailcow deployments are likely responsible for remediation. The initial step should be to identify all mailcow instances, confirm their exposure and criticality, and then map them to accountable owners before planning any necessary updates or mitigation strategies.
- Platform/Infrastructure teams own remediation.
- Verify mailcow instance reachability and criticality.
- Plan updates during scheduled maintenance windows.