Skip to content
Heist/ feed
Back to feed
Critical

Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow

Type: advisorySources: OSV

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 42.3.1 until 42.3.3, Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow. Most apps will crash and some may perform incorrect buffer allocations in the Node.js Buffer API resulting in unexpected truncation or allocation. This vulnerability is fixed in 42.3.3.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-54257
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 07:54 UTC · Revision 1

Source evidence

Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow

core-osv · Original source

Published 23 Jun 2026, 17:08 UTC

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 42.3.1 until 42.3.3, Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow. Most apps will crash and some may perform incorrect buffer allocations in the Node.js Buffer API resulting in unexpected truncation or allocation. This vulnerability is fixed in 42.3.3.

osv:CVE-2026-54257
Complete source record
{
  "id": "91cb5f6155c19d57328aa27daef0488b82e200b67d185abcef6ac131a6966c1b",
  "url": "https://osv.dev/vulnerability/CVE-2026-54257",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow",
    "summary": "Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. From 42.3.1 until 42.3.3, Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow. Most apps will crash and some may perform incorrect buffer allocations in the Node.js Buffer API resulting in unexpected truncation or allocation. This vulnerability is fixed in 42.3.3.",
    "evidence": "osv:CVE-2026-54257",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-54257",
      "aliases": [
        "CVE-2026-54257",
        "GHSA-q6m5-f73j-m9mc"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/electron/electron",
              "type": "GIT",
              "events": [
                {
                  "introduced": "297c6e3ee41697d9d4d3bc0c9d6243b8608d55e5"
                },
                {
                  "fixed": "22bbbc9f265d4b6f138f6dc7451891241037a780"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "42.3.1"
                      },
                      {
                        "fixed": "42.3.3"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "42.3.3"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v42.3.2",
            "v42.3.1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-54257.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.971326320Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54257.json",
        "https://github.com/electron/electron/security/advisories/GHSA-q6m5-f73j-m9mc",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-54257"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-120"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54257.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-54257",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 500988,
  "published_at": "2026-06-23T17:08:31.786+00:00"
}