{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-4221 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-4221 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-4221 is a critical command injection vulnerability in Asus NAS-M25, published on 1 Dec 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-2022-4221 and fix it if it is affected.\n\nWhat it is: CVE-2022-4221 is a critical command injection vulnerability in Asus NAS-M25, published on 1 Dec 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-4221 in the wild and no public exploit code.\n\nAffected product: Asus NAS-M25. 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-4221/ (Markdown: https://insights.sbomify.com/CVE-2022-4221/index.md)","id":"CVE-2022-4221","markdown":"https://insights.sbomify.com/CVE-2022-4221/index.md","name":"CVE-2022-4221","record":{"aliases":["GHSA-pqv9-66jx-6q5v"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"ASUS NAS","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary OS commands on ASUS NAS devices via unsanitized cookie values.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"ONEKEY","cpe":[{"product":"nas-m25_firmware","vendor":"asus"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","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":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') vulnerability in Asus NAS-M25 allows an unauthenticated attacker to inject arbitrary OS commands via unsanitized cookie values.This issue affects NAS-M25: through 1.0.1.7.","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":"OS command injection in ASUS M25 NAS","id":"CVE-2022-4221","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":"SourceCodester Canteen Management System POST Request ajax_invoice.php query sql injection","id":"CVE-2022-4222"},"packages":[],"prev":{"headline":"Chained Quiz \u003c= 1.3.2.4 - Cross-Site Request Forgery to Question Deletion","id":"CVE-2022-4220"},"products":["NAS-M25"],"published":"2022-12-01","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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-14","vendors":["Asus"]},"summary":"Unauthenticated attackers can execute arbitrary OS commands on ASUS NAS devices via unsanitized cookie values.","url":"https://insights.sbomify.com/CVE-2022-4221/"}