Overview
- Description
- 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
- Source
- cret@cert.org
- NVD status
- Analyzed
Social media
- Hype score
- Not currently trending
Risk scores
CVSS 3.1
- Type
- Primary
- Base score
- 9.8
- Impact score
- 5.9
- Exploitability score
- 3.9
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Severity
- CRITICAL
CVSS 2.0
- Type
- Primary
- Base score
- 10
- Impact score
- 10
- Exploitability score
- 10
- Vector string
- AV:N/AC:L/Au:N/C:C/I:C/A:C
Known exploits
Data from CISA
- Vulnerability name
- Zyxel Multiple NAS Devices OS Command Injection Vulnerability
- Exploit added on
- Mar 25, 2022
- Exploit action due
- Apr 15, 2022
- Required action
- Apply updates per vendor instructions.
Configurations
[ { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:nas326_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "3FEC76CA-9F2C-4A44-93C5-C131E68B9A5E", "versionEndExcluding": "5.21\\(aazf.7\\)c0" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:nas326:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "E0A01B19-4A91-4FBC-8447-2E854346DAC5" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:nas520_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "09DE98E7-CE8E-4F45-9F1E-4A4345FBD443", "versionEndExcluding": "5.21\\(aasz.3\\)c0" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:nas520:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "07B2BA3D-40F0-4D59-8838-B226FAABF27E" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:nas540_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "511D5E0C-9110-4505-8DC6-5C06A10CBC20", "versionEndExcluding": "5.21\\(aatb.4\\)c0" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:nas540:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "B2F7264C-D32A-4EE9-BADC-78518D762BCA" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:nas542_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "608792D0-44B3-4A07-A48C-D3D71F26056D", "versionEndExcluding": "5.21\\(abag.4\\)c0" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:nas542:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "31C4DD0F-28D0-4BF7-897B-5EEC32AA7277" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:atp100_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "1B482F4E-6E1B-45BD-A114-C389E2CD7542", "versionEndExcluding": "4.35\\(abps.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:atp100:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "7F7654A1-3806-41C7-82D4-46B0CD7EE53B" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:atp200_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "0DE3AD47-1C82-4B8B-87F4-E545A7DAFE5C", "versionEndExcluding": "4.35\\(abfw.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:atp200:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "D68A36FF-8CAF-401C-9F18-94F3A2405CF4" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:atp500_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "352E7F31-76DB-4786-BCC0-E11F43550EB1", "versionEndExcluding": "4.35\\(abfu.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:atp500:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "2818E8AC-FFEE-4DF9-BF3F-C75166C0E851" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:atp800_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "92E70F0C-D446-47B2-809B-D4680DAF13FC", "versionEndExcluding": "4.35\\(abiq.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:atp800:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "66B99746-0589-46E6-9CBD-F38619AD97DC" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg20-vpn_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "CB019CF4-75AA-4CB0-BA44-42BE620C03B3", "versionEndExcluding": "4.35\\(abaq.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg20-vpn:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "7239C54F-EC9E-44B4-AE33-1D36E5448219" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg20w-vpn_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "D2C621E3-DD7D-4FD0-AD1F-6D7BFDCA38F7", "versionEndExcluding": "4.35\\(abar.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg20w-vpn:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "06D2AD3A-9197-487D-A267-24DE332CC66B" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg40_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "9E638CFB-A13D-429D-A8E7-275959673ED6", "versionEndExcluding": "4.35\\(aala.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg40:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "5CCD2777-CC85-4BAA-B16B-19C2DB8DB742" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg40w_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "DB73D7EE-6A50-4DA5-B9A3-36E39244FF23", "versionEndExcluding": "4.35\\(aalb.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg40w:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "0906F3FA-793B-421D-B957-7E9C18C1AEC0" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg60_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "1183A743-F349-4D93-8943-C80F8976A2BE", "versionEndExcluding": "4.35\\(aaky.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg60:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "26900300-1325-4C8A-BC3B-A10233B2462A" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg60w_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "4F0D184B-31BB-4808-AF97-03599283F181", "versionEndExcluding": "4.35\\(aakz.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg60w:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "A5A7555E-BC29-460C-A701-7DCDEAFE67F3" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg110_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "8598C1A4-10CE-4092-9339-217AA27FF14D", "versionEndExcluding": "4.35\\(aaph.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg110:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "4834AC5E-884D-4A1C-A39B-B3F4A281E3CB" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg210_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "B42E5510-F6BB-40DA-8115-4D324DDCF5B2", "versionEndExcluding": "4.35\\(aapi.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg210:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "EAFF1122-755A-4531-AA2E-FD6E8478F92F" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg310_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "4DE7E2A7-3083-4AB7-ABA8-9EE8585DA1C1", "versionEndExcluding": "4.35\\(aapj.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg310:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "F302801D-3720-4598-8458-A8938BD6CB46" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg1100_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "DCDB08DB-DFBD-4A3C-86FD-5383D4B60248", "versionEndExcluding": "4.35\\(aapk.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg1100:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "4B68C4BD-3279-47AB-AC2A-7555163B12E2" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg1900_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "FAED492E-9FDD-4F6F-91E0-6EDA3036C725", "versionEndExcluding": "4.35\\(aapl.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg1900:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "60F4E816-C4D3-451A-965C-45387D7DEB5B" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:usg2200_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "A54DCF88-38E3-4660-ABC2-829B2DA5C445", "versionEndExcluding": "4.35\\(abae.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:usg2200:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "231547C3-33B8-42B7-983E-AA3C6CA5D107" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:vpn50_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "4FFB5E9D-75AD-4696-8EDF-A7726B5F2809", "versionEndExcluding": "4.35\\(abhl.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:vpn50:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "9E3AC823-0ECA-42D8-8312-2FBE5914E4C0" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:vpn100_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "2E5C5E12-CDDB-4DDF-AAA8-4AB499F5925F", "versionEndExcluding": "4.35\\(abfv.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:vpn100:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "81D90A7B-174F-40A1-8AF4-08B15B7BAC40" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:vpn300_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "0120A42B-EA67-44DC-BE04-FECF0279187C", "versionEndExcluding": "4.35\\(abfc.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:vpn300:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "3C45C303-1A95-4245-B242-3AB9B9106CD4" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:vpn1000_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "A71B4358-0E6F-496E-BFCF-0B368CBD1D09", "versionEndExcluding": "4.35\\(abip.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:vpn1000:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "EECD311A-4E96-4576-AADF-47291EDE3559" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:zywall110_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "025A43D2-42C3-4AEC-9C2E-61BAEB428545", "versionEndExcluding": "4.35\\(aaaa.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:zywall110:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "2347F91E-8AA3-4EB5-AD7F-7602A46C20BD" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:zywall310_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "7FB2E4BB-5684-4081-B9BA-80808E8ADD6F", "versionEndExcluding": "4.35\\(aaab.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:zywall310:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "3A97613C-26EF-481E-9215-197FE7A9D1C6" } ], "operator": "OR" } ], "operator": "AND" }, { "nodes": [ { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:o:zyxel:zywall1100_firmware:*:*:*:*:*:*:*:*", "vulnerable": true, "matchCriteriaId": "536BDA9F-4A29-4C59-8C39-F54794BE3026", "versionEndExcluding": "4.35\\(aaac.3\\)c0", "versionStartIncluding": "4.35" } ], "operator": "OR" }, { "negate": false, "cpeMatch": [ { "criteria": "cpe:2.3:h:zyxel:zywall1100:-:*:*:*:*:*:*:*", "vulnerable": false, "matchCriteriaId": "53A5732E-193B-4017-A434-A76BE80E20D9" } ], "operator": "OR" } ], "operator": "AND" } ]