{
  "id": "CVE-2026-42854",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-42854",
  "published_at": "2026-05-12T21:56:33.437Z",
  "title": "arduino-esp32: Stack buffer overflow in WebServer multipart boundary parsing leads to remote crash potential RCE",
  "vendor": "espressif",
  "product": "arduino-esp32",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "arduino-esp32 is an Arduino core for the ESP32, ESP32-S2, ESP32-S3, ESP32-C3, ESP32-C6 and ESP32-H2 microcontrollers. Prior to 3.3.8, the WebServer multipart form parser in arduino-esp32 allocates a Variable Length Array (VLA) on the stack whose size is derived from an attacker-controlled HTTP header field (Content-Type: multipart/form-data; boundary=...) without enforcing any length limit. Sending a boundary string longer than ~8000 characters overflows the 8192-byte task stack of the loopTask, causing a crash and potential remote code execution. This vulnerability is fixed in 3.3.8.",
  "cwe": "CWE-121",
  "cpes": [
    "cpe:2.3:a:espressif:arduino-esp32:*:-:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "espressif",
        "product": "arduino-esp32",
        "ranges": [
          "\u003c 3.3.8"
        ],
        "fixed_in": [
          "3.3.8"
        ]
      }
    ],
    "upgrade": [
      "Upgrade arduino-esp32 to 3.3.8 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/espressif/arduino-esp32/security/advisories/GHSA-8cmm-3887-r32j"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
