{"answers":{"affected":"4 open source packages ship an affected version, including electron.","exploited":"There is no known exploitation of CVE-2024-46992 in the wild and no public exploit code.","fix":"Upgrade electron to a fixed version for your release line: 30.0.5 or 31.0.0-beta.1.","what":"CVE-2024-46992 is a high-severity vulnerability in electron, published on 1 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-46992 and fix it if it is affected.\n\nWhat it is: CVE-2024-46992 is a high-severity vulnerability in electron, published on 1 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-46992 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electron (npm): affected from 30.0.0-alpha.1; fixed in 30.0.5\n- electron (npm): affected from 30.0.0-alpha.1; fixed in 30.0.5\n- electron (npm): affected from 31.0.0-alpha.1; fixed in 31.0.0-beta.1\n- electron (npm): affected from 31.0.0-alpha.1; fixed in 31.0.0-beta.1\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-2024-46992/ (Markdown: https://insights.sbomify.com/CVE-2024-46992/index.md)","id":"CVE-2024-46992","markdown":"https://insights.sbomify.com/CVE-2024-46992/index.md","name":"CVE-2024-46992","record":{"aliases":["GHSA-xw5q-g62x-2qjc"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Electron framework","requires_auth":"low_privilege","summary":"Attackers can bypass ASAR integrity checks on Windows to execute arbitrary code if they have write access to the application directory.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.8,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"}],"description":"Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From versions 30.0.0-alpha.1 to before 30.0.5 and 31.0.0-alpha.1 to before 31.0.0-beta.1, Electron is vulnerable to an ASAR Integrity bypass. This only impacts apps that have the embeddedAsarIntegrityValidation and onlyLoadAppFromAsar fuses enabled. Apps without these fuses enabled are not impacted. This issue is specific to Windows, apps using these fuses on macOS are not impacted. Specifically this issue can only be exploited if the app is launched from a filesystem the attacker has write access too. i.e. the ability to edit files inside the .app bundle on macOS which these fuses are supposed to protect against. This issue has been patched in versions 30.0.5 and 31.0.0-beta.1. There are no workarounds for this issue.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Electron ASAR Integrity bypass by just modifying the content","id":"CVE-2024-46992","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"security_feature_bypass","year":"2024"},"n_packages":4,"n_references":2,"next":{"headline":"Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath","id":"CVE-2024-46993"},"packages":[{"ecosystem":"npm","fixed":["30.0.5"],"introduced":["30.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-xw5q-g62x-2qjc"},{"ecosystem":"npm","fixed":["30.0.5"],"introduced":["30.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-xw5q-g62x-2qjc"},{"ecosystem":"npm","fixed":["31.0.0-beta.1"],"introduced":["31.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-xw5q-g62x-2qjc"},{"ecosystem":"npm","fixed":["31.0.0-beta.1"],"introduced":["31.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-xw5q-g62x-2qjc"}],"prev":{"headline":"SSRF Loopback IP filter bypass in directus","id":"CVE-2024-46990"},"products":["electron"],"published":"2025-07-01","related":[],"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-07-01","vendors":["electron"]},"summary":"Attackers can bypass ASAR integrity checks on Windows to execute arbitrary code if they have write access to the application directory.","url":"https://insights.sbomify.com/CVE-2024-46992/"}