ESPAsyncWebServerのマルチパート解析に脆弱性、遠隔からサービス拒否の恐れ
概要
ESPAsyncWebServerでマルチパート形式のデータを解析する処理に、NULLポインターへの書き込みの脆弱性が見つかりました。細工したリクエストを送られると、ESP32ではデバイスが例外を起こして再起動し、遠隔からサービス拒否の状態になるおそれがあります。影響するのは3.11.2より前の版で、3.11.2で修正されています。ファイルアップロードやWeb OTAの機能を使っている場合は、修正版への更新をおすすめします。
AI要約
SecPulse が外部の生成 AI を使って作った要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
ESPAsyncWebServerでマルチパート形式のデータを解析する処理に、NULLポインターへの書き込みの脆弱性が見つかりました。細工したリクエストを送られると、ESP32ではデバイスが例外を起こして再起動し、遠隔からサービス拒否の状態になるおそれがあります。影響するのは3.11.2より前の版で、3.11.2で修正されています。ファイルアップロードやWeb OTAの機能を使っている場合は、修正版への更新をおすすめします。
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
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.
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- web github.com