zserio-runtimeの脆弱性で、細工したデータを読むとプロセスがクラッシュするおそれ
Summary
zserio-runtimeの2.18.1より前のバージョンに、Array.read()の境界チェックが可変長の要素型で省略される脆弱性があります。5バイトの細工したデータで約16GBのヒープ割り当てが試みられ、信頼できないzserioデータを解析するプロセスがクラッシュするおそれがあります。認証は不要です。修正版の2.18.2への更新が必要です。
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.
zserio-runtimeの2.18.1より前のバージョンに、Array.read()の境界チェックが可変長の要素型で省略される脆弱性があります。5バイトの細工したデータで約16GBのヒープ割り当てが試みられ、信頼できないzserioデータを解析するプロセスがクラッシュするおそれがあります。認証は不要です。修正版の2.18.2への更新が必要です。
Original description The description as published by the source.
Zserio is a framework for serializing structured data with a compact and efficient way with low overhead. The fix for GHSA-cwq5-8pvq-j65j shipped in zserio-runtime 2.18.1 is incomplete. Prior to version 2.18.2, the new bounds check in Array.read() is gated on arrayTraits.isBitSizeOfConstant(), which returns false for variable-size element types including strings and complex structs. For those types the check is never reached, rawArray.reset(readSize) executes unconditionally with an attacker-controlled value, and a 5-byte payload declaring Integer.MAX_VALUE elements causes an attempted ~16 GB heap allocation that crashes any process parsing untrusted zserio data — with no authentication required. This issue has been patched in version 2.18.2.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- web github.com