{"answers":{"affected":"6 open source packages ship an affected version, including electron. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1000006 exists.","fix":"Upgrade electron to a fixed version for your release line: 1.6.16, 1.7.11 or 1.8.2-beta.4.","what":"CVE-2018-1000006 is a high-severity command injection vulnerability in n/a, published on 24 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2018-1000006 and fix it if it is affected.\n\nWhat it is: CVE-2018-1000006 is a high-severity command injection vulnerability in n/a, published on 24 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1000006 exists.\n\nAffected packages and fixed versions:\n- electron (npm): affected from 1.6.0; fixed in 1.6.16\n- electron (npm): affected from 1.6.0; fixed in 1.6.16\n- electron (npm): affected from 1.7.0; fixed in 1.7.11\n- electron (npm): affected from 1.7.0; fixed in 1.7.11\n- electron (npm): affected from 1.8.0; fixed in 1.8.2-beta.4\n- electron (npm): affected from 1.8.0; fixed in 1.8.2-beta.4\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-1000006/ (Markdown: https://insights.sbomify.com/CVE-2018-1000006/index.md)","id":"CVE-2018-1000006","markdown":"https://insights.sbomify.com/CVE-2018-1000006/index.md","name":"CVE-2018-1000006","record":{"aliases":["GHSA-w222-53c6-c86p"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Electron framework","requires_auth":"none","summary":"Attackers can execute arbitrary commands on Windows systems if users click crafted URLs in Electron apps with custom protocol handlers.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"electron","vendor":"atom"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/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":"GitHub Electron versions 1.8.2-beta.3 and earlier, 1.7.10 and earlier, 1.6.15 and earlier has a vulnerability in the protocol handler, specifically Electron apps running on Windows 10, 7 or 2008 that register custom protocol handlers can be tricked in arbitrary command execution if the user clicks on a specially crafted URL. This has been fixed in versions 1.8.2-beta.4, 1.7.11, and 1.6.16.","ecosystems":["npm"],"exploits":{"exploitdb":2,"first_seen":"2018-01-25","github_poc":1,"max_poc_stars":39,"metasploit":1,"nuclei":0,"refs":[{"date":"2018-01-25T02:38:44Z","kind":"github_poc","ref":"https://github.com/CHYbeta/CVE-2018-1000006-DEMO","stars":39,"title":"The Demo for CVE-2018-1000006"},{"date":"2018-01-25","kind":"exploitdb","ref":"43899","stars":null,"title":"Exodus Wallet (ElectronJS Framework) - Remote Code Execution"},{"date":"2018-01-25","kind":"metasploit","ref":"exploit/windows/browser/exodus","stars":null,"title":"Exodus Wallet (ElectronJS Framework) remote Code Execution"},{"date":"2018-03-29","kind":"exploitdb","ref":"44357","stars":null,"title":"Exodus Wallet (ElectronJS Framework) - Remote Code Execution (Metasploit)"}],"tier":"weaponised"},"has_fix":true,"headline":"Remote Code Execution in electron","id":"CVE-2018-1000006","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"command_injection","year":"2018"},"n_packages":6,"n_references":6,"next":{"headline":"Information disclosure in n/a","id":"CVE-2018-1000007"},"packages":[{"ecosystem":"npm","fixed":["1.6.16"],"introduced":["1.6.0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-w222-53c6-c86p"},{"ecosystem":"npm","fixed":["1.6.16"],"introduced":["1.6.0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-w222-53c6-c86p"},{"ecosystem":"npm","fixed":["1.7.11"],"introduced":["1.7.0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-w222-53c6-c86p"},{"ecosystem":"npm","fixed":["1.7.11"],"introduced":["1.7.0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-w222-53c6-c86p"},{"ecosystem":"npm","fixed":["1.8.2-beta.4"],"introduced":["1.8.0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-w222-53c6-c86p"},{"ecosystem":"npm","fixed":["1.8.2-beta.4"],"introduced":["1.8.0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-w222-53c6-c86p"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2018-1000005"},"products":["n/a"],"published":"2018-01-24","related":[{"cvss_score":7.8,"headline":"High severity vulnerability that affects electron","id":"CVE-2016-1202","kev_date_added":null,"published":"2016-04-25"},{"cvss_score":4.3,"headline":"Electron vulnerable to URL spoofing via PDFium","id":"CVE-2017-1000424","kev_date_added":null,"published":"2018-01-02"}],"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":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can execute arbitrary commands on Windows systems if users click crafted URLs in Electron apps with custom protocol handlers.","url":"https://insights.sbomify.com/CVE-2018-1000006/"}