Skip to content
RCE Write-up Intermediate

**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.

Ajay Naik Follow

Published on infosecwriteups.com

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…

Ajay Naik, on infosecwriteups.com

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

  1. Connect to the SMTP service on port 25 and greet it.
  2. Send a sender address and a recipient address containing a command substitution.
  3. Send the message body and end the data with a lone dot.
  4. 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.

More by Ajay Naik

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.