Skip to main content

Espressif ESP-IDF EUVDEUVD-2026-117052

| CVE-2026-113783 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-11-04 GitHub_M
7.4
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position to influence device DNS responses
  2. Delivery
    Return hostname with multiple A/AAAA records
  3. Exploit
    Device caches the multiple addresses
  4. Execution
    Cached lookup copies all into single-element stack buffer
  5. Impact
    Canary-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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

esp-idf 6.0.0, < 6.0.3
esp-idf 5.2.3, ≤ 5.2.8
esp-idf 5.4.0, < 5.4.5
esp-idf 5.5.0, < 5.5.6
esp-idf 5.3.2, < 5.3.7

Affected Packages

euvd esp_idf fix: 5.3.7, 5.4.5, 5.5.6, 6.0.3

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

Vendor (GitHub_M) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Nov 04, 2026 - 20:18 EUVD
CVE Published
Nov 04, 2026 - 19:04 cve.org
HIGH 7.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
High
Espressif ESP-IDF/ESP32 is a very widely deployed IoT firmware framework
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2024-53406 HIGH POC
8.8 Mar 13

Espressif Esp idf v5.3.0 is vulnerable to Insecure Permissions resulting in Authentication bypass. Rated high severity (

CVE-2019-12587 HIGH POC
8.1 Sep 04

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

CVE-2020-12638 MEDIUM POC
6.8 Jul 23

An encryption-bypass issue was discovered on Espressif ESP-IDF devices through 4.2, ESP8266_NONOS_SDK devices through 3.

CVE-2024-33454 MEDIUM POC
6.5 May 14

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to execute arbitrary code via a crafted script t

CVE-2019-12586 MEDIUM POC
6.5 Sep 04

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

CVE-2025-52471 CRITICAL
9.8 Jun 24

A security vulnerability in the ESP-NOW protocol implementation within the ESP Wi-Fi component of (CVSS 9.8). Critical s

CVE-2026-113780 CRITICAL
9.3 Nov 04

Isolation-boundary escape on Espressif ESP32-C5, ESP32-C6, ESP32-C61 and ESP32-H2 devices running ESP-IDF with the ESP-T

CVE-2026-45328 HIGH
8.8 Jun 10

Privilege escalation from REE to TEE in Espressif ESP-IDF 5.5.4 and 6.0 lets a low-privileged user-application caller ab

CVE-2022-24893 HIGH
8.8 Jun 25

ESP-IDF is the official development framework for Espressif SoCs. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2021-28139 HIGH
8.8 Sep 07

The Bluetooth Classic implementation in Espressif ESP-IDF 4.4 and earlier does not properly restrict the Feature Page up

CVE-2024-33453 HIGH
8.1 Oct 17

Buffer Overflow vulnerability in esp-idf v.5.1 allows a remote attacker to obtain sensitive information via the external

CVE-2026-55687 HIGH
7.5 Jul 10

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy