{"answers":{"affected":"It affects 16 products.","exploited":"There is no known exploitation of CVE-2018-21162 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-21162 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-21162 is a high-severity command injection vulnerability in Netgear D6400 Firmware, published on 23 Apr 2020. 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-2018-21162 and fix it if it is affected.\n\nWhat it is: CVE-2018-21162 is a high-severity command injection vulnerability in Netgear D6400 Firmware, published on 23 Apr 2020. 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-2018-21162 in the wild and no public exploit code.\n\nAffected product: Netgear D6400 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-2018-21162/ (Markdown: https://insights.sbomify.com/CVE-2018-21162/index.md)","id":"CVE-2018-21162","markdown":"https://insights.sbomify.com/CVE-2018-21162/index.md","name":"CVE-2018-21162","record":{"aliases":["GHSA-m25v-6jm5-xmw4"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"NETGEAR router","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary commands on various NETGEAR routers via command injection vulnerabilities.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"d6400_firmware","vendor":"netgear"},{"product":"ex6200_firmware","vendor":"netgear"},{"product":"ex7000_firmware","vendor":"netgear"},{"product":"r6250_firmware","vendor":"netgear"},{"product":"r6300_firmware","vendor":"netgear"},{"product":"r6400_firmware","vendor":"netgear"},{"product":"r6700_firmware","vendor":"netgear"},{"product":"r7000_firmware","vendor":"netgear"},{"product":"r7100lg_firmware","vendor":"netgear"},{"product":"r7300dst_firmware","vendor":"netgear"},{"product":"r7900_firmware","vendor":"netgear"},{"product":"r8000_firmware","vendor":"netgear"},{"product":"r8300_firmware","vendor":"netgear"},{"product":"r8500_firmware","vendor":"netgear"},{"product":"wndr3400_firmware","vendor":"netgear"},{"product":"wnr3500l_firmware","vendor":"netgear"}],"cvss":{"score":8.8,"severity":"high","source":"cna","vector":"CVSS:3.0/AC:L/AV:A/A:H/C:H/I:H/PR:N/S:U/UI:N","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"Certain NETGEAR devices are affected by command injection by an unauthenticated attacker. This affects D6400 before 1.0.0.78, EX6200 before 1.0.3.86, EX7000 before 1.0.0.64, R6250 before 1.0.4.8, R6300v2 before 1.0.4.6, R6400 before 1.0.1.12, R6700 before 1.0.1.16, R7000 before 1.0.7.10, R7100LG before 1.0.0.42, R7300DST before 1.0.0.44, R7900 before 1.0.1.12, R8000 before 1.0.3.36, R8300 before 1.0.2.74, R8500 before 1.0.2.74, WNDR3400v3 before 1.0.1.14, and WNR3500Lv2 before 1.2.0.48.","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 n/a","id":"CVE-2018-21162","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"netgear:d6400_firmware","products":["netgear:d6400_firmware","netgear:ex6200_firmware","netgear:r6250_firmware","netgear:r6300_firmware","netgear:r6400_firmware","netgear:r6700_firmware","netgear:r7000_firmware","netgear:r7100lg_firmware","netgear:r7300dst_firmware","netgear:r7900_firmware","netgear:r8000_firmware","netgear:r8300_firmware","netgear:r8500_firmware"],"type":"command_injection","year":"2018"},"n_packages":0,"n_references":1,"next":{"headline":"Memory corruption in n/a","id":"CVE-2018-21163"},"packages":[],"prev":{"headline":"Misconfiguration in n/a","id":"CVE-2018-21161"},"products":["n/a"],"published":"2020-04-23","related":[{"cvss_score":6.3,"headline":"Memory corruption in n/a","id":"CVE-2019-20728","kev_date_added":null,"published":"2020-04-16"},{"cvss_score":5.3,"headline":"Netgear D6400 diag.cgi os command injection","id":"CVE-2025-7407","kev_date_added":null,"published":"2025-07-10"},{"cvss_score":5.2,"headline":"Cross-site scripting in n/a","id":"CVE-2017-18700","kev_date_added":null,"published":"2020-04-24"}],"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-05","vendors":["n/a"]},"summary":"Unauthenticated attackers can execute arbitrary commands on various NETGEAR routers via command injection vulnerabilities.","url":"https://insights.sbomify.com/CVE-2018-21162/"}