SonicWall Email Security Path Traversal Vulnerability
SonicWall Email Security contains a path traversal vulnerability that allows a post-authenticated attacker to read files on the remote host. This vulnerability has known usage in a SonicWall Email Security exploit chain along with CVE-2021-20021 and CVE-2021-20022 to achieve privilege escalation.
Improper Limitation of a Pathname to a Restricted Directory CWE-22
An attacker can make the software open files outside the folder it was meant to stay in, such as password files.
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Many file operations are intended to take place within a restricted directory. By using special elements such as ".." and "/" separators, attackers can escape outside of the restricted location to access files or directories that are elsewhere on the system. One of the most common special elements is the "../" sequence, which in most modern operating systems is interpreted as the parent directory of the current location. This is referred to as relative path traversal. Path traversal also covers the use of absolute pathnames such as "/usr/local/bin" to access unexpected files. This is referred to as absolute path traversal.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 11 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| SonicWall Email Security | Software | before 10.0.9.6173 | 10.0.9.6173 |
| Sonicwall Email Security Appliance 3300 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 4300 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 5000 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 5050 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 7000 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 7050 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 8300 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Appliance 9000 Firmware | Operating system | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Email Security Virtual Appliance | Software | before 10.0.9.6177 | 10.0.9.6177 |
| Sonicwall Hosted Email Security | Software | before 10.0.9.6173 | 10.0.9.6173 |
The 4.9 severity score (medium) from NIST, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | High | The attacker needs an administrator account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | None | Nothing can be changed. |
| Service disrupted | None | The service keeps running. |
| Ease of attack | 1.2 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 3.6 | A score for how bad the harm is if it works. Higher is worse. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
1 of the 2 sources NIST lists are patches or advisories from the vendor.