CVE-2025-52471CWE-191

ESP-NOW Integer Underflow Vulnerability Advisory

High · published June 24, 2025

CVSS v4.0
7.2
EPSS
1%
Percentile
59.7
In the wild
Unconfirmed
What it is

⚡ An integer underflow in ESP-NOW can lead to some serious mischief! This vulnerability lurks in the ESP-IDF framework, affecting versions 5.4.1 down to 5.1.6. 🔥 Think of this like a poorly designed vending machine that accepts negative amounts for snacks — a user could end up triggering a delivery of an unlimited supply of goodies, but in this case, it’s arbitrary code execution instead! An attacker could exploit this vulnerability to perform out-of-bounds memory access, which means they could potentially run any code they want on your device. If you’re not careful, this could lead to full control over the affected IoT hardware, turning your innocent gadget into a hacker's playground!

Put simply

Think of this like a poorly designed vending machine that accepts negative amounts for snacks — a user could end up triggering a delivery of an unlimited supply of goodies, but in this case, it’s arbitrary code execution instead! The vulnerability arises from insufficient validation of the user-supplied data length in the ESP-NOW protocol's packet receive function, allowing for integer underflows and unauthorized memory writes, particularly on systems lacking memory protection.

What to do

An attacker could exploit this vulnerability to perform out-of-bounds memory access, which means they could potentially run any code they want on your device. If you’re not careful, this could lead to full control over the affected IoT hardware, turning your innocent gadget into a hacker's playground! Upgrade to versions 5.4.2, 5.3.4, 5.2.6, or 5.1.6 to ensure proper validation logic is in place. For versions 5.3 and earlier, implement a workaround by checking that the `data_len` parameter is positive before processing it further. Don't leave your devices vulnerable! You’ve got this! Just follow these steps and your IoT devices will be safer in no time. 🛡️

The record
Technical detail
CVSS v4.0
7.2 · HIGH
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
EPSS
0.00914 · 59.7th percentile
Weakness
CWE-191 · Integer Underflow (Wrap or Wraparound)
Published
2025-06-24T19:53Z
EPSS history
Timeline
  • 24 JUN 19:53Z
    ESP-NOW Integer Underflow Vulnerability Advisory
    cvelistv5