{"answers":{"affected":"2 open source packages ship an affected version, including genieacs. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46704 exists.","fix":"Upgrade genieacs to 1.2.8 or later.","what":"CVE-2021-46704 is a critical command injection vulnerability in n/a, published on 6 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-46704 and fix it if it is affected.\n\nWhat it is: CVE-2021-46704 is a critical command injection vulnerability in n/a, published on 6 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-46704 exists.\n\nAffected packages and fixed versions:\n- genieacs (npm): affected all versions; fixed in 1.2.8\n- genieacs (npm): affected all versions; fixed in 1.2.8\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-46704/ (Markdown: https://insights.sbomify.com/CVE-2021-46704/index.md)","id":"CVE-2021-46704","markdown":"https://insights.sbomify.com/CVE-2021-46704/index.md","name":"CVE-2021-46704","record":{"aliases":["GHSA-2877-693q-pj33"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GenieACS CWMP server","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary OS commands via the ping host argument in the GenieACS UI API due to insufficient input validation.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"genieacs","vendor":"genieacs"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","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":"In GenieACS 1.2.x before 1.2.8, the UI interface API is vulnerable to unauthenticated OS command injection via the ping host argument (lib/ui/api.ts and lib/ping.ts). The vulnerability arises from insufficient input validation combined with a missing authorization check.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2023-06-21","github_poc":2,"max_poc_stars":2,"metasploit":0,"nuclei":1,"refs":[{"date":"2023-06-21T12:29:43Z","kind":"github_poc","ref":"https://github.com/MithatGuner/CVE-2021-46704-POC","stars":2,"title":"CVE-2021-46704 GenieACS Command Injection POC"},{"date":"2023-06-22T05:03:15Z","kind":"github_poc","ref":"https://github.com/Erenlancaster/CVE-2021-46704","stars":0,"title":"CVE-2021-46704 Nuclei template"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-46704.yaml","stars":null,"title":"GenieACS =\u003e 1.2.8 - OS Command Injection"}],"tier":"weaponised"},"has_fix":true,"headline":"OS Command Injection in GenieACS","id":"CVE-2021-46704","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":2,"n_references":2,"next":{"headline":"grub2-once uses fixed file name in /var/tmp","id":"CVE-2021-46705"},"packages":[{"ecosystem":"npm","fixed":["1.2.8"],"introduced":["0"],"last_affected":[],"package":"genieacs","purl":null,"source":"GHSA-2877-693q-pj33"},{"ecosystem":"npm","fixed":["1.2.8"],"introduced":["0"],"last_affected":[],"package":"genieacs","purl":"pkg:npm/genieacs","source":"GHSA-2877-693q-pj33"}],"prev":{"headline":"Code injection in RazorEngine","id":"CVE-2021-46703"},"products":["n/a"],"published":"2022-03-06","related":[{"cvss_score":7.5,"headline":"GenieACS has an unauthenticated access vulnerability via the NBI API endpoint","id":"CVE-2025-56015","kev_date_added":null,"published":"2026-04-07"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["n/a"]},"summary":"Unauthenticated attackers can execute arbitrary OS commands via the ping host argument in the GenieACS UI API due to insufficient input validation.","url":"https://insights.sbomify.com/CVE-2021-46704/"}