Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Bluetooth-Attacks-CVE-2025-27840 — Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi & Bluetooth | Kitploit
Tools/GitHubGitHub/demining/bluetooth-attacks-cve-2025-27840
Embedded Systems SecurityBluetooth SecurityIoT SecurityVulnerability AnalysisExploitationWireless SecurityCryptographyHardware & IoT SecurityPapers & Research

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Learning & Education
GitHubdemining/bluetooth-attacks-cve-2025-27840

Bluetooth-Attacks-CVE-2025-27840

Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi & Bluetooth

View RepositoryWebsite
125171 year agoNot yet reviewed
Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi and Bluetooth

This paper discusses how an attacker can introduce a hidden list of vulnerabilities through module updates, which can lead to compromise of ESP32 devices and gaining unauthorized access to private keys, affecting billions of devices using this microcontroller. One of the key issues is the CVE-2025-27840 vulnerability discovered in the ESP32 architecture. To ensure security for the Bitcoin network, we identified the following vulnerabilities, where the possibility of using invalid private keys due to the lack of a lower bound check in the function  has_invalid_privkey; a vulnerability in the transaction signature forgery in the function  electrum_sig_hash due to incompatibility with BIP-137; a weak PRNG issue in the key generation function  random_key, making personal private keys for cryptocurrency wallets predictable; lack of verification of points on the ECC curve in the function  multiply, which can lead to invalid curve attacks; a vulnerability in the function  ecdsa_raw_sign when restoring the Y-coordinate, potentially leading to a substitution of the public key; and vulnerabilities related to deprecated hashing APIs in the  bin_ripemd160.


  • Tutorial: https://youtu.be/nBeZWm2z5o4
  • Tutorial: https://cryptodeeptech.ru/bitcoin-bluetooth-attacks
  • Tutorial: https://dzen.ru/video/watch/6784be61b09e46422395c236
  • Google Colab: https://colab.research.google.com/drive/15lPDHeTo7FkrPY7v4qS7X6hO4x27qT2Y

In early March 2025, Tarlogic Security identified a vulnerability in the ESP32 microcontroller, which is widely used to connect devices via WiFi and Bluetooth. This vulnerability was filed under the number CVE-2025-27840 . Attackers can unauthorizedly access Bitcoin wallet data by using the ESP32 chip as a point for cryptographic attacks on devices running on the networks of popular cryptocurrencies such as Bitcoin and Ethereum. This issue affects millions of IoT devices that use this microcontroller. Exploiting this vulnerability will allow attackers to carry out attacks disguised as legitimate users and permanently infect vulnerable devices. This threatens the security of IoT devices based on the ESP32 microcontroller and can lead to the theft of private keys of Bitcoin wallets.

ESP32 is a microcontroller that is widely used in IoT devices to provide Wi-Fi and Bluetooth connectivity. Attackers can use various methods to gain access to the private key data of Bitcoin wallets through ESP32.

Security threats related to the ESP32 microcontroller can lead to the theft of private keys of Bitcoin wallets. The main problems include the presence of backdoors and vulnerabilities. Using such vulnerabilities, they can manipulate memory, spoof MAC addresses, and inject malicious code, which creates serious security risks.

Attackers can attack IoT devices with an ESP32 microcontroller using vulnerabilities in Bluetooth and Wi-Fi connections, which can become a tool for attacking other devices on the Bitcoin-related network, as well as stealing confidential information, including private keys for Bitcoin wallets.


Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi & Bluetoothhttps://youtu.be/nBeZWm2z5o4


Hidden list of vulnerabilities:

An attacker can update modules and introduce a list of various vulnerabilities into the code, including:

  • A vulnerability in the function  has_invalid_privkeythat can be used to obtain the private key.
  • A vulnerability in the function  electrum_sig_hashallows forging Bitcoin transaction signatures.
  • Vulnerability in the function  random_keyrelated to a weak pseudo-random number generator (non-deterministic PRNG).
  • Vulnerability in the function  multiplywhere there is no check of a point on the ECC curve.
  • Vulnerabilities in functions  ecdsa_raw_sign and  bin_ripemd160.

These vulnerabilities can be used to inject fake updates into ESP32 devices, giving attackers low-level access to the system. This will allow them to bypass code audit controls and gain access to private keys. Currently, billions of devices may be vulnerable due to hidden features of a single component in their architecture, which is designated as CVE-2025-27840.


Vulnerability for obtaining private key in function has_invalid_privkey

This vulnerability was found in Bitcoin’s private key verification code, allowing invalid keys (less than or equal to 0) to be used due to the lack of a lower bound check. This can lead to loss of funds. To fix this, a check must be added to ensure that the private key is greater than 0. The code is provided for demonstration purposes.


Bitcoin Cryptanalysis: CVE-2025-27840 Vulnerability in ESP32 Microcontrollers Puts Billions of IoT Devices at Risk via Wi-Fi and Bluetoothhttps://github.com/primal100/pybitcointools/blob/e7c96bfe1f4be08a9f3c540e598a73dc20ca2462/cryptos/main.py#L305
Download Tool