Security Advisory

CVE-2021-20023: SonicWall Email Security File Read (KEV)

Last updated:
  • CVE-2021-20023

CVE-2021-20023 is a path traversal in SonicWall Email Security 10.0.9 and earlier that lets a logged-in administrator read any file on the server. Its score is low, but attackers used it in a 2021 zero-day chain to steal stored credentials, and CISA KEV lists it. Install hotfix 10.0.9.6177 on appliances or 10.0.9.6173 on Windows; hosted customers were patched by SonicWall.

Vulnerability summary

CVSS base score

4.9

Medium severity

EPSS score (FIRST)

51.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2021-20023 · 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.6173 (SonicWall PSIRT); NVD CPE: before 10.0.9.6173
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.6177 (SonicWall PSIRT); NVD CPEs: firmware before 10.0.9.6177
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.6173 automatically, no customer action

What does this mean for affected devices?

SonicWall's advisory SNWLID-2021-0010 (2021-04-20) describes a post-authentication arbitrary file read 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-22. NVD's Primary score is lower: CVSS v3.1 4.9 (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N) and CVSS v2 4.0, CWE-22 (NVD, CVE record).

Which SonicWall products and versions are affected?

On-premise Email Security and Hosted Email Security (HES) 10.0.9 and earlier. The fix is a later build than for the two partner flaws: 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.6177, and the Windows software and HES before 10.0.9.6173.

What is the fix?

Per SonicWall: Windows installations upgrade to 10.0.9.6173 and appliances to 10.0.9.6177, the 10.0.9 patch on MySonicWall; HES was upgraded automatically; there is no workaround. These builds also contain the fixes for CVE-2021-20021 and CVE-2021-20022, so one update closes the chain (Mandiant). Mandiant notes that the ES management interface does not need to be reachable from the internet and counted about 700 exposed interfaces in 2021; see CISA BOD 23-02 and internet-exposed management interfaces.

Was it exploited?

Yes. Mandiant reports that after gaining admin access through CVE-2021-20021, the attacker used this flaw to read two configuration files holding account details and the Active Directory credentials the application uses. Mandiant reported it to SonicWall on 2021-04-06; the patch followed on 2021-04-19 and the advisory on 2021-04-20. If you ran an unpatched 10.0.9 build, treat those credentials as exposed and rotate them. 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.51689, the 99.21st percentile, in the 2026-11-25 dataset (FIRST EPSS); see KEV and EPSS prioritization for why a 4.9 can outrank a 9.8.

How to fix this class of issueThis advisory's weakness class is Path traversal. Our practical guide covers how to detect, fix, verify and disclose it: How to fix path traversal in embedded firmware.

Evidence

  • NVD: Analyzed; SonicWall Email Security 10.0.9.x, post-authenticated arbitrary file read; NVD Primary CVSS v3.1 4.9 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N, CVSS v2 4.0; CWE-22; CPEs: email_security and hosted_email_security before 10.0.9.6173, ES appliance firmware (3300-9000) and virtual appliance before 10.0.9.6177; published 2021-04-20; read 2026-11-26. — NVD
  • SonicWall SNWLID-2021-0010 (2021-04-20): post-authentication arbitrary file read; medium, CVSS 3.0 6.7; CWE-22; ES and HES 10.0.9 and earlier; HES auto 10.0.9.6173; Windows 10.0.9.6173, appliances 10.0.9.6177 (10.0.9 latest patch on MySonicWall); no workaround; credits Mandiant. — SonicWall PSIRT
  • Mandiant 2021-04-20: after admin access via CVE-2021-20021 the adversary used CVE-2021-20023 to read configuration files with account details and Active Directory credentials; CVE-2021-20023 reported 2021-04-06, validated 2021-04-09, patch 2021-04-19; 10.0.9.6173/10.0.9.6177 mitigate all three; interface need not be internet-exposed, ~700 publicly reachable interfaces. — Mandiant (Google Cloud blog)
  • CVE record: PUBLISHED, CNA SonicWall, 2021-04-20; 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-22; checked 2026-11-26. — CISA KEV
  • EPSS 0.51689, percentile 0.99207, dataset 2026-11-25, read 2026-11-26. — FIRST EPSS

Related advisories

Sources

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

Frequently asked questions

Which versions fix CVE-2021-20023?

SonicWall Email Security 10.0.9.6173 for Windows and 10.0.9.6177 for hardware and virtual appliances; Hosted Email Security was upgraded by SonicWall. The earlier hotfixes 10.0.9.6103 and 10.0.9.6105 do not include this fix (per SonicWall SNWLID-2021-0010 and NVD).

Why is a CVSS 4.9 flaw on the CISA KEV list?

Attackers used it as part of a chain: an admin account from CVE-2021-20021, then this file read to collect account and Active Directory credentials. CISA lists it as exploited with known ransomware use, and FIRST EPSS puts it at 0.51689 in the 2026-11-25 dataset (per Mandiant, CISA KEV and FIRST EPSS).

What should I do besides patching?

Mandiant advises reviewing SonicWall configuration files and logs for signs of earlier activity, and looking for web shells and unusual child processes of the bundled web server. Because the files read in 2021 held Active Directory credentials, rotating those credentials is prudent on any host that ran an unpatched build (per Mandiant).

Does CVE-2021-20023 affect SonicWall Hosted Email Security?

Yes, Hosted Email Security 10.0.9 and earlier was affected. SonicWall upgraded HES to 10.0.9.6173 itself, so hosted customers had nothing to install (per SonicWall SNWLID-2021-0010).