Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2022-41352: Unauthenticated remote code execution in Zimbra Collaboration Suite via Amavis archive extraction

Published Sep 26, 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.
CVSS9.8Critical · v3.1
EPSS95.5%100th percentile
CISA KEVYesAdded Oct 20, 2022
In the wildActivePer CISA KEV
Vendor
Zimbra
IdentifiersCVE-2022-41352CWE-22 · Improper Limitation of a Pathname…

CVE-2022-41352 affects Zimbra Collaboration Suite 8.8.15 and 9.0. When the pax utility is absent, the Amavis email antivirus pipeline falls back to cpio to extract untrusted attachments. Unsafe archive extraction permits attacker-controlled archive entries to write files outside the intended extraction directory, within filesystem locations writable by the Zimbra user. A remote unauthenticated attacker can trigger this behavior by sending an email containing a crafted CPIO, TAR, or RPM attachment. Writing a JSP web shell into a web-accessible directory enables remote code execution and can expose other users' accounts. Exploitation does not require recipient interaction.

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 permits arbitrary file writes with the permissions of the Zimbra user, deployment of web shells, remote execution of attacker-controlled code, and unauthorized access to other users' accounts. The vulnerability has been exploited for initial access in espionage and ransomware intrusions. Subsequent lateral movement and ransomware deployment depend on additional access and privileges obtained during the intrusion; exploitation itself does not establish root or domain-administrator privileges.

Mitigation

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

Install the pax utility and restart Zimbra services, or reboot, so Amavis uses pax instead of cpio for archive extraction. Amavis automatically prefers pax when it is installed. Increase monitoring of suspicious archive attachments, unexpected web-accessible files, and system and network activity. Conduct a proactive compromise assessment, recognizing that attackers may alter or delete Zimbra logs.

Remediation

Patch, then assume compromise.

Apply vendor updates addressing CVE-2022-41352. Zimbra Collaboration Suite 9.0.0 P27, released on October 10, 2022, is an identified patched release. For the 8.8.15 branch, apply the applicable vendor security update; an exact fixed release is not specified. Investigate previously exposed systems for compromise, because installing an update does not remove existing web shells or other attacker persistence.

Public exploits

Exploits

3 exploits validated by Mallory's analysis.

View more in app →
zimbra_cpio_cve_2022_41352.rbThis repository contains a single Metasploit module targeting CVE-2022-41352, a TAR path traversal vulnerability in Zimbra Collaboration Suite. The exploit abuses a flaw in the cpio utility (CVE-2015-1197) to plant a malicious JSP webshell in the Zimbra web root by sending a crafted .tar file as an email attachment to a user on the target server. The module generates the malicious archive, which, when processed by the vulnerable Zimbra server, results in the webshell being written to a publicly accessible directory (default: /opt/zimbra/jetty_base/webapps/zimbra/). The module can then trigger the webshell via HTTP, executing a payload (default: Meterpreter reverse shell). The exploit is operational and provides remote code execution on vulnerable Zimbra servers running on Linux without 'pax' installed. The code is written in Ruby and is structured as a standard Metasploit exploit module, with options for customizing the payload, target path, and filename.Disclosed Jun 28, 2022 · Framework: metasploit · ruby · networkWeaponizedcve-2022-41352-zimbra-rceThis repository contains a Python exploit script (cve-2022-41352.py) targeting CVE-2022-41352, an unauthenticated remote code execution vulnerability in Zimbra Collaboration Suite (versions <9.0.0.p27 and <8.8.15.p34) due to unsafe cpio handling. The exploit works by crafting a malicious tar archive containing a JSP webshell, attaching it to an email, and sending it to the target Zimbra server via SMTP. If the server is vulnerable, the attachment is extracted, and the webshell is written to the Zimbra web directory. The script then verifies the upload by accessing the webshell over HTTPS. Optionally, the script can use the webshell to create a new global administrator account on the Zimbra server. The repository includes a README.md with usage instructions and background information. The main attack vector is network-based, leveraging SMTP and HTTP(S) to deliver and interact with the payload. Key endpoints include the webshell URL and the file paths on the Zimbra server where the payload is written.Cr4ckC4t · Disclosed Nov 11, 2022 · python · networkOperationalcve-2022-41352This repository provides a proof-of-concept (PoC) exploit for CVE-2022-41352, a directory traversal vulnerability involving the cpio utility. The main file, cpio_pocgen.py, is a Python script that generates a crafted tar archive (poc.tar). This archive contains a symlink and a file such that, when extracted with cpio in a specific directory structure, it causes a file (here.txt) to be written outside the intended extraction directory, demonstrating the vulnerability. The README.md provides instructions for generating the PoC and reproducing the exploit. The repository is structured with a single code file (cpio_pocgen.py), a binary payload (poc.tar), a README, and a license. The exploit is local in nature, requiring the attacker to supply the crafted archive to a system that processes it with cpio.segfault-it · Disclosed Oct 10, 2022 · python · localPoC
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
ZimbraCollaborationapplication
ZimbraZimbra Collaboration Suiteapplication
FAQ

Frequently asked questions

Is CVE-2022-41352 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 Oct 20, 2022.
Is there a public exploit for CVE-2022-41352?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2022-41352, the earliest disclosed Jun 28, 2022.
Is there a patch for CVE-2022-41352?
Apply vendor updates addressing CVE-2022-41352. Zimbra Collaboration Suite 9.0.0 P27, released on October 10, 2022, is an identified patched release.
What products are affected by CVE-2022-41352?
Zimbra Collaboration and Zimbra Collaboration Suite.
How severe is CVE-2022-41352?
CVE-2022-41352 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 95.5% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

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

View more in app →
+5 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 evidence5Every report linking this CVE to a named adversary.
Associated malware2Malware families linked to this CVE, with evidence and IOCs.
Detection signatures9YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.