{"answers":{"affected":"It affects 14 products.","exploited":"There is no known exploitation of CVE-2021-35031 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-35031 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-35031 is a medium-severity command injection vulnerability in Zyxel GS1900 series firmware, published on 28 Dec 2021. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-35031 and fix it if it is affected.\n\nWhat it is: CVE-2021-35031 is a medium-severity command injection vulnerability in Zyxel GS1900 series firmware, published on 28 Dec 2021. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-35031 in the wild and no public exploit code.\n\nAffected product: Zyxel GS1900 series firmware. 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-2021-35031/ (Markdown: https://insights.sbomify.com/CVE-2021-35031/index.md)","id":"CVE-2021-35031","markdown":"https://insights.sbomify.com/CVE-2021-35031/index.md","name":"CVE-2021-35031","record":{"aliases":["GHSA-xghr-m3mr-m6m9"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Zyxel switch firmware","requires_auth":"high_privilege","summary":"Authenticated LAN users can execute arbitrary OS commands via the GUI in Zyxel switch firmware due to improper neutralization of special elements.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"Zyxel","cpe":[{"product":"gs1900-10hp_firmware","vendor":"zyxel"},{"product":"gs1900-16_firmware","vendor":"zyxel"},{"product":"gs1900-24_firmware","vendor":"zyxel"},{"product":"gs1900-24e_firmware","vendor":"zyxel"},{"product":"gs1900-24ep_firmware","vendor":"zyxel"},{"product":"gs1900-24hp_firmware","vendor":"zyxel"},{"product":"gs1900-24hpv2_firmware","vendor":"zyxel"},{"product":"gs1900-48_firmware","vendor":"zyxel"},{"product":"gs1900-48hp_firmware","vendor":"zyxel"},{"product":"gs1900-48hpv2_firmware","vendor":"zyxel"},{"product":"gs1900-8_firmware","vendor":"zyxel"},{"product":"gs1900-8hp_firmware","vendor":"zyxel"},{"product":"xgs1210-12_firmware","vendor":"zyxel"},{"product":"xgs1250-12_firmware","vendor":"zyxel"}],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:H/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":"A vulnerability in the TFTP client of Zyxel GS1900 series firmware, XGS1210 series firmware, and XGS1250 series firmware, which could allow an authenticated LAN user to execute arbitrary OS commands via the GUI of the vulnerable device.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Command injection in GS1900 series firmware","id":"CVE-2021-35031","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":0,"n_references":1,"next":{"headline":"Command injection in GS1900 series firmware","id":"CVE-2021-35032"},"packages":[],"prev":{"headline":"Cross-site scripting in GS1900-8 Firmware","id":"CVE-2021-35030"},"products":["GS1900 series firmware","XGS1210 series firmware","XGS1250 series firmware"],"published":"2021-12-28","related":[{"cvss_score":8.8,"headline":"Zyxel GS1900 Series Switches Stack-Based Buffer Overflow","id":"CVE-2026-7273","kev_date_added":"2026-09-21","published":"2026-06-16"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-15800","kev_date_added":null,"published":"2019-11-14"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2015-5988","kev_date_added":null,"published":"2015-12-31"},{"cvss_score":9.8,"headline":"Auth bypass in n/a","id":"CVE-2015-5989","kev_date_added":null,"published":"2015-12-31"},{"cvss_score":9.1,"headline":"Auth bypass in n/a","id":"CVE-2019-15803","kev_date_added":null,"published":"2019-11-14"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2019-15799","kev_date_added":null,"published":"2019-11-14"},{"cvss_score":8.8,"headline":"Cross-site request forgery in n/a","id":"CVE-2015-5990","kev_date_added":null,"published":"2015-12-31"}],"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":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Zyxel"]},"summary":"Authenticated LAN users can execute arbitrary OS commands via the GUI in Zyxel switch firmware due to improper neutralization of special elements.","url":"https://insights.sbomify.com/CVE-2021-35031/"}