
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-34781 is a NULL Pointer Dereference vulnerability in the Electron framework's clipboard.readImage() API that can cause a denial of service (process crash) when the system clipboard contains malformed image data. It affects Electron versions prior to 39.8.5, 40.0.0-alpha.1 through 40.8.4, 41.0.0-alpha.1 through 41.0.x, and 42.0.0-alpha.1 through 42.0.0-alpha.4. The vulnerability was reported by researcher frostb1ten, disclosed on April 7, 2026, and has a CVSS v3.1 base score of 2.8 (Low) (GitHub Advisory).
The root cause is a missing null check (CWE-476: NULL Pointer Dereference) in shell/common/api/electron_api_clipboard.cc. When clipboard.readImage() is called, gfx::PNGCodec::Decode() attempts to decode clipboard contents as a PNG; if decoding fails, it returns a null SkBitmap. This null bitmap was previously passed unchecked to gfx::Image::CreateFrom1xBitmap(), which triggers a controlled abort and crashes the Electron process. The fix adds a null check — returning an empty gfx::Image when the bitmap is null — matching an existing pattern in skia_util.cc (GitHub PR #50475, Commit a48f03f). Exploitation requires local access and user interaction, and only affects applications that explicitly call clipboard.readImage().
Successful exploitation results in a process crash (denial of service) of the affected Electron application. There is no risk of memory corruption, code execution, or data exfiltration — confidentiality and integrity are not impacted. The availability impact is limited to the crashing of the specific Electron process; the scope is unchanged and does not extend to other system components (GitHub Advisory).
No public exploit code or in-the-wild exploitation has been reported for this vulnerability. The EPSS score is approximately 0.014% (0.000140), indicating a very low probability of exploitation in the wild. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires that a local user place malformed image data on the system clipboard and that the target application calls clipboard.readImage(), making opportunistic exploitation unlikely (GitHub Advisory, Feedly).
clipboard.readImage() (e.g., by reviewing its source code or observing clipboard-related functionality in the UI).xclip, pbcopy, or a custom program using OS clipboard APIs).clipboard.readImage() — for example, using a paste shortcut or a UI action that reads clipboard image content.SkBitmap returned by the failed PNG decode is passed to gfx::Image::CreateFrom1xBitmap(), triggering a controlled abort and crashing the Electron process (GitHub PR #50475, GitHub Advisory).gfx::Image::CreateFrom1xBitmap or electron_api_clipboard.cc in stack traces..dmp on Windows, core dumps on Linux/macOS) generated by the Electron process in the application's crash reporting directory.Upgrade to one of the following patched Electron versions: 39.8.5, 40.8.5, 41.1.0, or 42.0.0-alpha.5 (GitHub Release v39.8.5, GitHub Release v40.8.5). As a temporary workaround, application developers should validate clipboard contents using clipboard.availableFormats() before calling clipboard.readImage() to reduce (but not eliminate) the risk. The Electron team notes this workaround only narrows the window of exposure and upgrading to a fixed version is the recommended long-term solution (GitHub Advisory).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."