{"answers":{"affected":"It affects 27 products.","exploited":"Yes. Attackers have exploited CVE-2020-9054 in the wild since at least 25 Mar 2022.","fix":"No fix has been published for CVE-2020-9054 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 15 Apr 2022.","what":"CVE-2020-9054 is a critical command injection vulnerability in ZyXEL NAS326, published on 4 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-9054 and fix it if it is affected.\n\nWhat it is: CVE-2020-9054 is a critical command injection vulnerability in ZyXEL NAS326, published on 4 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2020-9054 in the wild since at least 25 Mar 2022.\n\nAffected product: ZyXEL NAS326. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-9054/ (Markdown: https://insights.sbomify.com/CVE-2020-9054/index.md)","id":"CVE-2020-9054","markdown":"https://insights.sbomify.com/CVE-2020-9054/index.md","name":"CVE-2020-9054","record":{"aliases":["GHSA-w6h5-rjp3-hxvc"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":false,"product_category":"ZyXEL NAS device","requires_auth":"none","summary":"Remote unauthenticated attackers can execute arbitrary code with root privileges on ZyXEL NAS devices via command injection in weblogin.cgi.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"atp100_firmware","vendor":"zyxel"},{"product":"atp200_firmware","vendor":"zyxel"},{"product":"atp500_firmware","vendor":"zyxel"},{"product":"atp800_firmware","vendor":"zyxel"},{"product":"nas326_firmware","vendor":"zyxel"},{"product":"nas520_firmware","vendor":"zyxel"},{"product":"nas540_firmware","vendor":"zyxel"},{"product":"nas542_firmware","vendor":"zyxel"},{"product":"usg1100_firmware","vendor":"zyxel"},{"product":"usg110_firmware","vendor":"zyxel"},{"product":"usg1900_firmware","vendor":"zyxel"},{"product":"usg20-vpn_firmware","vendor":"zyxel"},{"product":"usg20w-vpn_firmware","vendor":"zyxel"},{"product":"usg210_firmware","vendor":"zyxel"},{"product":"usg2200_firmware","vendor":"zyxel"},{"product":"usg310_firmware","vendor":"zyxel"},{"product":"usg40_firmware","vendor":"zyxel"},{"product":"usg40w_firmware","vendor":"zyxel"},{"product":"usg60_firmware","vendor":"zyxel"},{"product":"usg60w_firmware","vendor":"zyxel"},{"product":"vpn1000_firmware","vendor":"zyxel"},{"product":"vpn100_firmware","vendor":"zyxel"},{"product":"vpn300_firmware","vendor":"zyxel"},{"product":"vpn50_firmware","vendor":"zyxel"},{"product":"zywall1100_firmware","vendor":"zyxel"},{"product":"zywall110_firmware","vendor":"zyxel"},{"product":"zywall310_firmware","vendor":"zyxel"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-09-09","github_poc":1,"max_poc_stars":3,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-09-09T16:16:34Z","kind":"github_poc","ref":"https://github.com/darrenmartyn/CVE-2020-9054","stars":3,"title":"CVE-2020-9054 PoC for Zyxel"},{"date":null,"kind":"nuclei","ref":"http/cves/2020/CVE-2020-9054.yaml","stars":null,"title":"Zyxel NAS Firmware 5.21- Remote Code Execution"}],"tier":"exploited"},"has_fix":null,"headline":"Zyxel Multiple NAS Devices OS Command Injection","id":"CVE-2020-9054","indexable":true,"kev":{"dateAdded":"2022-03-25","dueDate":"2022-04-15","knownRansomwareCampaignUse":"Unknown","product":"Multiple Network-Attached Storage (NAS) Devices","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Zyxel","vulnerabilityName":"Zyxel Multiple NAS Devices OS Command Injection Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2020"},"n_packages":0,"n_references":5,"next":{"headline":"Cross-site scripting in LYNX Customer Service Portal","id":"CVE-2020-9055"},"packages":[],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2020-9053"},"products":["NAS326","NAS520","NAS540","NAS542","NSA210","NSA220","NSA220+","NSA221","NSA310","NSA320","NSA320S","NSA325","NSA325v2"],"published":"2020-03-04","related":[{"cvss_score":9.8,"headline":"Zyxel Multiple Firewalls Buffer Overflow","id":"CVE-2023-33009","kev_date_added":"2023-06-05","published":"2023-05-24"},{"cvss_score":9.8,"headline":"Zyxel Multiple Firewalls Buffer Overflow","id":"CVE-2023-33010","kev_date_added":"2023-06-05","published":"2023-05-24"},{"cvss_score":9.8,"headline":"Zyxel Multiple Firewalls OS Command Injection","id":"CVE-2023-28771","kev_date_added":"2023-05-31","published":"2023-04-25"},{"cvss_score":9.8,"headline":"Zyxel Multiple Firewalls OS Command Injection","id":"CVE-2022-30525","kev_date_added":"2022-05-16","published":"2022-05-12"},{"cvss_score":9.8,"headline":"Zyxel Multiple Products Use of Hard-Coded Credentials","id":"CVE-2020-29583","kev_date_added":"2021-11-03","published":"2020-12-22"},{"cvss_score":9.8,"headline":"Auth bypass in ATP series firmware","id":"CVE-2022-0342","kev_date_added":null,"published":"2022-03-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-07","vendors":["ZyXEL"]},"summary":"Remote unauthenticated attackers can execute arbitrary code with root privileges on ZyXEL NAS devices via command injection in weblogin.cgi.","url":"https://insights.sbomify.com/CVE-2020-9054/"}