Unauthenticated root code execution via username injection
Published Mar 4, 2020 · Updated Oct 21, 2025
OS command injection in Zyxel NAS firmware allows remote attackers to execute arbitrary code as root via crafted HTTP requests. The weblogin.cgi executable passes a username containing shell metacharacters into an OS command without sanitization, and a setuid utility elevates the web-server command to root. No credentials are required; direct web-interface access is sufficient, and a browser can relay a request to a NAS reachable from the client network.
Summary
What happened
OS command injection in Zyxel NAS firmware allows remote attackers to execute arbitrary code as root via crafted HTTP requests. The weblogin.cgi executable passes a username containing shell metacharacters into an OS command without sanitization, and a setuid utility elevates the web-server command to root. No credentials are required; direct web-interface access is sufficient, and a browser can relay a request to a NAS reachable from the client network.
The record
- CVE
- CVE-2020-9054
- Published
- Mar 4, 2020
- Updated
- Oct 21, 2025
- Vendor
- Zyxel Networks
- Product
- NAS542 Firmware
- Classifications
- CWE-78, T1190, T1059.004
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Mar 4, 2020CVE publishedPublication date reported by the CVE source.
- Oct 21, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=V5.21(ABAG.4)C0 <=V5.21(ABAG.4)C0
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
View daily counts
| Reporting day | Unique IPs |
|---|---|
| Sep 10, 2026 | Unavailable |
| Sep 11, 2026 | Unavailable |
| Sep 12, 2026 | Unavailable |
| Sep 13, 2026 | Unavailable |
| Sep 14, 2026 | 1 |
| Sep 15, 2026 | Unavailable |
| Sep 16, 2026 | 2 |
Weakness, pattern, technique
Public exploit references
- CERT/CC NAS shutdown proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities Catalog listingknown exploited catalog
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo