Home/CVE/Zyxel Multiple NAS Devices OS Command Injection Vulnerability
CVE

CVE-2020-9054

Zyxel Multiple NAS Devices OS Command Injection Vulnerability

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.

CRITICAL · CVSS 9.8 ⚠ CISA KEV EPSS 0.94265
Act now
  • Listed on CISA KEV (known exploited in the wild)
  • SSVC exploitation status: active
  • EPSS ≥ 0.50 - high probability of exploitation in the next 30 days
  • EPSS percentile: top 0% of all CVEs by exploitation likelihood
  • Public exploit or PoC is available
  • CVSS base score ≥ 7.0
Sigma rules0 YARA rules0

Required Remediation

Apply updates per vendor instructions.

Affected Products & Versions

27
zyxel nas326 firmware< 5.21\(aazf.7\)c0
zyxel nas520 firmware< 5.21\(aasz.3\)c0
zyxel nas540 firmware< 5.21\(aatb.4\)c0
zyxel nas542 firmware< 5.21\(abag.4\)c0
zyxel atp100 firmware>= 4.35 and < 4.35\(abps.3\)c0
zyxel atp200 firmware>= 4.35 and < 4.35\(abfw.3\)c0
zyxel atp500 firmware>= 4.35 and < 4.35\(abfu.3\)c0
zyxel atp800 firmware>= 4.35 and < 4.35\(abiq.3\)c0

Detection Rules (IDS/IPS)

2
Open rulesets (ET Open, Snort Community, abuse.ch) link to source. Commercial rulesets are reference-only.

Scoring & Timeline

9.8
CRITICAL · CVSS v3.1 · cret@cert.org
View on NVD
Attack Vector
Network Adjacent Local Physical
Attack Complexity
Low High
Privileges Required
None Low High
User Interaction
None Required
Scope
Unchanged Changed
Confidentiality
None Low High
Integrity
None Low High
Availability
None Low High
Published to NVD04 Mar 2020 · 08:15 PM
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
SSVC triage · cisa-vulnrichment
Exploitation
active
Automatable
no
Technical impact
total
SSVC asks the questions that actually drive patch urgency: is it being exploited, can attacks be automated, and how total is the impact.

Vendor Advisories

1
🔗

References & Sources

5
Source URLs (vendor pages, mailing lists, write-ups). Exploit/PoC links are in their own section above to avoid duplication.
https://kb.cert.org/artifacts/cve-2020-9054.htmlThird Party AdvisoryUS Government Resource
https://kb.cert.org/vuls/id/498544/Third Party AdvisoryUS Government Resource
Intelligence Graph · click any node to traverse
CVETechnique ActorTool Family
drag to reposition · click any node to traverse · button top-right enlarges
External lookups - second-class, for what we don’t hold ourselves
Vulnerabilities
CISA KEV catalog
CWE weaknesses
CAPEC attack patterns
Package vulnerabilities
Threat intelligence
Threat actors
Tools & malware
ATT&CK techniques
IOCs
Detection & defense
Sigma rules
YARA rules
Atomic Red Team tests
D3FEND countermeasures
Compliance
NIST 800-53
ISO 27001:2022
SOC 2 TSC
PCI-DSS v4.0
CIS Controls v8.1
About
All capabilities
Live statistics
Data sources
Privacy policy
Terms of service
threatengine.sh  ·  Open-source threat intelligence platform  ·  100+ authoritative sources  ·  Every fact traces to its origin