CVE-2022-29257
JSON

6.6medium

Electron's AutoUpdater module fails to validate certain nested components of the bundle

Severity
6.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.93% (higher than 61% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-77xc-hjv8-ww97

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript (JS), HTML, and CSS. A vulnerability in versions prior to 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 allows attackers who have control over a given apps update server / update storage to serve maliciously crafted update packages that pass the code signing validation check but contain malicious code in some components. This kind of attack would require significant privileges in a potential victim's own auto updating infrastructure and the ease of that attack entirely depends on the potential victim's infrastructure security. Electron versions 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 contain a fix for this issue. There are no known workarounds.

Affected

Product or packageVersionsReported by
electron electron< 15.5.5, >= 16.0.0-beta.1, < 16.2.6, >= 17.0.0-beta.1, < 17.2.0, >= 18.0.0-beta.1, <= 18.0.0-beta.5CVE List
electron (npm)before 15.5.0, from 16.0.0 before 16.2.0, from 17.0.0 before 17.2.0, from 18.0.0-beta.1 before 18.0.0-beta.6GitHub Advisory Database
electronjs electronbefore 15.5.0, from 16.0.1 before 16.2.0, from 17.0.1 before 17.2.0, 16.0.0, 17.0.0, 18.0.0NVD

All scores

GitHub_M6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
GitHub6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

CWE-20

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Electron is a framework for writing cross-platform desktop applications using JavaScript (JS), HTML, and CSS. A vulnerability in versions prior to 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 allows attackers who have control over a given apps update server / update storage to serve maliciously crafted update packages that pass the code signing validation check but contain malicious code in some components. This kind of attack would require significant privileges in a potential victim's own auto updating infrastructure and the ease of that attack entirely depends on the potential victim's infrastructure security. Electron versions 18.0.0-beta.6, 17.2.0, 16.2.6, and 15.5.5 contain a fix for this issue. There are no known workarounds.

GitHub Advisory Database
Impact

This vulnerability allows attackers who have control over a given apps update server / update storage to serve maliciously crafted update packages that pass the code signing validation check but contain malicious code in some components.

Please note that this kind of attack would require significant privileges in your own auto updating infrastructure and the ease of that attack entirely depends on your infrastructure security.

Patches

This has been patched and the following Electron versions contain the fix:

  • 18.0.0-beta.6
  • 17.2.0
  • 16.2.0
  • 15.5.0
Workarounds

There are no workarounds for this issue, please update to a patched version of Electron.

For more information

If you have any questions or comments about this advisory, email us at security@electronjs.org

NVD (es)

Electron es un marco de trabajo para escribir aplicaciones de escritorio multiplataforma utilizando JavaScript (JS), HTML y CSS. Una vulnerabilidad en versiones anteriores a 18.0.0-beta.6, 17.2.0, 16.2.6 y 15.5.5, permite a atacantes que presentan el control de un determinado servidor de actualización de aplicaciones / almacenamiento de actualizaciones servir paquetes de actualización maliciosamente diseñados que pasan la comprobación de comprobación de la firma de código pero que contienen código malicioso en algunos componentes. Este tipo de ataque requeriría privilegios significativos en la propia infraestructura de actualización automática de una víctima potencial y la facilidad de ese ataque depende totalmente de la seguridad de la infraestructura de la víctima potencial. Electron versiones 18.0.0-beta.6, 17.2.0, 16.2.6 y 15.5.5 contienen una corrección para este problema. No se presentan mitigaciones conocidas

References

Sources

SourceRecordLicence
CVE ListCVE-2022-29257 changed 2025-04-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-77xc-hjv8-ww97 changed 2023-11-08CC-BY-4.0
NVDCVE-2022-29257 changed 2026-06-17Public domain