ZyXEL NAS products running firmware version 5.21 and earlier are vulnerable to pre-authentication command injection in weblogin.cgi
CVSS score
9.8
EPSS probability
%100.0
Risk score
19.6
Published
6 y ago
Apply updates per vendor instructions.
Impact on My Inventory
Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.
Checking session…
Vulnerability description
DayBreach CVE AI Research
CVE-2020-9054 has vendor, distribution, patch and security-source records on file. We can compare them and prepare an explanation linked to the evidence.
Multiple ZyXEL network-attached storage (NAS) devices running firmware version 5.21 contain a pre-authentication command injection vulnerability, which may allow a remote, unauthenticated attacker to execute arbitrary code on a vulnerable device. ZyXEL NAS devices achieve authentication by using the weblogin.cgi CGI executable. This program fails to properly sanitize the username parameter that is passed to it. If the username parameter contains certain characters, it can allow command injection with the privileges of the web server that runs on the ZyXEL device. Although the web server does not run as the root user, ZyXEL devices include a setuid utility that can be leveraged to run any command with root privileges. As such, it should be assumed that exploitation of this vulnerability can lead to remote code execution with root privileges. By sending a specially-crafted HTTP POST or GET request to a vulnerable ZyXEL device, a remote, unauthenticated attacker may be able to execute arbitrary code on the device. This may happen by directly connecting to a device if it is directly exposed to an attacker. However, there are ways to trigger such crafted requests even if an attacker does not have direct connectivity to a vulnerable devices. For example, simply visiting a website can result in the compromise of any ZyXEL device that is reachable from the client system. Affected products include: NAS326 before firmware V5.21(AAZF.7)C0 NAS520 before firmware V5.21(AASZ.3)C0 NAS540 before firmware V5.21(AATB.4)C0 NAS542 before firmware V5.21(ABAG.4)C0 ZyXEL has made firmware updates available for NAS326, NAS520, NAS540, and NAS542 devices. Affected models that are end-of-support: NSA210, NSA220, NSA220+, NSA221, NSA310, NSA310S, NSA320, NSA320S, NSA325 and NSA325v2
IMPACT: Affected Products and Software
Affected Products
The following products are affected by CVE-2020-9054 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.
| ID | VENDOR | PRODUCT | ACTION |
|---|---|---|---|
| 1 | zyxel | nas326 | View |
| 2 | zyxel | nas520 | View |
| 3 | zyxel | nas540 | View |
| 4 | zyxel | nas542 | View |
| 5 | zyxel | NSA210 | View |
| 6 | zyxel | NSA220 | View |
| 7 | zyxel | NSA221 | View |
| 8 | zyxel | NSA310 | View |
| 9 | zyxel | NSA320 | View |
| 10 | zyxel | NSA320S | View |
| 11 | zyxel | NSA325 | View |
| 12 | zyxel | NSA325v2 | View |
| 13 | zyxel | nas326 firmware | View |
| 14 | zyxel | nas326 | View |
| 15 | zyxel | nas520 firmware | View |
| 16 | zyxel | nas520 | View |
| 17 | zyxel | nas540 firmware | View |
| 18 | zyxel | nas540 | View |
| 19 | zyxel | nas542 firmware | View |
| 20 | zyxel | nas542 | View |
| 21 | zyxel | atp100 firmware | View |
| 22 | zyxel | atp100 | View |
| 23 | zyxel | atp200 firmware | View |
| 24 | zyxel | atp200 | View |
| 25 | zyxel | atp500 firmware | View |
| 26 | zyxel | atp500 | View |
| 27 | zyxel | atp800 firmware | View |
| 28 | zyxel | atp800 | View |
| 29 | zyxel | usg20-vpn firmware | View |
| 30 | zyxel | usg20-vpn | View |
| 31 | zyxel | usg20w-vpn firmware | View |
| 32 | zyxel | usg20w-vpn | View |
| 33 | zyxel | usg40 firmware | View |
| 34 | zyxel | usg40 | View |
| 35 | zyxel | usg40w firmware | View |
| 36 | zyxel | usg40w | View |
| 37 | zyxel | usg60 firmware | View |
| 38 | zyxel | usg60 | View |
| 39 | zyxel | usg60w firmware | View |
| 40 | zyxel | usg60w | View |
| 41 | zyxel | usg110 firmware | View |
| 42 | zyxel | usg110 | View |
| 43 | zyxel | usg210 firmware | View |
| 44 | zyxel | usg210 | View |
| 45 | zyxel | usg310 firmware | View |
| 46 | zyxel | usg310 | View |
| 47 | zyxel | usg1100 firmware | View |
| 48 | zyxel | usg1100 | View |
| 49 | zyxel | usg1900 firmware | View |
| 50 | zyxel | usg1900 | View |
| 51 | zyxel | usg2200 firmware | View |
| 52 | zyxel | usg2200 | View |
| 53 | zyxel | vpn50 firmware | View |
| 54 | zyxel | vpn50 | View |
| 55 | zyxel | vpn100 firmware | View |
| 56 | zyxel | vpn100 | View |
| 57 | zyxel | vpn300 firmware | View |
| 58 | zyxel | vpn300 | View |
| 59 | zyxel | vpn1000 firmware | View |
| 60 | zyxel | vpn1000 | View |
| 61 | zyxel | zywall110 firmware | View |
| 62 | zyxel | zywall110 | View |
| 63 | zyxel | zywall310 firmware | View |
| 64 | zyxel | zywall310 | View |
| 65 | zyxel | zywall1100 firmware | View |
| 66 | zyxel | zywall1100 | View |
| 67 | zyxel | Multiple Network-Attached Storage (NAS) Devices | View |
RED HAT CSAF/VEX: Product Impact Check
SCORING: CVSS from Multiple Sources
CVSS Scores
The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.
| SCORE | VERSION | SEVERITY | VECTOR | SOURCE |
|---|---|---|---|---|
| 10.0 | CVSS V2 | — | AV:N/AC:L/Au:N/C:C/I:C/A:C | NVD |
| 9.8 | CVSS V31 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD |
| 9.8 | CVSS V3_1 | CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CVE ADP |
Patch and Remediation Guide
Solution & Remediation Advisory
Resmî yama doğrulanamadı; geçici azaltım veya workaround mevcut.
Apply updates per vendor instructions.
Public exploit and active exploitation status
Verified exploit intelligence
CVE-2020-9054 : the database holds 1 public PoC/exploit sources for it. For direct links to the sources, open the Public Exploits tab.
Weakness Classification and Attack Patterns (CWE & CAPEC)
CWE - Common Weakness Enumeration
While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2020-9054 is associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2020-9054 weaknesses.
Attack Vector and Accessibility
Official Sources and Advisories
Similar Vulnerabilities
Get this vulnerability through the API
Affected products, version ranges, exploitation status and patch information in a single request, with a free key.
curl -H "x-api-key: $DAYBREACH_API_KEY" \ "https://api.daybreach.dev/api/v1/intel/cves/CVE-2020-9054"