CVE-2026-45160 is an out-of-bounds read flaw (CWE-125) in the DHCP server option parser bundled with Espressif ESP-IDF's lwIP component — the TCP/IP stack and SoftAP DHCP server compiled directly into firmware for ESP32-family microcontrollers used throughout consumer and industrial IoT devices: the parser walks BOOTP/DHCP option bytes without checking that each option's declared length stays inside the received packet buffer, so a crafted DHCP request sent to a device acting as an access point or DHCP server can make the parser read adjacent heap memory; NVD has not, as of 2026-11-07, published its own CVSS score.
Vulnerability summary
CVSS base score
N/A
No NVD score published as of
EPSS score (FIRST)
0.2%
Probability of exploitation in the wild in the next 30 days
CISA KEV catalog
No
Not listed
Published
Vulnerability ID: CVE-2026-45160 · Source: NVD
Affected components
| Component | CPE | Version range |
|---|---|---|
| Espressif ESP-IDF — bundled lwIP component, DHCP server (components/lwip/apps/dhcpserver) | cpe:2.3:a:espressif:esp-idf:5.2.7:*:*:*:*:*:*:* | ESP-IDF 5.2.7, 5.3.5, 5.4.4, 5.5.4, 6.0.1 (fixed in 5.2.8, 5.3.6, 5.4.5, 5.5.5, 6.0.2) |
What does this mean for affected devices?
CVE-2026-45160 (CWE-125, out-of-bounds read) affects the DHCP server bundled with Espressif's ESP-IDF, the official software development framework for the ESP32 family of Wi-Fi/Bluetooth microcontrollers that ships, largely unmodified, inside the firmware of a very wide range of consumer and industrial IoT products. NVD's description states: "ESF-IDF is the Espressif Internet of Things (IOT) Development Framework. In versions 5.2.7, 5.3.5, 5.4.4, 5.5.4, and 6.0.1, an out-of-bounds read flaw exists in the DHCP server option parser (parse_options() in components/lwip/apps/dhcpserver/dhcpserver.c) shipped with ESP-IDF's lwIP component. The parser walks the BOOTP/DHCP options field without validating that each option's length byte and declared payload length stay within the received packet buffer. A crafted DHCP request can cause the parser to read past the end of the options buffer into adjacent heap memory. The issue affects the DHCP server used by ESP-IDF's SoftAP and any configuration where the device runs as a DHCP server on a local network. This issue has been patched in versions 5.2.8, 5.3.6, 5.4.5, 5.5.5, and 6.0.2" (NVD).
NVD tracks CVE-2026-45160 with status "Analyzed" but records only a GitHub Security Advisory-submitted score (source [email protected]) — CVSS v3.1 6.5 (medium), vector CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H — typed Secondary, not an NVD Primary rating, so this page does not show a headline severity score rather than presenting that figure as NVD-confirmed (NVD). That vector's AV:A (adjacent network) reflects that a DHCP exchange with an ESP32 SoftAP typically requires the attacker to already be associated with the device's local Wi-Fi network.
Espressif's own fix commits show the root cause and the repair directly: the original parse_options() loop in components/lwip/apps/dhcpserver/dhcpserver.c read each DHCP option's type and length bytes and then jumped straight into a switch statement that read fixed-size fields (such as optptr + 2 for the message-type byte, or four bytes for a requested IP address) without first confirming the option's declared length (opt_len) was long enough, or that the option even fit within the received buffer at all. The fix, titled "fix(lwip): Fix DHCP server OOB read issue," adds explicit bounds checks — breaking out of the loop when optptr + 1 >= end or when optptr + 2 + opt_len > end — and guards each field read behind an opt_len >= check before touching it (Espressif fix commit 2bf4dd1). Espressif published the issue as GitHub Security Advisory GHSA-g764-gwc3-75m5 and backported the same fix across five release branches: 5.2.8, 5.3.6, 5.4.5, 5.5.5 and 6.0.2 (NVD).
This CVE is not listed in the CISA Known Exploited Vulnerabilities catalog as of catalog version 2026.11.06, and FIRST scores the probability of exploitation at 0.00246 (15.982nd percentile) as of 2026-11-06 (CISA KEV, FIRST EPSS).
NVD has not finished its own severity analysis. In the meantime, firmware that enables ESP-IDF's SoftAP or any configuration where an ESP32-family device acts as a local DHCP server should be rebuilt against ESP-IDF 5.2.8, 5.3.6, 5.4.5, 5.5.5 or 6.0.2 (matching the branch already in use), since this DHCP server code is compiled directly into the firmware image rather than loaded from a shared system library.
Evidence
- An out-of-bounds read flaw in ESP-IDF's bundled lwIP DHCP server option parser (parse_options() in dhcpserver.c) lets a crafted DHCP request read past the options buffer into adjacent heap memory on devices running SoftAP or acting as a local DHCP server; patched in 5.2.8, 5.3.6, 5.4.5, 5.5.5 and 6.0.2. — NVD
- NVD status is "Analyzed" with a GitHub Security Advisory-submitted Secondary CVSS v3.1 6.5 (medium), vector AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H; no NVD-published Primary score. — NVD
- Espressif's fix commit adds explicit bounds checks to parse_options() so the loop breaks before reading past the declared option length or the end of the received buffer, instead of reading fixed-size fields unconditionally. — Espressif fix commit 2bf4dd1
- Not present in the CISA KEV catalog as of catalog version 2026.11.06; EPSS score is 0.00246 (15.982nd percentile) as of 2026-11-06. — FIRST EPSS

Related advisories
Sources
Frequently asked questions
What is CVE-2026-45160?
CVE-2026-45160 is an out-of-bounds read flaw (CWE-125) in the DHCP server option parser bundled with Espressif ESP-IDF's lwIP component — the TCP/IP stack and SoftAP DHCP server compiled directly into firmware for ESP32-family microcontrollers used throughout consumer and industrial IoT devices: the parser walks BOOTP/DHCP option bytes without checking that each option's declared length stays inside the received packet buffer, so a crafted DHCP request sent to a device acting as an access point or DHCP server can make the parser read adjacent heap memory; NVD has not, as of 2026-11-07, published its own CVSS score.
How severe is CVE-2026-45160?
CVE-2026-45160 has no NVD CVSS score published as of 2026-11-10, so this page gives it no severity rating rather than assuming low or high risk.
Is CVE-2026-45160 being actively exploited?
CVE-2026-45160 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. FIRST's EPSS model puts its probability of exploitation at 0.25%.
What is affected by CVE-2026-45160?
CVE-2026-45160 affects Espressif ESP-IDF — bundled lwIP component, DHCP server (components/lwip/apps/dhcpserver).
Where does this CVE-2026-45160 information come from?
This advisory is based on NVD, Espressif fix commit 2bf4dd1, CISA KEV, and FIRST EPSS, cited in full in the Sources section above.
Questions about this page?