**CVE-2024–45519 in Zimbra — Bounty $ 1000**
The postjournal service in Zimbra passed unsanitised SMTP input to a shell command, so an unauthenticated attacker could inject commands that ran as the zimbra user. The text claims this could lead to remote code execution and full system compromise.
info: name: Zimbra Collaboration Suite < 9.0.0 - Remote Code Execution author: pdresearch,iamnoooob,parthmalhotra,ice3man543 severity: critical description: | SMTP-based vulnerability in the PostJournal service of Zimbra Collaboration Suite that allows unauthenticated attackers to inject arbitrary commands. This…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely unsanitised SMTP input from the journaling process was passed to popen, allowing shell command injection.
Impact
An unauthenticated attacker could execute arbitrary commands as the zimbra user, potentially taking over the server, though the text notes that a misconfigured mynetworks setting is what exposes the service externally.
What the attacker needed
SMTP reachable on port 25; postjournal enabled; mynetworks misconfigured to allow attacker
The fix
Zimbra released patches that add input sanitisation and replace popen with execvp; administrators should update and restrict the postjournal service.
How it was found
- Connect to the SMTP service on port 25 and greet it.
- Send a sender address and a recipient address containing a command substitution.
- Send the message body and end the data with a lone dot.
- Watch for an out-of-band callback confirming the command ran.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Zimbra is an email server. Its journaling feature takes the address in an incoming email and hands it to a system command without cleaning it first. Because special characters in that address are treated as commands, someone who can send mail to the server can make it run their own commands.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.