Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-27925: Zimbra Collaboration mboximport ZIP Path Traversal Leading to Remote Code Execution

Published Apr 20, 2022 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.2High · v3.1
EPSS98.7%100th percentile
CISA KEVYesAdded Aug 11, 2022
In the wildActivePer CISA KEV
Vendor
Zimbra
IdentifiersCVE-2022-27925CWE-22 · Improper Limitation of a Pathname…

CVE-2022-27925 is a directory-traversal vulnerability in the mboximport functionality of Zimbra Collaboration Suite 8.8.15 and 9.0. Improper validation of paths during ZIP archive extraction allows an authenticated administrator to upload files outside the intended extraction directory. An attacker can use this arbitrary file-write capability to deploy a JSP web shell and achieve remote code execution. When chained with the separate authentication-bypass vulnerability CVE-2022-37042, exploitation does not require credentials. The vulnerability chain has been widely exploited against internet-facing Zimbra servers.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation compromises server integrity through arbitrary file placement and can expose organizational email, credentials, and other data accessible to the Zimbra service. Deploying a web shell enables remote command execution and persistent access, potentially supporting further malware deployment and lateral movement. The vulnerability does not by itself establish root-level privileges.

Mitigation

If you can’t patch tonight, do this now.

Restrict access to Zimbra administrative and import functionality to trusted users, devices, and management networks; remove unnecessary internet exposure and apply network segmentation. Monitor import requests carrying ZIP archives, unexpected JSP creation, deviations from a baseline of legitimate web application files, and suspicious command execution by Zimbra processes. Use exploit-detection signatures and web-shell hunting rules. Authentication controls alone do not prevent exploitation when CVE-2022-37042 is also present.

Remediation

Patch, then assume compromise.

Upgrade Zimbra Collaboration Suite to a current, vendor-supported release with fixes for both CVE-2022-27925 and CVE-2022-37042. For internet-exposed installations that remained unpatched, investigate for prior compromise rather than treating patching alone as sufficient. Review unexpected executable web content, processes, services, authentications, and network connections. Isolate and reimage compromised hosts and replace exposed account credentials.

Public exploits

Exploits

8 exploits validated by Mallory's analysis.

View more in app →
zimbra_mboximport_cve_2022_27925.rbThis repository contains a single Metasploit module targeting a ZIP path traversal vulnerability (CVE-2022-27925) in Zimbra Collaboration Suite Network Edition (versions 9.0.0 Patch 23 and earlier, and 8.8.15 Patch 30 and earlier). The exploit works by crafting a ZIP file with path traversal sequences to upload a JSP-based backdoor into the Zimbra admin web directory. The module then triggers the backdoor to achieve remote code execution, typically using a Meterpreter reverse shell payload. The exploit requires access to the Zimbra admin interface (default port 7071, HTTPS) and a valid username (default: admin). The code is written in Ruby and is structured as a standard Metasploit module, making it weaponized and easily customizable. Key endpoints include the vulnerable ZIP upload handler and the web-accessible directory where the backdoor is placed. The module also references related advisories and patches, and is intended for use against Linux-based Zimbra installations.Disclosed May 10, 2022 · Framework: metasploit · ruby · networkWeaponizedZimbra_CVE-2022-37042-_CVE-2022-27925This repository contains a proof-of-concept exploit for Zimbra Collaboration Suite vulnerabilities CVE-2022-37042 and CVE-2022-27925. The main file, poc.py, is a Python script that crafts a malicious ZIP archive containing a JSP web shell and uploads it to a vulnerable Zimbra server via the /service/extension/backup/mboximport endpoint. Once uploaded, the shell can be accessed at /zimbraAdmin/shell.jsp, allowing the attacker to execute arbitrary commands on the server. The exploit demonstrates remote code execution by uploading the shell and issuing a 'whoami' command. The repository structure is simple, consisting of a README and the exploit script. The exploit is operational, providing a working payload (JSP web shell) and targeting Zimbra servers accessible over the network.GreyNoise-Intelligence · Disclosed Aug 18, 2022 · python · networkOperationalCVE-2022-27925This repository contains a Python exploit (exploit.py) targeting CVE-2022-27925 and CVE-2022-37042 in Zimbra Collaboration Suite Network Edition. The exploit leverages a path traversal vulnerability in the mboximport endpoint, combined with an authentication bypass, to upload a JSP webshell to the Zimbra server. The attacker can then interact with the webshell to execute arbitrary commands on the server. The exploit supports both single-target and multi-target modes, reading targets from a file. The README provides detailed background on the vulnerabilities, affected versions, and usage instructions. The main exploit logic is in exploit.py, which constructs a malicious ZIP file containing the webshell, uploads it via the vulnerable endpoint, and verifies successful exploitation by accessing the deployed webshell. The exploit is operational and provides remote command execution as the Zimbra user, with the potential for privilege escalation to root using a separate local exploit. No detection-only scripts are present; the code is a working exploit. The only code file is exploit.py, written in Python, and the repository is structured with standard supporting files (.gitignore, LICENSE, README.md). The main attack vector is network-based, targeting HTTPS endpoints exposed by vulnerable Zimbra servers.Josexv1 · Disclosed Aug 20, 2022 · python · networkOperationalCVE-2022-27925-RevshellThis repository contains a Python exploit script (exp.py) targeting Zimbra Collaboration Suite servers vulnerable to CVE-2022-27925, an unauthenticated remote code execution flaw. The exploit works by crafting a malicious ZIP file containing a JSP webshell or reverse shell, which is uploaded to the server via a vulnerable mboximport endpoint. The script supports both single-target and mass exploitation modes, and can deploy either a webshell (for arbitrary command execution via HTTP) or a reverse shell (connecting back to the attacker's machine). The README provides usage instructions and describes the required parameters. The main code file is exp.py, which handles argument parsing, payload generation, exploitation logic, and result verification. The exploit is operational and provides real remote code execution if the target is vulnerable.Chocapikk · Disclosed Aug 26, 2022 · python · networkOperationalCVE-2022-27925This repository contains a Nuclei template (CVE-2022-27925.yaml) for exploiting CVE-2022-27925, a critical unauthenticated remote code execution vulnerability in Zimbra Collaboration Suite (ZCS) versions 8.8.15 and 9.0. The template sends a crafted POST request to the /service/extension/backup/mboximport endpoint, uploading a ZIP archive that leverages directory traversal to place a JSP webshell (cmd.jsp) in the webapps directory. The template then issues a GET request to the webshell, executing a command (e.g., 'cat /etc/passwd') and checks for evidence of successful command execution. The repository structure is minimal, consisting of the Nuclei YAML template and a brief README. The main exploit file is the YAML template, which automates the exploitation process and verification of successful code execution. No hardcoded IPs or domains are present; the template is parameterized for use against arbitrary targets.akincibor · Disclosed Sep 12, 2022 · Framework: nuclei · yaml · networkOperationalCVE-2022-27925This repository is a small Python-based exploit for CVE-2022-27925 affecting Zimbra Collaboration Suite Network Edition. It contains three files: LICENSE, README.md, and a single executable script, main.py. The README identifies the target product and vulnerable versions, gives a search dork for finding exposed Zimbra login pages, and shows usage as 'python3 main.py <list.txt> <output> <command>'. The main exploit logic is entirely in main.py. It is not just a detector: it attempts full remote code execution. The script reads a list of target base URLs, spawns a thread per target, and for each host builds an in-memory ZIP archive containing a randomly named JSP payload. That payload is a web shell which accepts a 'cmd' parameter and executes it with '/bin/sh -c', returning stdout and stderr to the HTTP response. Exploitation works by abusing the Zimbra backup import extension endpoint '/service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1'. The ZIP entry name is crafted with path traversal sequences to try writing the JSP into one of three candidate admin webapp directories: '../../../../mailboxd/webapps/zimbraAdmin/', '../../../../jetty_base/webapps/zimbraAdmin/', and '../../../../jetty/webapps/zimbraAdmin/'. After upload, the script requests '/zimbraAdmin/<random>.jsp?cmd=<command>' to trigger the shell. If the response returns HTTP 200, it reports success and appends the host to the specified output file. Operationally, this is a basic but functional exploit with a hardcoded JSP payload and operator-supplied command execution. It lacks robust error handling and verification beyond checking for HTTP 200, but its purpose is clear: mass exploitation of vulnerable Zimbra servers for arbitrary command execution via uploaded JSP web shells.sh4den · Disclosed Oct 1, 2022 · Framework: other · python · markdown · web · networkOperationalCVE-2022-27925This repository contains a Python exploit for CVE-2022-27925, a remote code execution vulnerability in Zimbra Collaboration Suite Network Edition (versions 9.0.0 Patch 23 and earlier, and 8.8.15 Patch 30 and earlier). The exploit works by uploading a malicious JSP webshell to the Zimbra server using a crafted ZIP archive and a vulnerable import endpoint. The main exploit logic is in 'main.py', which reads a list of target servers, attempts to upload the webshell to several possible directories using path traversal, and then accesses the webshell to execute arbitrary commands provided by the user. The payload is a JSP webshell that executes system commands via the 'cmd' parameter. The attack is performed over HTTP/HTTPS and targets the '/service/extension/backup/mboximport' endpoint for the upload, and '/zimbraAdmin/<random>.jsp' for command execution. The repository is operational and provides a working exploit with a hardcoded payload. The structure is simple, with a single code file, a README with usage instructions, and a license.SystemVll · Disclosed Oct 1, 2022 · python · networkOperationalCVE-2022-27925-PoCThis repository is a proof-of-concept exploit for CVE-2022-27925, a remote code execution vulnerability in Zimbra Collaboration Suite. The main file, 'zimbra-exploit.py', is a Python script that attempts to upload a malicious ZIP file (containing a JSP web shell) to a vulnerable Zimbra server via the '/service/extension/backup/mboximport' endpoint. The script requires the attacker to provide the target URL and a valid email address as arguments. After uploading, it checks for the presence of the web shell at '/zimbraAdmin/cmd.jsp'. The repository consists of a README and the exploit script; the ZIP files referenced as payloads are expected to be present in the working directory. The exploit leverages network access to the Zimbra server and targets endpoints that are specific to the Zimbra backup import functionality.vnhacker1337 · Disclosed Aug 12, 2022 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
ZimbraZimbra Collaboration Suiteapplication
FAQ

Frequently asked questions

Is CVE-2022-27925 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 11, 2022.
Is there a public exploit for CVE-2022-27925?
Yes. Mallory tracks 8 public exploits or proofs of concept for CVE-2022-27925, the earliest disclosed May 10, 2022.
Is there a patch for CVE-2022-27925?
Upgrade Zimbra Collaboration Suite to a current, vendor-supported release with fixes for both CVE-2022-27925 and CVE-2022-37042. For internet-exposed installations that remained unpatched, investigate for prior compromise rather than treating patching alone as sufficient.
What products are affected by CVE-2022-27925?
Zimbra Collaboration Suite.
How severe is CVE-2022-27925?
CVE-2022-27925 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 98.7% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+15 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence8Every report linking this CVE to a named adversary.
Associated malware22Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.