CVE-2021-20022 lets an attacker who is logged in to SonicWall Email Security 10.0.9 or earlier upload an arbitrary file to the server. Combined with the admin-account flaw CVE-2021-20021 it gave attackers code execution in a 2021 zero-day campaign. Install hotfix 10.0.9.6105 on appliances or 10.0.9.6103 on Windows; hosted customers were patched by SonicWall.
Vulnerability summary
CVSS base score
7.2
High severity
EPSS score (FIRST)
16.6%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
Yes
Listed as known exploited
Published
Vulnerability ID: CVE-2021-20022 · Source: NVD (Primary CVSS v3.1)
Affected components
| Component | CPE | Version range |
|---|---|---|
| SonicWall Email Security (on-premise, Windows installation) | cpe:2.3:a:sonicwall:email_security:*:*:*:*:*:*:*:* | 10.0.9 and earlier; fixed in hotfix 10.0.9.6103 (SonicWall PSIRT); NVD CPE: before 10.0.9.6103 |
| SonicWall Email Security appliances (ES 3300, 4300, 5000, 5050, 7000, 7050, 8300, 9000) and Email Security virtual appliance | cpe:2.3:o:sonicwall:email_security_appliance_9000_firmware:*:*:*:*:*:*:*:* | 10.0.9 and earlier; fixed in hotfix 10.0.9.6105 (SonicWall PSIRT); NVD CPEs: firmware before 10.0.9.6105 |
| SonicWall Hosted Email Security (HES) | cpe:2.3:a:sonicwall:hosted_email_security:*:*:*:*:*:*:*:* | 10.0.9 and earlier; SonicWall upgraded HES to 10.0.9.6103 automatically, no customer action |
What does this mean for affected devices?
SonicWall's advisory SNWLID-2021-0008 (2021-04-09) describes a post-authentication arbitrary file creation flaw in SonicWall Email Security (ES) 10.0.9.x. SonicWall rates it medium, CVSS v3.0 6.7 (CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:H), CWE-434. NVD's Primary score is CVSS v3.1 7.2 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 7.5; NVD lists CWE-434 as well (NVD, CVE record). High privileges are required, which is why the score sits below that of its partner flaw.
Which SonicWall products and versions are affected?
The same set as CVE-2021-20021: on-premise Email Security and Hosted Email Security (HES) 10.0.9 and earlier. NVD's CPE configuration covers the ES 3300, 4300, 5000, 5050, 7000, 7050, 8300 and 9000 appliance firmware and the ES virtual appliance before 10.0.9.6105, and the Windows software and HES before 10.0.9.6103.
What is the fix?
Per SonicWall: Windows installations upgrade to 10.0.9.6103 and appliances to 10.0.9.6105 from MySonicWall; HES was upgraded automatically; there is no workaround. Mandiant and SonicWall advise 10.0.9.6173 (Windows) or 10.0.9.6177 (hardware and ESXi virtual appliances), which also fix the file-read flaw CVE-2021-20023. An attacker who holds an admin session can use this flaw, so after patching review ES administrator accounts for ones you did not create.
Was it exploited?
Yes. Mandiant found it used in March 2021 after CVE-2021-20021 had given the attacker an admin account, to place a web shell on a fully updated ES 10.0.9 install running on Windows. Mandiant reported it to SonicWall on 2021-03-26; the hotfix shipped on 2021-04-09. CISA added it to the KEV catalog on 2021-11-03 with the required action "Apply updates per vendor instructions." (due date 2021-11-17) and lists known ransomware campaign use as Known; it is still listed in catalog version 2026.11.25 as of 2026-11-26 (CISA KEV). FIRST EPSS gives 0.16639, the 97.63rd percentile, in the 2026-11-25 dataset (FIRST EPSS). See KEV and EPSS prioritization and, for keeping admin consoles off the internet, CISA BOD 23-02. A comparable mail-gateway case is the Barracuda ESG flaw CVE-2023-2868.
Evidence
- NVD: Analyzed; SonicWall Email Security 10.0.9.x, post-authenticated arbitrary file upload; NVD Primary CVSS v3.1 7.2 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H, CVSS v2 7.5; CWE-434 (NVD and SonicWall); CPEs as CVE-2021-20021 (before 10.0.9.6103 / 10.0.9.6105); published 2021-04-09; read 2026-11-26. — NVD
- SonicWall SNWLID-2021-0008 (2021-04-09): post-authentication arbitrary file creation; medium, CVSS 3.0 6.7 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:L/A:H; CWE-434; ES and HES 10.0.9 and earlier; HES auto 10.0.9.6103; Windows 10.0.9.6103, appliances 10.0.9.6105; no workaround; credits Mandiant. — SonicWall PSIRT
- Mandiant 2021-04-20: CVE-2021-20022 rated 7.2, post-authentication arbitrary file upload; chain with CVE-2021-20021/-20023; web shell served by the bundled web server on a Windows Server 2012 ES install at the latest version 10.0.9; reported 2021-03-26, hotfix 2021-04-09; 10.0.9.6173 / 10.0.9.6177 mitigate all three. — Mandiant (Google Cloud blog)
- CVE record: PUBLISHED, CNA SonicWall, 2021-04-09; Email Security 10.0.9 and earlier. — CVE.org
- KEV catalog 2026.11.25: dateAdded 2021-11-03, due 2021-11-17, 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Known, CWE-434; checked 2026-11-26. — CISA KEV
- EPSS 0.16639, percentile 0.97633, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
Which versions fix CVE-2021-20022?
SonicWall Email Security hotfix 10.0.9.6103 for Windows and 10.0.9.6105 for hardware and virtual appliances; Hosted Email Security was upgraded by SonicWall. 10.0.9.6173 (Windows) and 10.0.9.6177 (appliances) fix all three flaws of the 2021 chain (per SonicWall SNWLID-2021-0008 and Mandiant).
Why does SonicWall rate CVE-2021-20022 medium while CISA lists it as exploited?
The upload needs an authenticated, highly privileged session, so SonicWall scores it CVSS v3.0 6.7 and NVD 7.2. In the 2021 attacks CVE-2021-20021 supplied that admin session, which turned the upload into code execution (per SonicWall, NVD and Mandiant).
Is CVE-2021-20022 still on the CISA KEV list?
Yes. CISA added it on 2021-11-03 with a due date of 2021-11-17 and known ransomware campaign use marked Known; it is in catalog version 2026.11.25 as of 2026-11-26. FIRST EPSS gives 0.16639 in the 2026-11-25 dataset (per CISA KEV and FIRST EPSS).
Does CVE-2021-20022 affect SonicWall Hosted Email Security?
Yes, Hosted Email Security 10.0.9 and earlier was affected. SonicWall upgraded HES to hotfix 10.0.9.6103 itself, so hosted customers had nothing to install (per SonicWall SNWLID-2021-0008).
Questions about this page?