{"answers":{"affected":"It affects 32 products.","exploited":"There is no known exploitation of CVE-2018-6831 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-6831 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-6831 is a high-severity command injection vulnerability in n/a, published on 9 Jul 2018. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-6831 and fix it if it is affected.\n\nWhat it is: CVE-2018-6831 is a high-severity command injection vulnerability in n/a, published on 9 Jul 2018. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-6831 in the wild and no public exploit code.\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-2018-6831/ (Markdown: https://insights.sbomify.com/CVE-2018-6831/index.md)","id":"CVE-2018-6831","markdown":"https://insights.sbomify.com/CVE-2018-6831/index.md","name":"CVE-2018-6831","record":{"aliases":["GHSA-299g-mw53-xpxq"],"analysis":{"component_type":"iot_embedded","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Foscam IP camera","requires_auth":"high_privilege","summary":"Remote authenticated attackers can execute arbitrary commands on Foscam IP cameras via the ntpServer argument due to improper input sanitization.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"c1_firmware","vendor":"foscam"},{"product":"c1_lite_firmware","vendor":"foscam"},{"product":"c2_firmware","vendor":"foscam"},{"product":"fi9800p_firmware","vendor":"foscam"},{"product":"fi9803ep_firmware","vendor":"foscam"},{"product":"fi9803p_firmware","vendor":"foscam"},{"product":"fi9804p_firmware","vendor":"foscam"},{"product":"fi9804w_firmware","vendor":"foscam"},{"product":"fi9805e_firmware","vendor":"foscam"},{"product":"fi9805p_firmware","vendor":"foscam"},{"product":"fi9805w_firmware","vendor":"foscam"},{"product":"fi9815p_firmware","vendor":"foscam"},{"product":"fi9816p_firmware","vendor":"foscam"},{"product":"fi9818w_firmware","vendor":"foscam"},{"product":"fi9821ep_firmware","vendor":"foscam"},{"product":"fi9821p_firmware","vendor":"foscam"},{"product":"fi9821w_firmware","vendor":"foscam"},{"product":"fi9826p_firmware","vendor":"foscam"},{"product":"fi9826w_firmware","vendor":"foscam"},{"product":"fi9828p_firmware","vendor":"foscam"},{"product":"fi9828w_firmware","vendor":"foscam"},{"product":"fi9831p_firmware","vendor":"foscam"},{"product":"fi9831w_firmware","vendor":"foscam"},{"product":"fi9851p_firmware","vendor":"foscam"},{"product":"fi9853ep_firmware","vendor":"foscam"},{"product":"fi9900ep_firmware","vendor":"foscam"},{"product":"fi9900p_firmware","vendor":"foscam"},{"product":"fi9901ep_firmware","vendor":"foscam"},{"product":"fi9928p_firmware","vendor":"foscam"},{"product":"fi9961ep_firmware","vendor":"foscam"},{"product":"r2_firmware","vendor":"foscam"},{"product":"r4_firmware","vendor":"foscam"}],"cvss":{"score":7.2,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"The setSystemTime function in Foscam Cameras C1 Lite V3, and C1 V3 with firmware 2.82.2.33 and earlier, FI9800P V3, FI9803P V4, FI9851P V3, and FI9853EP V2 2.84.2.33 and earlier, FI9816P V3, FI9821EP V2, FI9821P V3, FI9826P V3, and FI9831P V3 2.81.2.33 and earlier, C1, C1 V2, C1 Lite, and C1 Lite V2 2.52.2.47 and earlier, FI9800P, FI9800P V2, FI9803P V2, FI9803P V3, and FI9851P V2 2.54.2.47 and earlier, FI9815P, FI9815P V2, FI9816P, and FI9816P V2, 2.51.2.47 and earlier, R2 and R4 2.71.1.59 and earlier, C2 and FI9961EP 2.72.1.59 and earlier, FI9900EP, FI9900P, and FI9901EP 2.74.1.59 and earlier, FI9928P 2.74.1.58 and earlier, FI9803EP and FI9853EP 2.22.2.31 and earlier, FI9803P and FI9851P 2.24.2.31 and earlier, FI9821P V2, FI9826P V2, FI9831P V2, and FI9821EP 2.21.2.31 and earlier, FI9821W V2, FI9831W, FI9826W, FI9821P, FI9831P, and FI9826P 2.11.1.120 and earlier, FI9818W V2 2.13.2.120 and earlier, FI9805W, FI9804W, FI9804P, FI9805E, and FI9805P 2.14.1.120 and earlier, FI9828P, and FI9828W 2.13.1.120 and earlier, and FI9828P V2 2.11.1.133 and earlier allows remote authenticated users to execute arbitrary commands via a ';' in the ntpServer argument.  NOTE: this issue exists because of an incomplete fix for CVE-2017-2849.","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":"Command injection in n/a","id":"CVE-2018-6831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2018"},"n_packages":0,"n_references":2,"next":{"headline":"Memory corruption in n/a","id":"CVE-2018-6832"},"packages":[],"prev":{"headline":"Path traversal in n/a","id":"CVE-2018-6830"},"products":["n/a"],"published":"2018-07-09","related":[{"cvss_score":9.9,"headline":"Auth bypass in Foscam Indoor IP Camera C1 Series","id":"CVE-2017-2872","kev_date_added":null,"published":"2018-09-17"},{"cvss_score":9.8,"headline":"Missing authorization in Foscam C1 Indoor HD Camera","id":"CVE-2017-2877","kev_date_added":null,"published":"2018-09-19"},{"cvss_score":9.6,"headline":"Auth bypass in Foscam","id":"CVE-2017-2871","kev_date_added":null,"published":"2018-04-17"},{"cvss_score":8.8,"headline":"Command injection in Foscam C1 Indoor HD Camera","id":"CVE-2017-2873","kev_date_added":null,"published":"2018-09-19"},{"cvss_score":8.8,"headline":"Memory corruption in Foscam C1 Indoor HD Camera","id":"CVE-2017-2875","kev_date_added":null,"published":"2018-09-19"},{"cvss_score":8.8,"headline":"Memory corruption in Foscam C1 Indoor HD Camera","id":"CVE-2017-2876","kev_date_added":null,"published":"2018-09-19"},{"cvss_score":8.8,"headline":"Memory corruption in Foscam C1 Indoor HD Camera","id":"CVE-2017-2878","kev_date_added":null,"published":"2018-09-19"}],"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-08-05","vendors":["n/a"]},"summary":"Remote authenticated attackers can execute arbitrary commands on Foscam IP cameras via the ntpServer argument due to improper input sanitization.","url":"https://insights.sbomify.com/CVE-2018-6831/"}