CVE-2022-41352
Synacor Zimbra Collaboration Suite (ZCS) Arbitrary File Upload Vulnerability
Description
CVE-2022-41352 is a critical path traversal vulnerability in Zimbra Collaboration Suite (ZCS) 8.8.15 and 9.0 that allows an unauthenticated attacker to upload arbitrary files and gain access to other user accounts. The flaw exploits a cpio loophole in amavis, the mail content filter: an attacker sends an archive whose extraction escapes into /opt/zimbra/jetty/webapps/zimbra/public, placing attacker-controlled files in a web-accessible directory. Zimbra recommends pax over cpio, and once pax is installed amavis automatically prefers it — but pax is no longer part of a default Red Hat installation after RHEL 6 or CentOS 6, which is why so many deployments were exposed. CVE-2022-41352 carries a CVSS score of 9.8, an EPSS score of roughly 95% at the 99th percentile, public exploit code, and a confirmed ransomware association in the CISA Known Exploited Vulnerabilities (KEV) catalog.
KEV Information
CVSS Score
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HOpen in CalculatorAffected Products
| Vendor | Product | Version |
|---|---|---|
| synacor | zimbra collaboration suite | 9.0.0; 8.8.15 |
Multiple CVSS Assessments
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- http://packetstormsecurity.com/files/169458/Zimbra-Collaboration-Suite-TAR-Path-Traversal.html(Exploit, Third Party Advisory, VDB Entry)
- https://forums.zimbra.org/viewtopic.php?t=71153&p=306532(Mitigation, Vendor Advisory)
- https://wiki.zimbra.com/wiki/Security_Center(Patch, Release Notes, Vendor Advisory)
- https://wiki.zimbra.com/wiki/Zimbra_Security_Advisories(Vendor Advisory)
- https://www.secpod.com/blog/unpatched-rce-bug-in-zimbra-collaboration-suite-exploited-in-wild/(Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-41352(US Government Resource)
Weakness Type
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Path traversal occurs when software builds a pathname from external input intended to stay beneath a restricted parent directory, but fails to neutralise special elements such as .. and / that let the resolved path escape it. In CVE-2022-41352 the traversal happens during archive extraction: cpio honours path components stored inside the archive, so a crafted attachment extracts to a location of the attacker's choosing rather than to the quarantine area amavis intends.
Learn more: CWE-22 — Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Impact Analysis
CVE-2022-41352 is remotely exploitable over the network with low attack complexity, no authentication and no user interaction — the attack arrives as an email attachment, so it reaches the server the same way legitimate mail does and no exposed administrative interface is needed. The impact is high across confidentiality, integrity and availability: writing a file into /opt/zimbra/jetty/webapps/zimbra/public places attacker-controlled content in a directory the web server serves, which is the classic route to a web shell and thence to incorrect access to any other user's account, the full mail store, and the server itself. For a mail platform that means every mailbox, attachment and archived message is exposed, and mail flow can be tampered with or stopped. CISA has confirmed this vulnerability is used in ransomware campaigns, and with an EPSS score of approximately 95% — the 99th percentile, effectively the ceiling — exploitation is not merely likely but continuous against any reachable unpatched server.
Exploit Maturity
CVE-2022-41352 is about as fully exploited as a vulnerability can be. CISA has confirmed active exploitation and flags it as known to be used in ransomware campaigns, the KEV catalog's most serious classification. Public exploit code is available via Packet Storm Security's Zimbra Collaboration Suite TAR Path Traversal entry, tagged as an exploit reference, and SecPod published analysis of the unpatched RCE bug in Zimbra Collaboration Suite exploited in the wild while the flaw was still a zero-day. Zimbra's own forum post documents the pax mitigation. The EPSS score of roughly 95%, in the 99th percentile, is near the maximum the model assigns and means exploitation attempts against any reachable unpatched Zimbra server are effectively constant. No unpatched instance exposed since 2022 can reasonably be assumed uncompromised.
Remediation
- Follow the CISA KEV required action immediately. Apply mitigations in accordance with Zimbra's instructions, comply with CISA's BOD 26-04 "Prioritizing Security Updates Based on Risk" guidance and the "Forensics Triage Requirements", and discontinue use of the product if mitigations are unavailable. The KEV due date of 10 November 2022 expired years ago and the entry is flagged for known ransomware use.
- Update Zimbra Collaboration Suite via the Zimbra Security Center. Versions 8.8.15 and 9.0 are affected; apply the patch level that addresses this issue and, given the age of the vulnerability, move the deployment onto a currently supported release rather than only applying the historical fix.
- Install
paxon the server. This is the vendor's own documented mitigation: Zimbra recommendspaxovercpio, and oncepaxis installed amavis automatically prefers it, closing the extraction loophole. On Red Hat and CentOS systems after version 6,paxis not present by default — installing it is a fast and effective control while patching is arranged, and its absence is precisely why so many installations were vulnerable. - Assume compromise and hunt for web shells. Because exploitation writes files into a web-accessible directory, inspect
/opt/zimbra/jetty/webapps/zimbra/publicand the surrounding webapp directories for JSP files and other content nobody deployed, compare against a known-good installation, review mail and web server logs for the delivering message and subsequent requests to the dropped file, and check for new administrative accounts, mail forwarding rules and filters. - Rotate credentials, restore integrity and harden long term. Reset all Zimbra user and administrative passwords and rotate LDAP, database and integration credentials, since account access was the documented consequence; verify that offline, restorable backups exist given the confirmed ransomware use; then keep Zimbra on a supported release with prompt patching, and as the general defence against archive traversal, extract untrusted archives only with tools that refuse absolute and
..paths, into a dedicated location outside any web root.
Technical Details
CVE-2022-41352 is a path traversal flaw (CWE-22) in the interaction between Zimbra's amavis content filter and the cpio archive utility. When amavis inspects an incoming mail attachment it extracts archives to examine their contents; with cpio as the extraction tool, path components recorded inside the archive are honoured during extraction, so an archive crafted to contain traversal sequences writes its members outside the intended extraction directory. The documented target is /opt/zimbra/jetty/webapps/zimbra/public — a directory served by the Zimbra web application — which converts an arbitrary file write into web-accessible attacker-controlled content and, from there, into incorrect access to any other user account. The CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H records an unauthenticated, low-complexity network attack with no user interaction and complete impact on confidentiality, integrity and availability at unchanged scope. The distinguishing detail is that the fix is partly environmental: because amavis prefers pax when it is available and pax handles archive paths safely, simply installing that package removes the vulnerable extraction path — which is why the presence or absence of a default package on the underlying distribution determined whether a given Zimbra server was exploitable.
Frequently Asked Questions
Is CVE-2022-41352 being actively exploited?
Yes, extensively, and CISA has confirmed its use in ransomware campaigns — the KEV ransomware flag is set to "Known". Public exploit code has been available since 2022 and the vulnerability was exploited as a zero-day before a patch existed; its EPSS score of about 95% sits in the 99th percentile, near the maximum.
What products are affected by CVE-2022-41352?
Zimbra Collaboration Suite (ZCS) 8.8.15 and 9.0 are affected. Practical exposure depends on the underlying operating system: the flaw requires amavis to use cpio for extraction, which happens when pax is not installed — the default on Red Hat and CentOS after version 6, while pax is a prerequisite of Zimbra on Ubuntu.
How do I fix CVE-2022-41352?
Update Zimbra Collaboration Suite through the Zimbra Security Center, preferably onto a currently supported release given the age of this flaw, and install the pax package, which amavis automatically prefers over cpio and which closes the extraction loophole. Then hunt /opt/zimbra/jetty/webapps/zimbra/public for web shells and rotate all user and administrative credentials.
How severe is CVE-2022-41352?
It is Critical, with a CVSS 3.1 base score of 9.8. The vulnerability is unauthenticated, exploitable by sending an email attachment with no user interaction, and lets an attacker write files into a web-accessible directory and thereby access any user account, with full confidentiality, integrity and availability impact; with public exploits, an EPSS score in the 99th percentile and confirmed ransomware use, it is among the most dangerous vulnerabilities still found unpatched.
Need Help With Vulnerability Management?
Our security experts can help you prioritize and remediate vulnerabilities effectively.