{"answers":{"affected":"6 open source packages ship an affected version, including electron.","exploited":"There is no known exploitation of CVE-2024-46993 in the wild and no public exploit code.","fix":"Upgrade electron to a fixed version for your release line: 28.3.2, 29.3.3 or 30.0.3.","what":"CVE-2024-46993 is a medium-severity memory corruption 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-46993 and fix it if it is affected.\n\nWhat it is: CVE-2024-46993 is a medium-severity memory corruption 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-46993 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- electron (npm): affected all versions; fixed in 28.3.2\n- electron (npm): affected all versions; fixed in 28.3.2\n- electron (npm): affected from 29.0.0-alpha.1; fixed in 29.3.3\n- electron (npm): affected from 29.0.0-alpha.1; fixed in 29.3.3\n- electron (npm): affected from 30.0.0-alpha.1; fixed in 30.0.3\n- electron (npm): affected from 30.0.0-alpha.1; fixed in 30.0.3\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-46993/ (Markdown: https://insights.sbomify.com/CVE-2024-46993/index.md)","id":"CVE-2024-46993","markdown":"https://insights.sbomify.com/CVE-2024-46993/index.md","name":"CVE-2024-46993","record":{"aliases":["GHSA-6r2x-8pq8-9489"],"analysis":{"component_type":"desktop_application","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Electron framework","requires_auth":"low_privilege","summary":"Attackers can trigger heap buffer overflows in Electron apps via crafted images, potentially leading to code execution or crashes.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","version":"4.0"},"cwes":[{"id":"CWE-122","name":"Heap-based Buffer Overflow"}],"description":"Electron is an open source framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. In versions prior to 28.3.2, 29.3.3, and 30.0.3, the nativeImage.createFromPath() and nativeImage.createFromBuffer() functions call a function downstream that is vulnerable to a heap buffer overflow. An Electron program that uses either of the affected functions is vulnerable to a buffer overflow if an attacker is in control of the image's height, width, and contents. This issue has been patched in versions  28.3.2, 29.3.3, and 30.0.3. 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 Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath","id":"CVE-2024-46993","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"memory_corruption","year":"2024"},"n_packages":6,"n_references":1,"next":{"headline":"baserCMS has Cross-site Scripting Vulnerability in Blog posts and Contents list Feature","id":"CVE-2024-46994"},"packages":[{"ecosystem":"npm","fixed":["28.3.2"],"introduced":["0"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-6r2x-8pq8-9489"},{"ecosystem":"npm","fixed":["28.3.2"],"introduced":["0"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-6r2x-8pq8-9489"},{"ecosystem":"npm","fixed":["29.3.3"],"introduced":["29.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-6r2x-8pq8-9489"},{"ecosystem":"npm","fixed":["29.3.3"],"introduced":["29.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-6r2x-8pq8-9489"},{"ecosystem":"npm","fixed":["30.0.3"],"introduced":["30.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":null,"source":"GHSA-6r2x-8pq8-9489"},{"ecosystem":"npm","fixed":["30.0.3"],"introduced":["30.0.0-alpha.1"],"last_affected":[],"package":"electron","purl":"pkg:npm/electron","source":"GHSA-6r2x-8pq8-9489"}],"prev":{"headline":"Electron ASAR Integrity bypass by just modifying the content","id":"CVE-2024-46992"},"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-02","vendors":["electron"]},"summary":"Attackers can trigger heap buffer overflows in Electron apps via crafted images, potentially leading to code execution or crashes.","url":"https://insights.sbomify.com/CVE-2024-46993/"}