Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPosition to influence device DNS responses
-
DeliveryReturn hostname with multiple A/AAAA records
-
ExploitDevice caches the multiple addresses
-
ExecutionCached lookup copies all into single-element stack buffer
-
ImpactCanary-corruption reboot or attacker-controlled stack overwrite
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires CONFIG_LWIP_DNS_MAX_HOST_IP set to 2 or higher - ESP-IDF's default is 1, under which the overflow cannot occur, but the protocols/dns_over_https example ships with a value of 4. The device must resolve a hostname that returns multiple A or AAAA records through an API supplying a single-element ip_addr_t buffer (dns_gethostbyname()/dns_gethostbyname_addrtype(), e.g. the lwIP SNTP client). The overflow fires only on a subsequent cache-served lookup, not the first network resolution, and the attacker must be network-positioned to influence or spoof DNS responses. Limiting factors: the non-default multi-IP config is the primary gate (hence AC:H), ESP-IDF v5.1 and earlier are not affected, and enabling stack smashing protection downgrades silent corruption to a deterministic abort/reboot. |
| Impact | Signals are mixed and point to a conditional, non-default-configuration flaw rather than a broad emergency. The CVSS 3.1 vector (7.4, AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H) correctly captures a network-reachable, unauthenticated issue whose AC:H reflects real preconditions: CONFIG_LWIP_DNS_MAX_HOST_IP must be greater than 1 (ESP-IDF default is 1), the device must resolve a hostname returning multiple A/AAAA records, the call must go through a single-element-buffer API (e.g. the SNTP client), and the overflow only fires on a subsequent cache-served lookup. No EPSS score is provided in the input and the CVE is not on CISA KEV, so there is no evidence of widespread or active exploitation; the only exploitation-related references are the vendor advisory and fix commits, not exploit code, so no public exploit is identified at time of analysis. The vuln.today decision label is this_week, consistent with a serious but conditioned defect rather than act_now/emergency. Real-world impact is split by build configuration: with stack smashing protection enabled the overflow becomes a deterministic reboot (remote DoS), while the ESP-IDF default CONFIG_COMPILER_STACK_CHECK_MODE is NONE, under which the overflow silently overwrites adjacent stack variables with attacker-controlled address bytes and may, depending on architecture and stack layout, redirect control flow - the vendor describes this as possible, not demonstrated. Net: a genuine this-week priority for devices built with the non-default multi-IP DNS option (notably anything derived from the dns_over_https example, which ships CONFIG_LWIP_DNS_MAX_HOST_IP=4), but lower practical urgency for the default-configuration fleet where the overflow cannot occur. |
| Exploit ScenarioDerived | An attacker positioned to influence DNS responses (a rogue or spoofed DNS server) returns multiple A or AAAA records for a hostname the device resolves, such as an NTP pool queried by the SNTP client. On a subsequent cache-served lookup, dns_lookup() copies every cached address into the caller's single ip_addr_t buffer, overflowing adjacent stack memory - corrupting the canary to force a reboot, or (under the default build with no stack protection) overwriting stack variables with attacker-controlled bytes and potentially redirecting control flow. No public exploit is identified at time of analysis, and because legitimate multi-record hostnames trigger the same path, affected devices can also crash without any attacker. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 04, 2026
A stack-based buffer overflow in the lwIP DNS resolver shipped with Espressif ESP-IDF allows a network-positioned attacker who can influence DNS responses to smash stack memory on devices that have raised CONFIG_LWIP_DNS_MAX_HOST_IP above its default of 1. Affected releases are v5.2.3 through v5.2.8, v5.3.2 through v5.3.6, v5.4 through v5.4.4, v5.5 through v5.5.5 and v6.0 through v6.0.2; with stack smashing protection enabled the result is a deterministic abort and reboot (remote denial of service), while without it the attacker's raw address bytes overwrite adjacent stack variables and may permit control-flow redirection. Exploitation is gated by the non-default multi-IP configuration and by an API consumer that supplies a single-element ip_addr_t buffer (for example the lwIP SNTP client), and it only triggers on a cache-served lookup rather than the first network resolution; no public exploit code has been identified at time of analysis.
RemediationAI
Upgrade to a release containing the fix: v5.5.6 or v6.0.3 are available now, while v5.4.5 and v5.3.7 are scheduled but not yet released; users on the end-of-life v5.2 line (v5.2.3 through v5.2.8) must migrate to a supported branch because no fix will be issued there. The vendor states that upgrading is the complete fix, and the corresponding branch commits are 75f2ff7 (master), 98e6e7a (release/v6.1), defaa2f (release/v6.0), af7543d (release/v5.5), 882843d (release/v5.4) and 7ab85eb (release/v5.3), per https://github.com/espressif/esp-idf/security/advisories/GHSA-ch63-jxm5-vmvf. Where an upgrade is not yet possible, the vendor's documented workaround is to keep CONFIG_LWIP_DNS_MAX_HOST_IP=1, the default, since with a single cached address per hostname the overflow cannot occur - note that this reduces the number of addresses returned by getaddrinfo()/gethostbyname() and defeats multi-address load balancing or failover, and the protocols/dns_over_https example would need its value of 4 lowered. Enabling stack smashing protection (CONFIG_COMPILER_STACK_CHECK_MODE_ALL=y or _STRONG) does not prevent the overflow but converts silent memory corruption into a deterministic abort, trading potential control-flow compromise for a guaranteed reboot; it also carries code-size and performance overhead. Users on a release that does not yet contain the fix should keep the default value or migrate to a release that does.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a classic stack-based buffer overflow (CWE-121) in the cached-lookup path of dns_lookup() in lwIP's dns.c. lwIP's upstream dns_gethostbyname() and dns_gethostbyname_addrtype() APIs accept a single ip_addr_t pointer with no accompanying length parameter, so the resolver has no way of knowing the caller's buffer capacity. When CONFIG_LWIP_DNS_MAX_HOST_IP is greater than 1 and a cached entry holds multiple A or AAAA records, the copy loop iterates over every cached address through an incrementing index and writes sequentially past the single-element buffer into adjacent stack memory. The first resolution of a hostname traverses the network path and is unaffected; only subsequent lookups served from the DNS cache overflow. The vendor fix bounds the copy loop to the caller's capacity and adds explicit-count variants (dns_gethostbyname_addrtype_n(), netconn_gethostbyname_*_n()) for callers that genuinely want multiple addresses, while the socket API (getaddrinfo()/gethostbyname()) continues to return up to DNS_MAX_HOST_IP addresses. The associated Kconfig change also constrains the value to the range 1-8 and makes the new multi-IP APIs return ERR_ARG when 0 < addr_cnt <= DNS_MAX_HOST_IP is not satisfied. Note that the AC:H rating in the CVSS vector reflects the non-default configuration and DNS-influence preconditions rather than any timing or race characteristic; the trigger mechanism itself is the unbounded copy loop described above.
Know when Esp Idf gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
AV:N as the attacker influences DNS over the network; AC:H and PR:N/UI:N because exploitation needs the non-default multi-IP config plus a cached multi-record lookup but no credentials; C:N with I:H/A:H for stack overwrite and reboot.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
ESP-IDF is the Espressif Internet of Things (IOT) Development Framework. From 5.2.3 until 5.3.7, 5.4.5, 5.5.6, and 6.0.3, the lwIP DNS resolver's cached-lookup path in dns_lookup() in dns.c copies every cached address into a caller-provided single ip_addr_t output buffer without a length parameter or bounds check. When CONFIG_LWIP_DNS_MAX_HOST_IP is greater than 1 and a cached hostname has multiple A or AAAA records, a subsequent lookup through dns_gethostbyname() or dns_gethostbyname_addrtype() writes beyond the single-element buffer into adjacent stack memory. A network-positioned attacker who influences DNS responses can cause a reboot through stack-canary corruption or, without stack protection, overwrite stack variables with attacker-controlled address bytes and potentially redirect control flow. This issue is fixed in versions 5.5.6 and 6.0.3 and is scheduled to be fixed in versions 5.3.7 and 5.4.5. No fixed release is available for the end-of-life 5.2 line.
Technical POC Analysis
CWE-121, stack-based buffer overflow, in the lwIP DNS resolver bundled with ESP-IDF: the cached-lookup path of dnslookup() in dns.c.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Espressif ESP-IDF, a core software framework for IoT devices, is affected by a high-severity vulnerability in its DNS resolver that can cause device crashes and potential control-flow hijacking. Exploitation requires a non-default configuration and a specific API usage pattern, but if realized, it could lead to remote denial of service or deeper compromise of affected devices. Leadership should care because this affects the reliability and security of IoT fleets built on ESP-IDF, with potential operational disruption and risk of broader network compromise.
No vendor-released patch identified at time of analysis. Interim mitigations: revert CONFIG_LWIP_DNS_MAX_HOST_IP to the default of 1; avoid using single-element ip_addr_t buffers with the DNS resolver; apply network segmentation and DNS filtering to reduce the risk of malicious DNS responses; enable stack smashing protection to convert potential control-flow hijacking into a denial-of-service condition (reboot) rather than arbitrary code execution.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass. Rated high severity (
The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 allows th
An encryption-bypass issue was discovered on Espressif ESP-IDF devices through 4.2, ESP8266_NONOS_SDK devices through 3.
Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to execute arbitrary code via a crafted script t
The EAP peer implementation in Espressif ESP-IDF 2.0.0 through 4.0.0 and ESP8266_NONOS_SDK 2.2.0 through 3.1.0 processes
A security vulnerability in the ESP-NOW protocol implementation within the ESP Wi-Fi component of (CVSS 9.8). Critical s
Isolation-boundary escape on Espressif ESP32-C5, ESP32-C6, ESP32-C61 and ESP32-H2 devices running ESP-IDF with the ESP-T
Privilege escalation from REE to TEE in Espressif ESP-IDF 5.5.4 and 6.0 lets a low-privileged user-application caller ab
ESP-IDF is the official development framework for Espressif SoCs. Rated high severity (CVSS 8.8), this vulnerability is
The Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier does not properly restrict the Feature Page up
Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to obtain sensitive information via the external
Denial of service in Espressif's ESP-IDF JPEG driver (versions 6.0.1, 5.5.4, 5.4.4, 5.3.5 and likely earlier) stems from
EUVD-2026-117052
NVD
CVE.org
EPSS
GitHub
Exploit-DB