ESP-IDF: Stack-based memory corruption in lwIP DNS/SNTP handling for multi-IP DNS responses
CVE-2026-113783Published 4 Nov 2026, 19:04 UTC
Real-world risk
2.7/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| esp-idfNiche | >= 5.2.3, <= 5.2.8; >= 5.3.2, < 5.3.7; >= 5.4.0, < 5.4.5; >= 5.5.0, < 5.5.6; >= 6.0.0, < 6.0.3 | 5.3.7, 5.4.5, 5.5.6, 6.0.3 |
What to do
Update to a fixed version: 5.3.7, 5.4.5, 5.5.6, 6.0.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.4% chance of exploitation in 30 days (percentile 40), as of 2026-12-04.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.45 × threat 0.852.677
- Rounded to one decimal between 0.1 and 102.7
Exploitation and evidence timeline
- 4 Nov 2026 Published
- 3 Dec 2026 Risk 2.7 (cvss fallback)
Weakness
CWE-121
References
- https://github.com/espressif/esp-idf/security/advisories/GHSA-ch63-jxm5-vmvfvendor-advisory
- https://github.com/espressif/esp-idf/commit/75f2ff7e0c2d19e113293ec122b701c83d2f6665misc
- https://github.com/espressif/esp-idf/commit/7ab85eb4dc7d7695960d940badcd62592c365056misc
- https://github.com/espressif/esp-idf/commit/882843dbf838b0c02e09d46bb6283bda73496b8cmisc
- https://github.com/espressif/esp-idf/commit/98e6e7a08fca391563651a1e751cc45a3b27d18bmisc
- https://github.com/espressif/esp-idf/commit/af7543d00a4d7b489e010a70b59fd3d8022a40f4misc
- https://github.com/espressif/esp-idf/commit/defaa2f559470acfee5e2e5ea80a79b73424d483misc
- CVE-2026-113783 on CVE.org