CWE
668 862
Advisory Published
Advisory Published
Updated

CVE-2022-21718: Renderers can obtain access to random bluetooth device without permission in Electron

First published: Tue Mar 22 2022(Updated: )

### Impact This vulnerability allows renderers to obtain access to a random bluetooth device via the [web bluetooth API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Bluetooth_API) if the app has not configured a custom `select-bluetooth-device` event handler. The device that is accessed is random and the attacker would have no way of selecting a specific device. All current stable versions of Electron are affected. ### Patches This has been patched and the following Electron versions contain the fix: * `17.0.0-alpha.6` * `16.0.6` * `15.3.5` * `14.2.4` * `13.6.6` ### Workarounds Adding this code to your app can workaround the issue. ```js app.on('web-contents-created', (event, webContents) => { webContents.on('select-bluetooth-device', (event, devices, callback) => { // Prevent default behavior event.preventDefault(); // Cancel the request callback(''); }); }); ``` For more information If you have any questions or comments about this advisory, email us at security@electronjs.org.

Credit: security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Electronjs Electron<13.6.6
Electronjs Electron>=14.0.0<14.2.4
Electronjs Electron>=15.0.0<15.3.5
Electronjs Electron>=16.0.0<16.0.6
Electronjs Electron=17.0.0-alpha1
Electronjs Electron=17.0.0-alpha2
Electronjs Electron=17.0.0-alpha3
Electronjs Electron=17.0.0-alpha4
Electronjs Electron=17.0.0-alpha5

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-21718?

    CVE-2022-21718 is a vulnerability in Electron that allows renderers to obtain access to a random Bluetooth device via the web Bluetooth API.

  • How does CVE-2022-21718 impact my system?

    CVE-2022-21718 allows unauthorized access to Bluetooth devices if the app has not configured a custom 'select-bluetooth-device' event handler.

  • What is the severity of CVE-2022-21718?

    CVE-2022-21718 has a severity value of 5 (medium).

  • How can I fix CVE-2022-21718?

    To fix CVE-2022-21718, update Electron to version 17.0.0-alpha.6 or apply the appropriate patch provided by the vendor.

  • Where can I find more information about CVE-2022-21718?

    You can find more information about CVE-2022-21718 on the Electron GitHub security advisory (GHSA-3p22-ghq8-v749) and the NVD (National Vulnerability Database) website.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203