{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31898 exists.","fix":"No fix has been published for CVE-2022-31898 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-31898 is a medium-severity command injection vulnerability in n/a, published on 27 Oct 2022. 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-2022-31898 and fix it if it is affected.\n\nWhat it is: CVE-2022-31898 is a medium-severity command injection vulnerability in n/a, published on 27 Oct 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31898 exists.\n\nAffected product: n/a. 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-2022-31898/ (Markdown: https://insights.sbomify.com/CVE-2022-31898/index.md)","id":"CVE-2022-31898","markdown":"https://insights.sbomify.com/CVE-2022-31898/index.md","name":"CVE-2022-31898","record":{"aliases":["GHSA-7jr9-w2r4-mr83"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"GL.iNet router","requires_auth":"high_privilege","summary":"Attackers can execute arbitrary commands on GL.iNet routers via vulnerable ping and trace parameters, requiring firmware updates.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"gl-ax1800_firmware","vendor":"gl-inet"},{"product":"gl-mt300n-v2_firmware","vendor":"gl-inet"}],"cvss":{"score":6.8,"severity":"medium","source":"cisa-adp","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":"gl-inet GL-MT300N-V2 Mango v3.212 and GL-AX1800 Flint v3.214 were discovered to contain multiple command injection vulnerabilities via the ping_addr and trace_addr function parameters.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2022-11-11","github_poc":2,"max_poc_stars":18,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-11-11T05:11:14Z","kind":"github_poc","ref":"https://github.com/gigaryte/cve-2022-31898","stars":18,"title":"Exploit POC code for CVE-2022-31898, a command injection for GL-iNet routers with firmware below 3.215"},{"date":"2026-03-10T18:34:09Z","kind":"github_poc","ref":"https://github.com/CryptoGhost1/MangoPunch-CVE-2022-31898","stars":0,"title":"Authenticated Command Injection Tool (CVE-2022-31898) - HACKCONRD 2026."}],"tier":"weaponised"},"has_fix":null,"headline":"Command injection in n/a","id":"CVE-2022-31898","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"Memory corruption in n/a","id":"CVE-2022-31901"},"packages":[],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2022-31897"},"products":["n/a"],"published":"2022-10-27","related":[{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2023-47463","kev_date_added":null,"published":"2023-11-30"},{"cvss_score":9.8,"headline":"Missing authorization in n/a","id":"CVE-2023-47462","kev_date_added":null,"published":"2023-11-29"},{"cvss_score":8.8,"headline":"Path traversal in n/a","id":"CVE-2023-47464","kev_date_added":null,"published":"2023-11-30"}],"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":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-05-07","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands on GL.iNet routers via vulnerable ping and trace parameters, requiring firmware updates.","url":"https://insights.sbomify.com/CVE-2022-31898/"}