{"id":"CVE-2026-62966","summary":"ESPAsyncWebServer multipart parser has null-pointer write","details":"ESPAsyncWebServer is an asynchronous HTTP and WebSocket server library for ESP32, ESP8266, RP2040 and RP2350. Prior to version 3.11.2, the multipart parser in `src/WebRequest.cpp` frees `_itemBuffer` and sets it to NULL when `BOUNDARY_OR_DATA` matches the closing boundary of a file part, before confirming the following terminator, while leaving `_itemIsFile` true. If the next byte is neither the final closing dashes nor a clean CRLF, the `DASH3_OR_RETURN2` or `EXPECT_FEED2` rewind branch re-injects provisionally consumed bytes through `itemWriteByte`. Because `_itemIsFile` remains true, `_itemBuffer`[`_itemBufferIndex`++] writes through a null pointer. On ESP32 this causes a `StoreProhibited` exception, panic and device reboot, producing remote denial of service. A route with a non-trivial body/upload handler, such as a file-upload or web-OTA endpoint, must be present. This issue is fixed in version 3.11.2.","aliases":["GHSA-8m8p-vhxc-jmjw"],"modified":"2026-11-08T07:11:30.462311173Z","published":"2026-10-30T20:53:37.292Z","database_specific":{"cwe_ids":["CWE-476","CWE-672"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62966.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/ESP32Async/ESPAsyncWebServer/tree/v3.11.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/62xxx/CVE-2026-62966.json"},{"type":"ADVISORY","url":"https://github.com/ESP32Async/ESPAsyncWebServer/security/advisories/GHSA-8m8p-vhxc-jmjw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-62966"},{"type":"FIX","url":"https://github.com/ESP32Async/ESPAsyncWebServer/commit/4efbd35e597d91f01749f2d4a14bb78fba8ea02e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/esp32async/espasyncwebserver","events":[{"introduced":"0"},{"fixed":"89954654a02e5acaebee3cd3fb7fc9d2a46ac834"},{"fixed":"4efbd35e597d91f01749f2d4a14bb78fba8ea02e"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"3.11.2"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"4efbd35e597d91f01749f2d4a14bb78fba8ea02e"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v3.11.1","v3.11.0","v3.10.3","v3.10.2","v3.10.1","v3.10.0","v3.9.6","v3.9.5","v3.9.4","v3.9.3","v3.9.2","v3.9.1","v3.9.0","v3.8.1","v3.8.0","v3.7.10","v3.7.9","v3.7.8","v3.7.7","v3.7.6","v3.7.5","v3.7.4","v3.7.3","v3.7.2","v3.7.1","v3.7.0","v3.6.2","v3.6.1","v3.6.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-62966.json","vanir_signatures":[{"id":"CVE-2026-62966-13d68a88","signature_type":"Function","signature_version":"v1","source":"https://github.com/esp32async/espasyncwebserver/commit/4efbd35e597d91f01749f2d4a14bb78fba8ea02e","target":{"file":"src/WebRequest.cpp","function":"AsyncWebServerRequest::_parseMultipartPostByte"},"deprecated":false,"digest":{"function_hash":"317830596167781103938459087025299011748","length":5824}},{"deprecated":false,"digest":{"line_hashes":["189328759699576000282789025689487091849","239112933899564100548092059941149991104","57789338315127246795705317473647072314","218414193814096449943570698995914427409","252268143549853470747907397416556036400","159541657131724933171760609363337227888","37375395580869109958763977281927563364","170253019847571814534893283195536037335"],"threshold":0.9},"id":"CVE-2026-62966-89ef1fb8","signature_type":"Line","signature_version":"v1","source":"https://github.com/esp32async/espasyncwebserver/commit/4efbd35e597d91f01749f2d4a14bb78fba8ea02e","target":{"file":"src/WebRequest.cpp"}},{"id":"CVE-2026-62966-d913a520","signature_type":"Function","signature_version":"v1","source":"https://github.com/esp32async/espasyncwebserver/commit/4efbd35e597d91f01749f2d4a14bb78fba8ea02e","target":{"file":"src/WebRequest.cpp","function":"AsyncWebServerRequest::_handleUploadByte"},"deprecated":false,"digest":{"length":363,"function_hash":"117013972368662106320310198045115265332"}}],"vanir_signatures_modified":"2026-11-08T07:11:30Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}