CVE-2020-9054: Zyxel Multiple NAS Devices OS Command Injection Vulnerability
CVE-2020-9054 is a critical-severity flaw (CVSS 9.8) affecting nas326 firmware, nas520 firmware, nas540 firmware, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- EPSS top 1%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 100.0% (top 1%) |
| CISA exploited list | Yes, fix due 2022-04-15 |
| Weakness | CWE-78 |
| Published | 2020-03-04 |
| Last modified | 2026-10-08 |
Last updated 2026-10-08 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: darrenmartyn/CVE-2020-9054 (3 stars)
- Write-up: kb.cert.org/artifacts/cve-2020-9054.html
- Write-up: kb.cert.org/vuls/id/498544/
- Write-up: krebsonsecurity.com/2020/02/zyxel-fixes-0day-in-network-storage-devices/
- Nuclei scan template: Zyxel NAS Firmware 5.21- Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2020-9054?
nas326 firmware: mitigate or apply the listed mitigation; nas520 firmware: mitigate or apply the listed mitigation; nas540 firmware: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2020-9054 being exploited?
Yes. CVE-2020-9054 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2020-9054 affect?
CVE-2020-9054 affects nas326 firmware, nas520 firmware, nas540 firmware. Severity is critical (CVSS 9.8). 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 d
How urgent is CVE-2020-9054?
Priority 94/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; Remotely exploitable, no login, no user action
Software pages
Related CVEs
- CVE-2024-29972 CRITICAL 9.8 MITIGATE MITIGATE ** UNSUPPORTED WHEN ASSIGNED ** The command injection vulnerability in the CGI program "remote_help-cgi" in Zy
- CVE-2024-6342 CRITICAL 9.8 MITIGATE MITIGATE **UNSUPPORTED WHEN ASSIGNED** A command injection vulnerability in the export-cgi program of Zyxel NAS326 firm
- CVE-2023-5372 HIGH 7.2 MITIGATE MITIGATE The post-authentication command injection vulnerability in Zyxel NAS326 firmware versions through V5.21(AAZF.1
- CVE-2023-4474 CRITICAL 9.8 MITIGATE MITIGATE The improper neutralization of special elements in the WSGI server of the Zyxel NAS326 firmware version V5.21(
- CVE-2023-4473 CRITICAL 9.8 MITIGATE MITIGATE A command injection vulnerability in the web server of the Zyxel NAS326 firmware version V5.21(AAZF.14)C0 and