# CVE-2026-113783: ESP-IDF: Stack-based memory corruption in lwIP DNS/SNTP handling for multi-IP DNS responses

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.61% (percentile 43, 2026-11-28)
- **CWE:** CWE-121
- **Published:** 2026-11-04T19:04:16.828Z
- **Modified:** 2026-11-12T20:07:11.090Z

## Who should check

- Anyone running espressif esp-idf \>= 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

## Description

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.

## Affected and fixed versions

- espressif esp-idf: \>= 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 (cvelist)

## Mitigation

- Upgrade esp-idf to 6.0.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-113783. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-113783.md
Affected: espressif esp-idf >= 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
Fixed in: espressif esp-idf 5.3.7, espressif esp-idf 5.4.5, espressif esp-idf 5.5.6, espressif esp-idf 6.0.3

Steps:
1. Search this machine and project for espressif esp-idf: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-113783 being exploited?

There is no confirmed exploitation: CVE-2026-113783 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.61% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-113783?

High: CVSS 7.4 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-113783?

espressif esp-idf \>= 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.

### Is there a fix for CVE-2026-113783?

Yes. Fixed in espressif esp-idf 5.3.7, espressif esp-idf 5.4.5, espressif esp-idf 5.5.6, espressif esp-idf 6.0.3. Upgrade esp-idf to 6.0.3 or later.

### How do I check if I'm affected by CVE-2026-113783?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/espressif/esp-idf/security/advisories/GHSA-ch63-jxm5-vmvf>
- patch: <https://github.com/espressif/esp-idf/commit/75f2ff7e0c2d19e113293ec122b701c83d2f6665>
- patch: <https://github.com/espressif/esp-idf/commit/7ab85eb4dc7d7695960d940badcd62592c365056>
- patch: <https://github.com/espressif/esp-idf/commit/882843dbf838b0c02e09d46bb6283bda73496b8c>
- patch: <https://github.com/espressif/esp-idf/commit/98e6e7a08fca391563651a1e751cc45a3b27d18b>
- patch: <https://github.com/espressif/esp-idf/commit/af7543d00a4d7b489e010a70b59fd3d8022a40f4>
- patch: <https://github.com/espressif/esp-idf/commit/defaa2f559470acfee5e2e5ea80a79b73424d483>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-113783>

HTML: <https://flawdb.com/CVE-2026-113783> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-113783>
