Mongooseに認証前の脆弱性、TLS接続で処理が停止するおそれ
Summary
Mongooseの組み込みTLS処理に、認証なしの遠隔からTLSのClientHelloを細工して、メモリの範囲外を読み取らせる脆弱性が見つかりました。細工されたハンドシェイクで、ワーカーやプロセスが止まるおそれがあります。7.24より前の版が対象で、修正版は7.24です。MG_TLS_BUILTINを使っている場合は、7.24以降に更新してください。
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.
Mongooseの組み込みTLS処理に、認証なしの遠隔からTLSのClientHelloを細工して、メモリの範囲外を読み取らせる脆弱性が見つかりました。細工されたハンドシェイクで、ワーカーやプロセスが止まるおそれがあります。7.24より前の版が対象で、修正版は7.24です。MG_TLS_BUILTINを使っている場合は、7.24以降に更新してください。
Original description The description as published by the source.
Mongoose is an embedded web server and network library. Prior to 7.24, a remote unauthenticated TLS client can cause a heap out-of-bounds read in mg_tls_server_recv_hello() in src/tls_builtin.c and the generated mongoose.c when Mongoose uses MG_TLS_BUILTIN and a ClientHello extension block ends with fewer than four bytes. The parser reads the extension length before checking that the type and length header is complete, and related key-share length reads also lack minimum-structure validation, allowing a malformed handshake to terminate the worker or process. This issue is fixed in 7.24.
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