{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2017-17215 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2017-17215 yet. Limit exposure of the affected software until one is available.","what":"CVE-2017-17215 is a high-severity command injection vulnerability in Huawei Technologies Co., Ltd. HG532, published on 20 Mar 2018. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2017-17215 and fix it if it is affected.\n\nWhat it is: CVE-2017-17215 is a high-severity command injection vulnerability in Huawei Technologies Co., Ltd. HG532, published on 20 Mar 2018. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2017-17215 in the wild and no public exploit code.\n\nAffected product: Huawei Technologies Co., Ltd. HG532. 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-2017-17215/ (Markdown: https://insights.sbomify.com/CVE-2017-17215/index.md)","id":"CVE-2017-17215","markdown":"https://insights.sbomify.com/CVE-2017-17215/index.md","name":"CVE-2017-17215","record":{"aliases":["GHSA-h4hx-pmcg-3856"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Huawei home router","requires_auth":"low_privilege","summary":"An authenticated attacker can execute arbitrary code on Huawei HG532 routers by sending malicious packets to port 37215.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"huawei","cpe":[{"product":"hg532_firmware","vendor":"huawei"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"Huawei HG532 with some customized versions has a remote code execution vulnerability. An authenticated attacker could send malicious packets to port 37215 to launch attacks. Successful exploit could lead to the remote execution of arbitrary code.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2017-12-25","github_poc":4,"max_poc_stars":26,"metasploit":0,"nuclei":0,"refs":[{"date":"2017-12-25T06:11:24Z","kind":"github_poc","ref":"https://github.com/1337g/CVE-2017-17215","stars":26,"title":"CVE-2017-17215 HuaWei Router RCE (NOT TESTED)"},{"date":"2020-11-17T11:22:20Z","kind":"github_poc","ref":"https://github.com/wilfred-wulbou/HG532d-RCE-Exploit","stars":9,"title":"A Remote Code Execution (RCE) exploit for Huawei HG532d based on CVE-2017-17215 vulnerability. Modded from original PoC code from exploit-db.com"},{"date":"2017-12-25","kind":"exploitdb","ref":"43414","stars":null,"title":"Huawei Router HG532 - Arbitrary Command Execution"},{"date":"2022-11-02T14:07:08Z","kind":"github_poc","ref":"https://github.com/ltfafei/HuaWei_Route_HG532_RCE_CVE-2017-17215","stars":0,"title":"POCsuite与goland实现华为HG532路由器命令注入CVE-2017-17215 POC"},{"date":"2026-09-07T19:47:47Z","kind":"github_poc","ref":"https://github.com/luel-4013/misfortune-cookie","stars":0,"title":"This interactive suite targets CVE-2014-9222 (Misfortune Cookie) in legacy RomPager web servers, alongside modular testing for CVE-2017-17215 (Huawei HG532 RCE), CVE-2018-14847 (MikroTik WinBox credential leak), and the CVE-2021-27101 / CVE-2021-27102 exploit chain (Accellion FTA)."}],"tier":"poc_unverified"},"has_fix":null,"headline":"Command injection in HG532","id":"CVE-2017-17215","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2017"},"n_packages":0,"n_references":2,"next":{"headline":"Denial of service in DP300; RP200; TE30; TE40; TE50; TE60","id":"CVE-2017-17216"},"packages":[],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2017-17214"},"products":["HG532"],"published":"2018-03-20","related":[],"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["Huawei Technologies Co., Ltd."]},"summary":"An authenticated attacker can execute arbitrary code on Huawei HG532 routers by sending malicious packets to port 37215.","url":"https://insights.sbomify.com/CVE-2017-17215/"}