Zimbra CVE-2026-73570: detecting attacks on mail servers
A Zimbra flaw lets attackers run commands on a mail server without logging in. Who is affected, what to check in the logs and how Elastic detects it.
CVE-2026-73570 is a vulnerability in Zimbra Collaboration that lets an attacker run operating system commands on the mail server, without logging in, with the privileges of the zimbra user. A specially crafted SMTP session is all it takes. Versions before 10.1.20 are vulnerable if SNMP notifications are enabled on the server. CERT Polska warned on 17 August 2026 that the vulnerability was being actively exploited, and in September Microsoft described intrusions that used it as the first step.
Below we explain how to check whether your server is vulnerable, what to look for in the logs and how SIEM on Elastic Security detects the attack. As of 1 December 2026.
How the attack works
Zimbra uses Postfix as its SMTP server and writes its messages to /var/log/zimbra.log. The swatchdog service reads the same file, looks for entries about service status changes and, when SNMP notifications are enabled, sends an SNMP trap with the service name.
The attacker sends a RCPT TO command with a deliberately malformed address. Postfix rejects the address but writes it to the log as a warning. The address text is crafted so that swatchdog takes it for a service status message and inserts part of it into a shell command. The attacker’s command then runs as the zimbra user.
The attack needs four conditions:
- the optional
zimbra-snmppackage is installed, - SNMP notifications are enabled,
- the swatchdog service (
zmswatch) is running, - the SMTP server is reachable by the attacker, which in practice means any server that receives mail from the internet.
What the attacker can do
The zimbra user has access to every mailbox on the server and can send mail as any local user. Elastic points out that after such an intrusion you also need to check for phishing emails sent from the server and for databases and signing keys stored on it.
Microsoft described what attackers did once inside: they left JSP web shells and reverse shells, created a systemd service disguised as part of Zimbra, read configuration containing passwords and keys (zmlocalconfig -s, LDAP queries) and moved on using the zimbra user’s SSH key.
Is your server vulnerable
Check three things on every Zimbra server, including nodes that do not receive mail directly:
- The version:
zmcontrol -vas the zimbra user. Version 10.1.20 or later contains the fix. - Whether the
zimbra-snmppackage is installed (rpm -q zimbra-snmpordpkg -l zimbra-snmp, depending on the distribution). - Whether SNMP notifications are enabled:
zmprov gcf zimbraSnmpNotify.
The only complete fix is upgrading to version 10.1.20 or later. Zimbra has since also released 10.1.21 (24 September 2026). If the upgrade has to wait, Microsoft recommends uninstalling the zimbra-snmp package, disabling SNMP notifications and limiting SNMP access to trusted addresses.
A word of caution about public exploits. Elastic tested several of them, and some write text to the log that swatchdog never matches. A failed test with such a tool does not mean the server is safe. Version and configuration decide whether it is vulnerable.
What to look for in the logs
CERT Polska recommends two checks:
- entries in
/var/log/zimbra.login the formService status change: <text> changed from stopped to running(or the other way round) where unusual text, such as shell characters, appears instead of a service name, - files created in the last 30 days by the zimbra user in
/opt/zimbra/jetty/webapps/,/opt/zimbra/jetty_base/webapps/and/tmp/.
If your Zimbra logs go to Elastic (for example through Elastic Agent, see our article on Elastic Agent and Fleet), you can run the first check with a single ES|QL query across all the history you keep:
FROM logs-*
| WHERE message LIKE "*Service status change*"
AND (message LIKE "*`*" OR message LIKE "*$(*" OR message LIKE "*;*" OR message LIKE "*|*")
| KEEP @timestamp, host.name, message
| SORT @timestamp DESC
Logs stored off the server are especially valuable here. An attacker with the zimbra user’s privileges can wipe the local log file, but cannot change the copy in Elasticsearch. We write more about keeping logs on our page about log management in Elasticsearch.
How Elastic Security detects it
On 1 October 2026 Elastic added a prebuilt rule, “Zimbra Swatchdog SNMP Command Injection Execution” (type: EQL event correlation, severity: critical). The rule works on Linux process events collected by Elastic Defend. It looks for a sequence on a single server within 30 seconds:
- A Perl process started by the swatchdog script launches a shell with the
snmptrapcommand and Zimbra service parameters. - That shell starts a process other than
snmptrap.
A legitimate notification ends with snmptrap. Any other child process means extra code made it into the command. In normal server operation this sequence should not occur.
The rule has a limitation that Elastic itself describes: it will not see a payload that runs entirely inside the shell without starting a new process. That is why Elastic recommends sending Zimbra and Postfix logs to Elastic as a second source. The query from the previous section then complements the rule.
You enable the rule like any other prebuilt Elastic Security rule, after updating the rules package. General guidance on choosing and tuning rules is in our article SIEM on Elastic Security: getting started with rules.
What to do after a detection
If the rule raises an alert or the logs contain suspicious entries, treat the server as compromised, even if it has already been upgraded. The upgrade closes the way in, but does not remove what the attacker left behind. Based on Elastic and Microsoft, check at least:
- new JSP files in the Jetty application directories,
- new systemd services, cron jobs and SSH keys of the zimbra user,
- outbound connections from the server (
curl,wget,openssl), - mail sent from the server during the possible intrusion,
- the other Zimbra servers in the same installation.
After such an incident, change the keys and passwords stored in the Zimbra configuration, because the attacker may have read them. If you find traces of exploitation, CERT Polska asks to be contacted.
Sources
- Zimbra: 10.1.20 release notes and security advisories
- CERT Polska: Aktywnie wykorzystywana podatność w Zimbra Collaboration Suite (in Polish, 17 August 2026)
- Microsoft Security Blog: Unauthenticated command injection on internet-facing mail servers (30 September 2026)
- Elastic Security Labs: How CVE-2026-73570 turns a Zimbra log file into remote code execution (23 October 2026)
- Elastic rule: execution_zimbra_swatchdog_snmp_command_injection