llamaCVEVulnerability Intelligence
/
esp-idf

CVE-2026-113783

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

Specific setups onlyParche disponiblestack buffer overflow
Descargar PNG JSON
CVSS 3.1
7.4
Alta
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche4 versiones5.3.7 · 5.4.5 · 5.5.6 · 6.0.3
Exposición14 dDesde la divulgación, 4 nov 2026, 2:04 p. m.
Detección13 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, no automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Monitoreo
Detectada +1
Fuente: OSV
Verificada
4 nov 26
9 nov 26
16 nov 26
19 nov 26
4 nov 26
8 nov 26
12 nov 26
15 nov 26
19 nov 26
FechaFaseEventoDetalle
Divulgación Publicada CVE-2026-113783 divulgada · CVSS 7.4 (CNA)
Monitoreo Detectada Ingresó al índice
Monitoreo Fuente: NIST NVD Registro visto por primera vez en NIST NVD
Divulgación Evaluación SSVC CISA-ADP · explotación ninguna
Divulgación Modificada Última actualización del registro
Monitoreo Fuente: OSV Registro visto por primera vez en OSV
Monitoreo Verificada Última verificación contra las fuentes
Resumen
Resumen generado por IA · CC-BY 4.0 · 4 nov 2026

Espressif's ESP-IDF framework for IoT devices has a stack-based memory corruption flaw in its lwIP DNS lookup handling, which occurs when a cached hostname has multiple A or AAAA records and the configuration allows more than one address per host. An attacker who can influence DNS responses can reach it remotely, without logging in, and can cause a device reboot or potentially redirect control flow.

Affects ESP-IDF 5.2.3-5.2.8, 5.3.2-5.3.6, 5.4.0-5.4.4, 5.5.0-5.5.5 and 6.0.0-6.0.2 with CONFIG_LWIP_DNS_MAX_HOST_IP set to 2 or higher. Fixed in 5.3.7, 5.4.5, 5.5.6 and 6.0.3.

¿Qué significa?When a hostname has several addresses and a later lookup is served from the DNS cache, lwIP writes the extra addresses past a single-element buffer on the stack. An attacker who controls DNS responses can corrupt stack memory, which with stack protection on makes the device abort and reboot, a remote denial of service.
¿Quién está afectado?Affected ESP-IDF releases are 5.2.3 through 5.2.8, 5.3.2 through 5.3.6, 5.4.0 through 5.4.4, 5.5.0 through 5.5.5 and 6.0.0 through 6.0.2. Check CONFIG_LWIP_DNS_MAX_HOST_IP in menuconfig or sdkconfig, since the default is 1; the bug needs a value of 2 or higher, and the caller must use an API that supplies a single-element buffer, such as the SNTP client.
¿Qué hacer?Upgrade to 5.3.7, 5.4.5, 5.5.6 or 6.0.3, matching the release line in use. Until then, keep CONFIG_LWIP_DNS_MAX_HOST_IP at 1, the default, so each hostname keeps one cached address and the overflow cannot occur.
Descripción original del registro (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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
CONFIG_LWIP_DNS_MAX_HOST_IP is set to 2 or higher (the ESP-IDF default is 1).“CONFIG_LWIP_DNS_MAX_HOST_IP is set to 2 or higher.”
02
A hostname resolves to multiple A or AAAA records.“a hostname that resolves to multiple A or AAAA records”
03
The lookup is served from the DNS cache, not the first network resolution.“the overflow occurs on subsequent lookups served from the DNS cache”
04
The caller resolves through an API that supplies a single-element buffer, such as the SNTP client.“through an API that supplies a single-element buffer”
¿Quién debe revisar?Teams shipping ESP-IDF firmware (5.2.3 through 6.0.2) with CONFIG_LWIP_DNS_MAX_HOST_IP of 2 or higher, using lwIP DNS or SNTP clients.
MitigaciónKeep CONFIG_LWIP_DNS_MAX_HOST_IP=1 (the default); with a single cached address per hostname the overflow cannot occur.
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:N
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida
esp-idf≥ 5.2.3 ≤ 5.2.8
esp-idf≥ 5.3.2 < 5.3.7
esp-idf≥ 5.4.0 < 5.4.5
esp-idf≥ 5.5.0 < 5.5.6
esp-idf≥ 6.0.0 < 6.0.3
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
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
esp-idf
Corregida 5.3.7, 5.4.5, 5.5.6, 6.0.3 — —
Versiones corregidas5.3.75.4.55.5.66.0.3
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/espressif/esp-idf/security/advisories/GHSA-ch63-jxm5-vmvf
Otrahttps://github.com/espressif/esp-idf/commit/75f2ff7e0c2d19e113293ec122b701c83d2f6665
Otrahttps://github.com/espressif/esp-idf/commit/7ab85eb4dc7d7695960d940badcd62592c365056
Otrahttps://github.com/espressif/esp-idf/commit/882843dbf838b0c02e09d46bb6283bda73496b8c
Otrahttps://github.com/espressif/esp-idf/commit/98e6e7a08fca391563651a1e751cc45a3b27d18b
Otrahttps://github.com/espressif/esp-idf/commit/af7543d00a4d7b489e010a70b59fd3d8022a40f4
Otrahttps://github.com/espressif/esp-idf/commit/defaa2f559470acfee5e2e5ea80a79b73424d483

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.