CVE-2021-20023
Medium · 4.9 CISA KEV · ransomwareCVSS
4.9
EPSS
51.7%
Published
Apr 20, 2021
CISA due date
Nov 17, 2021
Cloudanix analysis
A flaw in SonicWall email security systems could let a logged-in attacker read sensitive files and use that information to support a larger breach or ransomware attack.
- Exploitation
- Remote Authenticated
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
CVE-2021-20023 is an authenticated path traversal vulnerability in SonicWall Email Security 10.0.9.x that allows a remote attacker with high-privileged access to read arbitrary files from the underlying host. The primary impact is confidentiality loss: sensitive local files, application configuration, credentials, keys, logs, or system data may be disclosed. While the vulnerability does not directly provide code execution, arbitrary file disclosure can materially assist follow-on compromise, credential theft, lateral movement, and chaining with other SonicWall Email Security vulnerabilities.
Why it matters to the business
Successful exploitation can expose sensitive email security appliance data, credentials, configuration files, and operational logs. Because this vulnerability is listed in CISA KEV, has known in-the-wild exploitation, is associated with ransomware activity, and has a high EPSS likelihood of exploitation, affected systems should be treated as high-priority even though the CVSS score is moderate. Compromise of an email security gateway can undermine mail filtering, expose sensitive communications, and provide attackers with a foothold for broader intrusion or ransomware deployment.
How an attack unfolds
An attacker first obtains valid privileged credentials for a SonicWall Email Security or Hosted Email Security instance. After authenticating to the application, the attacker sends crafted HTTP requests containing path traversal sequences that cause the application to resolve file paths outside the intended directory. If successful, the server returns the contents of arbitrary local files. The attacker can then harvest configuration files, credentials, tokens, logs, or other secrets. In real-world intrusions, this type of file disclosure may be combined with other vulnerabilities or stolen credentials to escalate access, deploy persistence, move laterally, or support ransomware operations.
How to fix it
Upgrade affected SonicWall Email Security and Hosted Email Security deployments running 10.0.9.x to a vendor-supported fixed release or apply the relevant SonicWall hotfix. Because no exact fixed version was provided in the input, administrators should consult SonicWall’s official advisory and support portal for the correct patched build for their deployment model. Restrict administrative access to trusted networks or VPNs, enforce MFA for administrative users, remove unused accounts, and review privileged account assignments. If exploitation is suspected, rotate passwords, API keys, certificates, and other secrets that may have been stored on or accessible from the appliance. For hosted deployments, confirm remediation status with SonicWall or the hosting provider.
How to confirm the fix worked
Confirm that no SonicWall Email Security system is running an affected 10.0.9.x build and that all instances report a vendor-patched version. Test from an authenticated administrative session using a safe, controlled path traversal probe and verify that traversal sequences are rejected, normalized safely, or return an authorization error rather than file contents. Review WAF, reverse proxy, and application logs to confirm that traversal attempts no longer succeed with HTTP 200 responses and substantial response bodies. Validate that administrative interfaces are not publicly reachable except through approved access paths and that privileged accounts are protected with MFA.
Typical attack path
- Identify an exposed SonicWall Email Security or Hosted Email Security management interface.
- Obtain or reuse valid privileged credentials through phishing, credential theft, password reuse, or prior compromise.
- Authenticate to the SonicWall Email Security application.
- Send crafted requests containing path traversal patterns such as ../ or encoded equivalents.
- Read sensitive files from the appliance or host operating system.
- Extract credentials, secrets, configuration data, or operational logs from disclosed files.
- Use the exposed information to support follow-on access, lateral movement, persistence, data theft, or ransomware deployment.
How to detect it
To determine whether exploitation already occurred, review SonicWall Email Security application logs, administrative audit logs, web server access logs, reverse proxy logs, WAF events, VPN logs, identity provider logs, and endpoint telemetry from the appliance or host. Look for successful privileged logins followed by HTTP requests containing path traversal sequences such as ../, ..\, double-encoded traversal, or requests for sensitive files. Prioritize events with HTTP 200 responses, unusually large response sizes, repeated file-read attempts, or activity from unfamiliar source IPs. Correlate suspicious file-read activity with later events such as new administrator accounts, configuration exports, mail-flow changes, web shell creation, unusual child processes, outbound connections to unknown infrastructure, credential use from new locations, or ransomware-related staging activity. Because this vulnerability has been exploited in the wild and is associated with ransomware campaigns, absence of a single traversal log entry should not be considered conclusive if logs are incomplete or rotated.
- ../
- ..\
- %2e%2e%2f
- %2e%2e%5c
- ..%2f
- ..%5c
- %252e%252e%252f
- %c0%ae%c0%ae%c0%af
- /etc/passwd
- /etc/shadow
- /etc/hosts
- /proc/self/environ
- /proc/version
- /var/log/
- /var/log/messages
- /var/log/secure
- /opt/sonicwall/
- /usr/local/sonicwall/
- C:\Windows\win.ini
- C:\Windows\System32\drivers\etc\hosts
What your security team should do
- Immediately inventory all SonicWall Email Security and Hosted Email Security deployments and identify any 10.0.9.x systems.
- Prioritize remediation because the vulnerability is in CISA KEV, has active exploitation, is associated with ransomware activity, and had a CISA remediation due date of 2021-11-17.
- Upgrade or apply SonicWall’s vendor-provided hotfix for all affected appliances.
- Restrict management interface exposure to trusted administrative networks and require MFA for all privileged users.
- Review authentication logs for successful privileged logins from unusual IP addresses, geographies, user agents, or times.
- Search historical web, application, reverse proxy, and WAF logs for path traversal strings and encoded traversal attempts.
- Rotate credentials and secrets stored on or accessible from affected systems if exploitation cannot be confidently ruled out.
- Hunt for follow-on activity including web shells, unexpected administrative changes, suspicious outbound connections, and signs of ransomware staging.
The record
SonicWall Email Security version 10.0.9.x contains a vulnerability that allows a post-authenticated attacker to read an arbitrary file on the remote host.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-81163 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… CWE-22
- CVE-2026-112049 Vita3K before build 4187 contains a path traversal (zip slip) vulnerability in… CWE-22
- CVE-2026-112005 WhoDB 0.104.0 before 0.135.0 contains a path traversal vulnerability that allows remote… CWE-22
- CVE-2026-61702 OpenPrinting CUPS is an open source printing system for Linux and other Unix-like… CWE-22
- CVE-2026-104871 The Angular SSR is a server-rise rendering tool for Angular applications. CWE-22
- CVE-2026-102991 Mako is a template library written in Python. CWE-22
- CVE-2026-101894 The decompress package for Node.js extracts archives. CWE-22
- CVE-2026-100689 GitPython before 3.1.62 does not validate the `path` field read from an untrusted… CWE-22