CVE-2021-20022: Arbitrary File Upload in SonicWall Email Security 10.0.9.x
- Vendor
- Sonicwall
CVE-2021-20022 is a post-authentication arbitrary file upload vulnerability in SonicWall Email Security version 10.0.9.x. A previously authenticated attacker can exploit the flaw to upload attacker-controlled files to the target host. Reporting on observed intrusions indicates the vulnerability was used to place a web shell on a SonicWall Email Security server, after which the attacker obtained command execution in the context of the application and inherited NT AUTHORITY\SYSTEM privileges on the underlying Windows host. This enabled follow-on post-exploitation activity including credential dumping, log clearing, data staging, and lateral movement.
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 allows an authenticated attacker to write arbitrary files to the remote system, which can be leveraged to deploy a web shell or other malicious payloads. In observed compromises, this led to command execution with SYSTEM-level privileges, credential access through registry hive export and process memory dumping, access to archived email data, defense evasion through log clearing, and lateral movement to other hosts. The practical impact is full compromise of the affected appliance or server and potentially broader compromise of the surrounding Windows domain environment.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, restrict access to SonicWall Email Security administrative interfaces to trusted management networks and accounts only, minimize the number of users with valid administrative access, enforce strong authentication and MFA where supported, and closely monitor the appliance or host for anomalous child processes spawned by the Tomcat web server, suspicious file creation indicative of web shells, unexpected modifications to application directories, and signs of credential dumping or registry hive export. Review Tomcat and SonicWall Email Security logs for malicious requests and investigate for post-exploitation artifacts before returning affected systems to service.
Remediation
Patch, then assume compromise.
Upgrade SonicWall Email Security to a fixed release. Recommended fixed versions are 10.0.9.6173 for Windows deployments and 10.0.9.6177 for Hardware and ESXi deployments. Hosted Email Security customers were automatically updated and did not require customer action. Apply the vendor hotfix or later patched release across all affected 10.0.9.x installations and verify that no unauthorized files or web shells remain on the system after patching.
Exploits
No public exploits tracked yet. Mallory keeps watching.
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.
References
Frequently asked questions
- Is CVE-2021-20022 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 Nov 3, 2021.
- Is there a public exploit for CVE-2021-20022?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2021-20022.
- Is there a patch for CVE-2021-20022?
- Upgrade SonicWall Email Security to a fixed release. Recommended fixed versions are 10.0.9.6173 for Windows deployments and 10.0.9.6177 for Hardware and ESXi deployments.
- What products are affected by CVE-2021-20022?
- Sonicwall Email Security, Sonicwall Email Security Appliance 3300 Firmware, Sonicwall Email Security Appliance 4300 Firmware, Sonicwall Email Security Appliance 5000 Firmware, Sonicwall Email Security Appliance 5050 Firmware, and 6 more.
- How severe is CVE-2021-20022?
- CVE-2021-20022 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 16.6% (97th percentile) as of Oct 16, 2026.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.