Skip to content
.ca
4 mincritical

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.

Sens:■ ImmediateConf:highAnalyzed:2026-11-05Z.ai

Authors: Eric Forte

Source:Elastic Security Labs

Indicators of Compromise1
1cve
Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

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

  1. Initial Access: Attacker sends malformed SMTP RCPT TO with unclosed angle bracket to Zimbra Postfix on port 25
  2. Delivery: Postfix logs the malformed address to /var/log/zimbra.log
  3. Trigger: Swatchdog matches the forged service status change pattern in the log entry
  4. Execution: Swatchdog's Perl dosnmp function passes attacker-controlled service name to /bin/sh via backticks
  5. Impact: Arbitrary code executes as zimbra user with access to all mailboxes and local identities
  6. 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)

copy:
CVEProductSeverityDescription
CVE-2026-73570Zimbra Collaboration (Swatchdog/SNMP log-injection)CriticalUnauthenticated 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

copy:
HypothesisTelemetryStageFP 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 eventsExecutionLow — 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 filesInitial AccessLow — 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 logsCommand and ControlMedium — 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

IOCs · 1
.txt.json
Showing defanged values
  • cve
    CVE-2026-73570Unauthenticated command injection via malformed SMTP recipient address logged and parsed by Swatchdog.