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

Overview

ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. The BluFi example bundled in ESP-IDF was vulnerable to memory overflows in two areas: Wi-Fi credential handling and Diffie–Hellman key exchange. This vulnerability was discovered on August 21, 2025 and is tracked as CVE-2025-55297. The vulnerability affects versions prior to 5.4.1, 5.3.3, 5.1.6, and 5.0.9 (GitHub Advisory).

Technical details

The vulnerability manifests in two key areas: Wi-Fi credential handling and Diffie–Hellman key exchange. In the credential handling functions, strncpy was incorrectly used with the input length instead of the size of the destination buffer. During the Diffie–Hellman key exchange, a fixed-size buffer was used to store the public key without validating its size against peer-supplied parameters. The vulnerability has been assigned a CVSS v4.0 base score of 5.2 (Medium) with the vector string CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U (NVD).

Impact

These vulnerabilities could allow an attacker to overflow buffers located in global memory. The buffer overflow in the Diffie–Hellman key exchange could result in memory corruption or unexpected behavior. The impact is particularly concerning as it affects the security of the Wi-Fi provisioning process (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in versions 5.4.1, 5.3.3, 5.1.6, and 5.0.9. Users are recommended to upgrade to these patched versions. For those who cannot upgrade, the fixes can be cherry-picked from the provided commits. Additionally, for higher security requirements, it is recommended to implement custom encryption, decryption, authentication, and checksum algorithms by customizing the security callbacks in the BluFi framework (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
NoNoJun 24, 2025
CVE-2025-65092MEDIUM6.9
  • Espressif ESP-IDF ToolsEspressif ESP-IDF Tools
  • cpe:2.3:a:espressif:esp-idf
NoNoNov 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
NoNoDec 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