How CVE-2026-73570 turns a Zimbra log file into remote code execution
CVE-2026-73570 is an unauthenticated command injection in Zimbra Collaboration via malformed SMTP RCPT TO, yielding RCE as the zimbra user; patch to 10.1.20+. An attacker sends a malformed SMTP RCPT TO with an unclosed angle bracket containing a forged service status change string. Postfix logs it to /var/log/zimbra.log. Swatchdog matches the pattern and passes the attacker-controlled service name to /bin/sh through Perl backticks in the dosnmp function, achieving RCE as the zimbra user. The zimbra account reads all mailboxes and can send as any local identity.
Authors: Eric Forte
Source:Elastic Security Labs
Detection / HunterZ.ai
Immediate Actions
- Upgrade Zimbra Collaboration to version 10.1.20 or later immediately
- Enable Elastic Defend and activate the Zimbra Swatchdog SNMP Command Injection Execution rule
- Restrict SMTP port 25 access to trusted networks if patching is delayed
- Hunt retroactively for shell processes spawned by Swatchdog Perl parent
Key Takeaways
- Vulnerability patched in Zimbra 10.1.20; versions prior are vulnerable.
- Swatchdog daemon passes attacker-controlled service name to /bin/sh via Perl backticks in dosnmp function.
- Several public PoCs fail because their payload format never matches Swatchdog's service status pattern.
- Exploitation requires only a single malformed SMTP RCPT TO with an unclosed angle bracket.
- Elastic published an EQL detection rule correlating shell spawns from Swatchdog Perl parent processes.
Attack Chain
- Initial Access: Attacker sends malformed SMTP RCPT TO with unclosed angle bracket to Zimbra Postfix on port 25
- Delivery: Postfix logs the malformed address to /var/log/zimbra.log
- Trigger: Swatchdog matches the forged service status change pattern in the log entry
- Execution: Swatchdog's Perl dosnmp function passes attacker-controlled service name to /bin/sh via backticks
- Impact: Arbitrary code executes as zimbra user with access to all mailboxes and local identities
- Post-Exploitation: Attacker impersonates local email identities to send phishing to partner organizations
Affected Systems
- Zimbra Collaboration < 10.1.20
- Zimbra 10.1.16 BETA on Ubuntu 24
- Linux mail servers running Postfix and Swatchdog
Vulnerabilities (CVEs)
| CVE | Product | Severity | Description |
|---|---|---|---|
| CVE-2026-73570 | Zimbra Collaboration (Swatchdog/SNMP log-injection) | Critical | Unauthenticated command injection via malformed SMTP recipient address logged and parsed by Swatchdog. |
Detection Availability
- Published: EQL
- Platforms: Elastic Security, GitHub (elastic/detection-rules PR #6933)
EQL sequence rule detects shell subprocesses from Swatchdog Perl parent that are not snmptrap. Available in Elastic detection-rules repo.
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Shell processes (sh, bash, dash) spawned by a Perl parent with swatchdog_script in command line that are not snmptrap indicate CVE-2026-73570 exploitation (T1059.004). | Linux auditd execve events | Execution | Low — only snmptrap should execute under Swatchdog |
| SMTP RCPT TO entries in Postfix logs containing 'Service status change' string indicate injection attempts targeting Swatchdog pattern matching (T1190). | Postfix log files | Initial Access | Low — service status strings are not normal in RCPT TO |
| Outbound HTTP connections from the zimbra user to non-corporate IPs following SMTP delivery indicate OOB callback from injected payload (T1059.004). | Network firewall logs | Command and Control | Medium — zimbra user may make legitimate outbound connections |
Required Log Sources
- Sysmon Event ID 1 (process creation)
- Linux auditd execve events
- SMTP/mail gateway logs
- Postfix log files
- Elastic Defend process events
Control Gaps
- Malformed SMTP RCPT TO with unclosed angle bracket bypasses input validation and reaches log file
- Swatchdog passes unsanitized log content to shell execution via Perl backticks
- Several public PoCs produce payloads that Swatchdog never matches, causing false negatives in testing
Recommendations
Infrastructure Hardening
- Disable SNMP notifications in Swatchdog if not required for operations
- Monitor /var/log/zimbra.log for 'Service status change' strings in SMTP entries
- Block outbound connections from zimbra user to non-corporate destinations
User Protection
- Inspect mailboxes on compromised Zimbra servers for phishing sent from local identities
- Rotate credentials and signing keys on compromised Zimbra servers
- Alert partner organizations if phishing originated from compromised server
MITRE ATT&CK Mapping
- cveCVE-2026-73570Unauthenticated command injection via malformed SMTP recipient address logged and parsed by Swatchdog.
Related
- Every Endpoint Now Runs Node: How AI Tools Multiplied an Unmanaged Runtime·3
- Barracuda Networks is your new best friend (Barracuda Email Security Gateway Pre-Auth Remote Root RCE CVE-2026-116606 / CVE-2026-111560)·3
- php2shell: Assessing Elastic detection coverage relevant to CVE-2026-109618 and CVE-2026-109619·3