Electron Vulnerable to Heap Buffer Overflow in NativeImage::CreateFromPath (electron electron)

CVE-2024-46993
MEDIUM 4.4

At a glance

Source
NVD
EPSS
EPSS 0.16 % Β· percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
GitHub_M
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-122 β€” Heap-based Buffer Overflow

References

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 4.4CVSS: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:UGitHub_M
CVSS 4.0MEDIUM 4.4CVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD Β· security-advisories@github.com (Secondary)

Advisories

European references

Affected products

ProductVersions
electron Β· electronaffected < 28.3.2 ; affected >= 29.0.0-alpha.1, < 29.3.3 ; affected >= 30.0.0-alpha.1, < 30.0.3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD