Known vulnerabilities in every Arduino ESP32 core
For core 2.0.17, still behind many projects, Espressif's own tool reports at least 24 known CVEs, 4 of them critical. For core 4.0.0 it reports 2. We ran it on every release; this is what it found, what of it applies, and when it matters for a sketch.
The numbers here come from a table of every Arduino ESP32 core release, checked between 2026-11-15 and 2026-12-04 with Espressif's own esp-idf-sbom against the NVD. The table has the full list of CVEs for each release.
The short version
- Core 2.0.17, the last 2.x release (2024-05-23) and still the version behind many tutorials and older projects, gets at least 24 known vulnerabilities from Espressif's tool, 4 of them critical; 19 are in mbed TLS 2.28.7. Read one by one, at least five of them do not apply (one critical among them), as explained below.
- Core 4.0.0 (2026-11-19), on ESP-IDF v6.1.1, has 2, none critical, both in the NimBLE Bluetooth stack. The last 3.x release, 3.3.13, has 6.
- Newer was not always better: core 3.0.0 had 33, more than 2.0.17. The large drop came only in 3.3.11, from 20 to 4.
- A CVE in a component is not a hole in every sketch. Whether one matters depends on what the sketch uses, which is the second half of this post.
Why look at the core at all
An Arduino sketch for the ESP32 is not only the sketch. The core is built on Espressif's ESP-IDF, and every sketch is linked with that ESP-IDF's mbed TLS, lwIP, FreeRTOS, cJSON and the rest. When one of them has a known vulnerability, your firmware has it too, until it is rebuilt with a newer core. Nothing in the Arduino IDE tells you that.
Espressif publishes the tool to check this, esp-idf-sbom, but it works on an ESP-IDF tree, not on an Arduino core. So we found the exact ESP-IDF commit behind each core release and ran the check on that commit.
The numbers

| Core | ESP-IDF | mbed TLS | Critical | High | Total |
|---|---|---|---|---|---|
| 2.0.14 2023-10-04 | v4.4.6 | 2.28.4 | 4 | 11 | 28 |
| 2.0.17 2024-05-23 | v4.4.7 | 2.28.7 | 4 | 10 | 24 |
| 3.0.0 2024-05-27 | v5.1.4 | 3.5.2 | 9 | 10 | 33 |
| 3.1.3 2025-02-17 | v5.3.2 | 3.6.2 | 6 | 7 | 24 |
| 3.2.1 2025-07-03 | v5.4.2 | 3.6.3 | 6 | 6 | 21 |
| 3.3.0 2025-07-23 | v5.5 | 3.6.3 | 6 | 6 | 21 |
| 3.3.5 2025-12-19 | v5.5.1 | 3.6.5 | 5 | 9 | 18 |
| 3.3.10 2026-06-05 | v5.5.4 | 3.6.5 | 4 | 10 | 20 |
| 3.3.11 2026-07-22 | v5.5.5 | 3.6.6 | 3 | 4 | |
| 3.3.12 2026-09-18 | v5.5.5 | 3.6.6 | 3 | 4 | |
| 3.3.13 2026-11-17 | v5.5.6 | 3.6.7 | 4 | 6 | |
| 4.0.0 2026-11-19 | v6.1.1 | 4.1.1 | 1 | 2 |
Every release is in the full table. Core 2.0.0 to 2.0.13 cannot be checked: their ESP-IDF has no SBOM manifests.
Core 2.x: frozen with mbed TLS 2.28.7
The 2.x line ended with 2.0.17 on ESP-IDF v4.4.7. Its mbed TLS stayed at 2.28.7, and fixes released since, some of them in the same 2.28 line (CVE-2024-28960 was fixed in 2.28.8), never reached it. Of its 24 known vulnerabilities, 19 are in mbed TLS. The four critical ones:
- CVE-2025-47917, mbed_tls 2.28.7, CVSS 9.8
- CVE-2026-34877, mbed_tls 2.28.7, CVSS 9.8
- CVE-2025-66409, esp-idf 4.4.7, CVSS 9.1
- CVE-2026-34872, mbed_tls 2.28.7, CVSS 9.1
24 is a floor, not a count: ESP-IDF 4.4 has no SBOM manifests for several components, among them wpa_supplicant and the NimBLE Bluetooth stack, so those were not checked at all.
What the tool reports, and what applies
The numbers on this page are what esp-idf-sbom reports, which follows the version ranges in the NVD. Those ranges are sometimes wider than the advisory. Reading the 24 for 2.0.17 one by one, at least five do not apply to this build on their own description:
- CVE-2026-34872, one of the four critical ones: the advisory names mbed TLS 3.5.x and 3.6.x only, while the NVD range is every version before 3.6.6.
- CVE-2021-36647: fixed in mbed TLS 2.27.0, before 2.28.
- CVE-2025-66442: only with LLVM's select-optimize; the ESP32 toolchain is GCC.
- CVE-2024-28115: the FreeRTOS MPU ports, which the ESP32 does not use.
- CVE-2025-55297: the BluFi example in ESP-IDF, not a library a sketch links.
That leaves 19, three of them critical, before asking whether a given sketch reaches the code at all. We kept the tool's numbers in the tables so they can be checked against it, and we would rather say this than have a reader find it.
Core 3.x: more components checked, then a clean-up
Core 3.0.0 moved to ESP-IDF 5.1 and showed 33 known vulnerabilities. Part of that is better coverage, not worse code: ESP-IDF 5 has manifests for more components, so more of them are checked. Through 3.3.10 the count stayed around twenty, because mbed TLS kept getting new CVEs as fast as the core picked up new versions.
Core 3.3.11 moved to ESP-IDF v5.5.5 with mbed TLS 3.6.6, which fixed the mbed TLS CVEs and the ESP-IDF ones of 5.5.4 at once: 20 became 4. What is left in 3.3.12 is four CVEs in cJSON 1.7.19, three high and one medium; 3.3.13 adds 2 in the NimBLE Bluetooth stack.
Core 4.0: a new ESP-IDF
Core 4.0.0 came out on 2026-11-19 and moves to ESP-IDF v6.1.1 with mbed TLS 4.1.1. The tool reports 2 known vulnerabilities for it, in the NimBLE Bluetooth stack, and cJSON is no longer among the components it checks there. It is a major release, so sketches and libraries may need changes before they build with it.
Does it matter for your sketch?
Not every one does. A known vulnerability matters when the vulnerable code runs and an attacker can reach it:
- mbed TLS runs when the sketch uses TLS:
WiFiClientSecure,HTTPClientto anhttps://address, MQTT over TLS, HTTPS OTA. A sketch that never opens a TLS connection does not run most of it. - cJSON runs when something calls it on input from outside. Most Arduino sketches parse JSON with ArduinoJson, a separate library that these CVEs are not about; some ESP-IDF components and libraries use cJSON internally.
- Bluetooth CVEs need Bluetooth on: CVE-2025-66409 is in the AVRCP profile, used for Bluetooth Classic audio, and the NimBLE ones only matter when the sketch uses Bluetooth LE through NimBLE.
- Wi-Fi and the IP stack (wpa_supplicant, lwIP) run on every networked ESP32, so a CVE there is the kind to take seriously.
So the count says how much there is to check, not how exposed a device is. The cheap answer is still the same: build with a current core, and the question mostly goes away.
Which core do you have?
In the Arduino IDE: Tools → Board → Boards Manager, search esp32; the version of esp32 by Espressif Systems is the core. In PlatformIO, the build output names the framework package it uses. To have the firmware say it itself:
Serial.printf("Arduino core %d.%d.%d, ESP-IDF %s\n",
ESP_ARDUINO_VERSION_MAJOR, ESP_ARDUINO_VERSION_MINOR,
ESP_ARDUINO_VERSION_PATCH, esp_get_idf_version());
That tells you what a device in the field is running, which is the version that counts, not the one installed on your laptop today.
What to do
- Move to the newest core your board and libraries support; going from 2.x to 3.x needs some changes to sketches (Espressif has a migration guide in the arduino-esp32 documentation).
- Rebuild and ship firmware when a new core comes out, not only when your own code changes. A device that never gets an update keeps the core it left with.
- For a product, keep the SBOM of each build and watch it. The EU Cyber Resilience Act asks manufacturers for exactly that (what it asks).
Pinscope does the last two: it checks the SBOM of your build every day and emails you when a new vulnerability appears in it (free for one build), and updates devices over the air, including Arduino sketches, behind NAT and 4G.
How this was checked
For each release tag of arduino-esp32: the ESP-IDF version from tools/sdk/versions.txt (2.x) or the esp32-arduino-libs version (3.x), the commit placed with git describe, and esp-idf-sbom manifest check on that commit against the NVD, checked between 2026-11-15 and 2026-12-04. New CVEs published since then are not counted. CVEs Espressif has marked as not applicable to ESP-IDF are left out; severity is the NVD's CVSS base severity. Espressif's own notes are in its security advisories. Found a mistake? hello@pinscope.dev.
Arduino is a trademark of Arduino SA; ESP-IDF and Espressif are trademarks of Espressif Systems. This page is not affiliated with or endorsed by either.
More
- Remote access to an ESP32 without TLS: what it measured and what it costs
- Reaching an ESP32 web server from outside its network
- Updating ESP32 firmware over the internet, with rollback
- Guru Meditation Error: decoding the backtrace, and crashes from the field
- Remote logging: ESP_LOG without a serial cable
- Heap and stack monitoring in the field
- An ESP32 behind CGNAT, 4G or Starlink
- TLS memory usage on the ESP32, and how to reduce it
- Sharing an ESP32 sensor page with anyone, without port forwarding
- ArduinoOTA over the internet, with a rollback
- ESP32 remote access compared: port forwarding, ngrok, Cloudflare Tunnel, Tailscale
- esp_http_server slow? The 250 ms delay and the fix
- Before the first ESP32 ships: a field support checklist
- ESP32 exception decoder: a Guru Meditation backtrace to lines, in the browser