Out-of-bounds write in ESP-IDF - CVE-2022-24893

 

Out-of-bounds write in ESP-IDF - CVE-2022-24893

Published: June 23, 2022 / Updated: May 13, 2026


Vulnerability identifier: #VU131329
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-24893
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to out-of-bounds write in the ESP-BLE-MESH provisioning message handling logic when processing a crafted Transaction Start PDU during provisioning. A remote attacker can send a specially crafted provisioning PDU with an invalid SegN field to execute arbitrary code.

The issue occurs because the SegN field is not checked, which can cause firmware to handle a message larger than the available global buffer.


Affected software

ESP-IDF

How to mitigate CVE-2022-24893

Install security update from vendor's website.

ESP-IDF - addressed in versions 4.1.4, 4.2.4, 4.3.3, 4.4.2

External References

Related Security Bulletins