Stack-based buffer overflow in ESP-IDF - CVE-2026-113783

 

Stack-based buffer overflow in ESP-IDF - CVE-2026-113783

Published: November 4, 2026


Vulnerability identifier: #VU159290
CSH Severity: Medium
CVSS v4: 8.3 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-113783
CWE-ID: CWE-121
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to corrupt stack memory, alter program logic, and cause a denial of service, potentially redirecting control flow.

The vulnerability exists due to a stack-based buffer overflow in the lwIP DNS resolver's dns_lookup() function in dns.c when copying multiple cached IP addresses into a single-element ip_addr_t output buffer without bounds checking. A remote attacker can influence DNS responses to supply multiple attacker-controlled address records, causing subsequent cached lookups through dns_gethostbyname() or dns_gethostbyname_addrtype() to overwrite adjacent stack memory and disrupt or alter program execution.


Affected software

ESP-IDF

How to mitigate CVE-2026-113783

Install security update from vendor's website.

ESP-IDF - addressed in versions 5.5.6, 6.0.3

External References

Related Security Bulletins