ESPAsyncWebServerのマルチパート解析に脆弱性、遠隔からサービス拒否の恐れ
Summary
ESPAsyncWebServerでマルチパート形式のデータを解析する処理に、NULLポインターへの書き込みの脆弱性が見つかりました。細工したリクエストを送られると、ESP32ではデバイスが例外を起こして再起動し、遠隔からサービス拒否の状態になるおそれがあります。影響するのは3.11.2より前の版で、3.11.2で修正されています。ファイルアップロードやWeb OTAの機能を使っている場合は、修正版への更新をおすすめします。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
ESPAsyncWebServerでマルチパート形式のデータを解析する処理に、NULLポインターへの書き込みの脆弱性が見つかりました。細工したリクエストを送られると、ESP32ではデバイスが例外を起こして再起動し、遠隔からサービス拒否の状態になるおそれがあります。影響するのは3.11.2より前の版で、3.11.2で修正されています。ファイルアップロードやWeb OTAの機能を使っている場合は、修正版への更新をおすすめします。
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com