Security Advisory

CVE-2021-20021: SonicWall Email Security Admin Takeover

Last updated:
  • CVE-2021-20021

CVE-2021-20021 lets an unauthenticated attacker create an administrator account on SonicWall Email Security 10.0.9 and earlier, the mail-filtering product sold as hardware and virtual appliances, a Windows install and a hosted service. It was exploited as a zero-day. 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

9.8

Critical severity

EPSS score (FIRST)

88.8%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-20021 · Source: NVD (Primary CVSS v3.1)

Affected components

ComponentCPEVersion 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 appliancecpe: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-0007 (2021-04-09) describes a pre-authentication flaw in SonicWall Email Security (ES) 10.0.9.x: a crafted HTTP request to the management interface creates an administrative account. SonicWall rates it critical, CVSS v3.0 9.4 (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H), CWE-269. NVD's Primary score is CVSS v3.1 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) and CVSS v2 7.5, also with CWE-269 (NVD, CVE record).

Which SonicWall products and versions are affected?

SonicWall lists on-premise Email Security 10.0.9 and earlier and Hosted Email Security (HES) 10.0.9 and earlier. NVD's CPE configuration names 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, hardware and virtual appliances to 10.0.9.6105, from MySonicWall; HES was upgraded automatically. SonicWall lists no workaround. Because the same campaign also used CVE-2021-20022 and CVE-2021-20023, the practical target is the later hotfix that closes all three: 10.0.9.6173 (Windows) or 10.0.9.6177 (appliances). Keep the ES admin interface off the internet; see CISA BOD 23-02 and internet-exposed management interfaces.

Was it exploited?

Yes. Mandiant (2021-04-20) found the three flaws used together in March 2021 against a fully updated ES 10.0.9 install, to gain admin access, run code and read stored mail. Mandiant reported this CVE 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.8878, the 99.85th percentile, in the 2026-11-25 dataset (FIRST EPSS). For ranking such entries, see KEV and EPSS prioritization. Other exploited SonicWall edge flaws: the SMA 100 SQL injection CVE-2021-20016 and the SonicOS access-control flaw CVE-2024-40766.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD: Analyzed; SonicWall Email Security 10.0.9.x, crafted HTTP request creates administrative account; NVD Primary CVSS v3.1 9.8 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, CVSS v2 7.5; CWE-269 (NVD Primary and SonicWall); CPEs: email_security and hosted_email_security before 10.0.9.6103, ES 3300/4300/5000/5050/7000/7050/8300/9000 firmware and virtual appliance before 10.0.9.6105; published 2021-04-09; read 2026-11-26. — NVD
  • SonicWall SNWLID-2021-0007 (2021-04-09): pre-authentication administrative account creation; critical, CVSS 3.0 9.4 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H; CWE-269; affected on-premise ES and HES 10.0.9 and earlier; HES auto-upgraded to 10.0.9.6103; Windows 10.0.9.6103, appliances 10.0.9.6105 via MySonicWall; no workaround; credits Mandiant. — SonicWall PSIRT
  • Mandiant 2021-04-20: three zero-days in SonicWall ES exploited in March 2021 together for admin access and code execution; victim ES 10.0.9 was the latest version; CVE-2021-20021 and -20022 reported 2021-03-26, hotfix 2021-04-09; all three mitigated by 10.0.9.6173 (Windows) / 10.0.9.6177 (hardware and ESXi virtual appliances); HES updated automatically. — 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, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Known, CWE-306 (KEV field); notes chain with CVE-2021-20022 and CVE-2021-20023; checked 2026-11-26. — CISA KEV
  • EPSS 0.8878, percentile 0.99852, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. SonicWall PSIRT SNWLID-2021-0007
  3. Mandiant: Zero-Day Exploits in SonicWall Email Security Lead to Enterprise Compromise
  4. CVE.org record CVE-2021-20021 (CNA: SonicWall)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which SonicWall Email Security versions fix CVE-2021-20021?

Hotfix 10.0.9.6103 for Windows installations and 10.0.9.6105 for hardware and virtual appliances. Hosted Email Security was upgraded by SonicWall. Mandiant and SonicWall advise 10.0.9.6173 (Windows) or 10.0.9.6177 (appliances), which also close CVE-2021-20022 and CVE-2021-20023 (per SonicWall SNWLID-2021-0007 and Mandiant).

Does an attacker need a login to use CVE-2021-20021?

No. SonicWall calls it a pre-authentication flaw: a crafted HTTP request to the remote host creates an administrative account. NVD scores it CVSS v3.1 9.8 with no privileges required (per SonicWall and NVD).

Is CVE-2021-20021 linked to ransomware?

CISA KEV marks known ransomware campaign use as Known. CISA added it on 2021-11-03 with a due date of 2021-11-17, and it is still listed in catalog version 2026.11.25 as of 2026-11-26. FIRST EPSS gives 0.8878 in the 2026-11-25 dataset (per CISA KEV and FIRST EPSS).

Is there a workaround if I cannot patch?

SonicWall's advisory lists no workaround, so the hotfix is the fix (per SonicWall SNWLID-2021-0007). Limiting who can reach the Email Security management interface narrows exposure while you schedule it, but it does not remove the flaw.