{"answers":{"affected":"It affects 41 products.","exploited":"There is no known exploitation of CVE-2021-30166 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-30166 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-30166 is a high-severity command injection vulnerability in MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera firmware, published on 28 Apr 2021. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-30166 and fix it if it is affected.\n\nWhat it is: CVE-2021-30166 is a high-severity command injection vulnerability in MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera firmware, published on 28 Apr 2021. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-30166 in the wild and no public exploit code.\n\nAffected product: MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera 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-2021-30166/ (Markdown: https://insights.sbomify.com/CVE-2021-30166/index.md)","id":"CVE-2021-30166","markdown":"https://insights.sbomify.com/CVE-2021-30166/index.md","name":"CVE-2021-30166","record":{"aliases":["GHSA-3g9r-wrp4-36rm"],"analysis":{"component_type":"iot_embedded","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"IP camera firmware","requires_auth":"high_privilege","summary":"Remote attackers with privileged access can execute arbitrary commands via the NTP Server configuration function in LILIN IP cameras.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"twcert","cpe":[{"product":"p2g1022_firmware","vendor":"meritlilin"},{"product":"p2g1022x_firmware","vendor":"meritlilin"},{"product":"p2g1052_firmware","vendor":"meritlilin"},{"product":"p2r3022ae2_firmware","vendor":"meritlilin"},{"product":"p2r3052ae2_firmware","vendor":"meritlilin"},{"product":"p2r6322ae2_firmware","vendor":"meritlilin"},{"product":"p2r6322ae4_firmware","vendor":"meritlilin"},{"product":"p2r6352ae2_firmware","vendor":"meritlilin"},{"product":"p2r6352ae4_firmware","vendor":"meritlilin"},{"product":"p2r6522e2_firmware","vendor":"meritlilin"},{"product":"p2r6522e4_firmware","vendor":"meritlilin"},{"product":"p2r6552e2_firmware","vendor":"meritlilin"},{"product":"p2r6552e4_firmware","vendor":"meritlilin"},{"product":"p2r6822e2_firmware","vendor":"meritlilin"},{"product":"p2r6822e4_firmware","vendor":"meritlilin"},{"product":"p2r6852e2_firmware","vendor":"meritlilin"},{"product":"p2r6852e4_firmware","vendor":"meritlilin"},{"product":"p2r8822e2_firmware","vendor":"meritlilin"},{"product":"p2r8822e4_firmware","vendor":"meritlilin"},{"product":"p2r8852e2_firmware","vendor":"meritlilin"},{"product":"p2r8852e4_firmware","vendor":"meritlilin"},{"product":"p3r6322e2_firmware","vendor":"meritlilin"},{"product":"p3r6522e2_firmware","vendor":"meritlilin"},{"product":"p3r8822e2_firmware","vendor":"meritlilin"},{"product":"z2r6422ax-p_firmware","vendor":"meritlilin"},{"product":"z2r6422ax_firmware","vendor":"meritlilin"},{"product":"z2r6452ax-p_firmware","vendor":"meritlilin"},{"product":"z2r6452ax_firmware","vendor":"meritlilin"},{"product":"z2r6522x_firmware","vendor":"meritlilin"},{"product":"z2r6552x_firmware","vendor":"meritlilin"},{"product":"z2r8022ex25_firmware","vendor":"meritlilin"},{"product":"z2r8052ex25_firmware","vendor":"meritlilin"},{"product":"z2r8122x-p_firmware","vendor":"meritlilin"},{"product":"z2r8122x2-p_firmware","vendor":"meritlilin"},{"product":"z2r8152x-p_firmware","vendor":"meritlilin"},{"product":"z2r8152x2-p_firmware","vendor":"meritlilin"},{"product":"z2r8822ax_firmware","vendor":"meritlilin"},{"product":"z2r8852ax_firmware","vendor":"meritlilin"},{"product":"z3r6422x3_firmware","vendor":"meritlilin"},{"product":"z3r6522x_firmware","vendor":"meritlilin"},{"product":"z3r8922x3_firmware","vendor":"meritlilin"}],"cvss":{"score":7.2,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/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":"The NTP Server configuration function of the IP camera device is not verified with special parameters. Remote attackers can perform a command Injection attack and execute arbitrary commands after logging in with the privileged permission.","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":"MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Command Injection","id":"CVE-2021-30166","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2021"},"n_packages":0,"n_references":4,"next":{"headline":"MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Broken Authentication","id":"CVE-2021-30167"},"packages":[],"prev":{"headline":"EDIMAX Technology Co., Ltd. HD Wireless Day \u0026 Night Network Camera IC-3140W - Hard-coded password","id":"CVE-2021-30165"},"products":["P2/Z2/P3/Z3 IP camera firmware"],"published":"2021-04-28","related":[{"cvss_score":9.8,"headline":"MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Broken Authentication","id":"CVE-2021-30167","kev_date_added":null,"published":"2021-04-28"},{"cvss_score":9.8,"headline":"MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Sensitive Data Exposure-1","id":"CVE-2021-30168","kev_date_added":null,"published":"2021-04-28"},{"cvss_score":5.3,"headline":"MERIT LILIN ENT.CO.,LTD. P2/Z2/P3/Z3 IP camera - Sensitive Data Exposure-2","id":"CVE-2021-30169","kev_date_added":null,"published":"2021-04-28"}],"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-09-17","vendors":["MERIT LILIN ENT.CO.,LTD."]},"summary":"Remote attackers with privileged access can execute arbitrary commands via the NTP Server configuration function in LILIN IP cameras.","url":"https://insights.sbomify.com/CVE-2021-30166/"}