CVE-2025-52471
Espressif ESP-IDF Tools vulnerability analysis and mitigation

Overview

ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. An integer underflow vulnerability (CVE-2025-52471) was identified in the ESP-NOW protocol implementation within the ESP Wi-Fi component affecting versions 5.4.1, 5.3.3, 5.2.5, and 5.1.6 of the ESP-IDF framework. The vulnerability was discovered by Xiaobye of DEVCORE Research Team and disclosed on June 24, 2025 (GitHub Advisory).

Technical details

The vulnerability stems from insufficient validation of user-supplied data length in the packet receive function. The issue is classified as CWE-191 (Integer Underflow) and has received a CVSS v4.0 score of 7.2 HIGH with vector string 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 (NVD).

Impact

Under certain conditions, this vulnerability may lead to out-of-bounds memory access and may allow arbitrary memory write operations. On systems without a memory protection scheme, this behavior could potentially be used to achieve remote code execution (RCE) on the target device (GitHub Advisory).

Mitigation and workarounds

In versions 5.4.2, 5.3.4, 5.2.6, and 5.1.6, ESP-NOW has added more comprehensive validation logic on user-supplied data length during packet reception to prevent integer underflow caused by negative value calculations. For ESP-IDF v5.3 and earlier, a workaround can be applied by validating that the datalen parameter received in the RX callback (registered via espnowregisterrecv_cb()) is a positive value before further processing. For ESP-IDF v5.4 and later, users are advised to upgrade to a patched version of ESP-IDF (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Espressif ESP-IDF Tools vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-52471HIGH7.2
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoYesJun 24, 2025
CVE-2025-65092MEDIUM6.9
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoYesNov 21, 2025
CVE-2025-64342MEDIUM6.9
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoYesNov 17, 2025
CVE-2025-55297MEDIUM5.2
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoYesAug 21, 2025
CVE-2025-66409LOW2.7
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoYesDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management