Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-45519-Zimbra-Real-Fix — Zimbra CVE-2024-45519 real fix - Official patch is incomplete | Kitploit
Tools/GitHubGitHub/lionels-cyber/cve-2024-45519-zimbra-real-fix
Defensive ToolsVulnerability AnalysisConfiguration AuditingLearning & EducationIncident ResponseEmail Security
GitHublionels-cyber/cve-2024-45519-zimbra-real-fix

CVE-2024-45519-Zimbra-Real-Fix

Zimbra CVE-2024-45519 real fix - Official patch is incomplete

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
525 days agoNot yet reviewed
Share

CVE-2024-45519-Zimbra-Real-Fix

Zimbra CVE-2024-45519 real fix - Official patch is incomplete

CVE-2024-45519 - Zimbra Real Fix

⚠️ Warning

CVE-2024-45519 is a critical RCE vulnerability (CVSS 9.8) in Zimbra Collaboration Suite. Many administrators think they are not protected after applying the official patch. This document clarifies the real situation.

The Vulnerability

CVE-2024-45519 allows unauthenticated remote command execution via the postjournal service on port 10027.

  • CVSS Score: 9.8 (Critical)
  • Affected versions: Zimbra 8.8.15, 9.0.0, 10.x before 10.0.9
  • Attack vector: Network, no authentication required

The Official Fix IS Sufficient

After investigation during an incident response, we can confirm that:

Applying patch p46/p47 + disabling postjournal is sufficient:

root@kitploit:~
zmlocalconfig -e postjournal_enabled=false
zmcontrol restart

The patch replaces the vulnerable popen() with execvp() in the postjournal binary, preventing command injection even when port 10027 is open.

⚠️ Do NOT close port 10027

Port 10027 is required for Zimbra mail flow. Closing it will break mail delivery:

root@kitploit:~
# DO NOT DO THIS - it will break your mail server!
# sed -i 's/^\[%%zimbraLocalBindAddress%%\]:10027 inet/#...' master.cf.in

Verification Test

Test that the vulnerability is patched:

root@kitploit:~
printf "EHLO probe.test\r\nMAIL FROM:<[email protected]>\r\nRCPT TO:<x: \$(echo TEST > /opt/zimbra/mailboxd/webapps/zimbra/public/test.txt)>\r\nQUIT\r\n" \
  | nc 127.0.0.1 25
# Expected: 555 5.5.4 Unsupported option OR 501 5.1.3 Bad recipient address syntax

# Verify file was NOT created:
ls /opt/zimbra/mailboxd/webapps/zimbra/public/test.txt
# Expected: No such file or directory = PATCHED ✅

Additional Hardening

root@kitploit:~
# Regenerate PreAuth Key
su - zimbra -c "zmprov generateDomainPreAuthKey -f yourdomain.com"

# Monitor for webshells every 5 minutes
cat > /root/check_webshell.sh << 'EOF'
#!/bin/bash
WEBDIR="/opt/zimbra/mailboxd/webapps/zimbra/public"
ALERT_EMAIL="[email protected]"
LOGFILE="/var/log/webshell_check.log"

if [ -f "$WEBDIR/version.txt" ]; then
    echo "$(date) - ALERT: version.txt detected!" >> $LOGFILE
    rm -f "$WEBDIR/version.txt"
    echo "SECURITY ALERT: version.txt detected on $(hostname)" | \
      /opt/zimbra/common/sbin/sendmail -f [email protected] $ALERT_EMAIL
fi

find "$WEBDIR" -maxdepth 1 -name "*.jsp" -newer "$WEBDIR/login.jsp" -type f | while read f; do
    echo "$(date) - ALERT: Suspicious JSP: $f" >> $LOGFILE
    rm -f "$f"
    echo "SECURITY ALERT: Suspicious file $f detected" | \
      /opt/zimbra/common/sbin/sendmail -f [email protected] $ALERT_EMAIL
done
EOF
chmod +x /root/check_webshell.sh
echo "*/5 * * * * root /root/check_webshell.sh" > /etc/cron.d/check_webshell

Affected Versions

VersionStatus
Zimbra 8.8.15 before p46Vulnerable
Zimbra 8.8.15 p46/p47Patched ✅
Zimbra 9.0.0 before p41Vulnerable
Zimbra 10.x before 10.0.9Vulnerable

Timeline

  • October 2024 - CVE-2024-45519 published
  • September 2024 - Zimbra releases patch p46
  • December 2024 - Zimbra releases patch p47
  • August 2026 - Incident response confirms patch is effective
  • August 2026 - Port 10027 must remain open for mail flow

References

  • ProjectDiscovery - Zimbra RCE Analysis
  • Zimbra Security Advisory
  • CVE-2024-45519 Details

Credits

Discovered during incident response by Lionel Sarrazin - CDH Informatique

Download Tool