本文へ移動
English version →
高 7.5

jackson-dataformat-protobufに細工したデータで大量のメモリを確保させられる脆弱性

CVE-2026-104016 SecPulse初出

概要

jackson-dataformat-protobufでは、文字列の長さの計算で整数オーバーフローが起き、細工したデータを解析させるとOutOfMemoryErrorが発生して処理が止まるおそれがあります。影響を受けるのは3.0.0以上3.1.8未満と3.2.0以上3.2.4未満で、3.1.8または3.2.4への更新が修正版です。JVMのヒープ設定の調整では回避できず、StreamReadConstraintsの制限でも防げないとされています。外部から解析用のデータを受け付けている場合は、早めの更新をおすすめします。

AI要約

外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

jackson-dataformat-protobufでは、文字列の長さの計算で整数オーバーフローが起き、細工したデータを解析させるとOutOfMemoryErrorが発生して処理が止まるおそれがあります。影響を受けるのは3.0.0以上3.1.8未満と3.2.0以上3.2.4未満で、3.1.8または3.2.4への更新が修正版です。JVMのヒープ設定の調整では回避できず、StreamReadConstraintsの制限でも防げないとされています。外部から解析用のデータを受け付けている場合は、早めの更新をおすすめします。

影響パッケージ

種類パッケージ影響を受ける版直った版
FasterXML jackson-dataformat-protobuf
3.0.0 以上 3.1.8 未満
3.2.0 以上 3.2.4 未満
3.1.8
3.2.4
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

ProtobufParser parses length-prefixed protobuf string and bytes fields by checking (_inputPtr + len) <= _inputEnd and then, on the fast path, calling _finishShortText(len). Both use 32-bit signed integer arithmetic. When an attacker supplies a varint decoding to a length near Integer.MAX_VALUE, _inputPtr + len overflows to a negative value, the bounds check passes, and _finishShortText(len) reaches TextBuffer.expandCurrentSegment(len), which performs Arrays.copyOf with no cap and throws OutOfMemoryError: Requested array size exceeds VM limit.

The JVM refuses arrays larger than Integer.MAX_VALUE - 8 before consulting available heap, so -Xmx tuning does not mitigate the issue. StreamReadConstraints.maxStringLength and maxDocumentLength do not gate this path: a 33-byte payload is far below any document-length cap and the string-length check does not fire before the allocation. This was confirmed empirically against shipping artifacts with maxStringLength, maxDocumentLength and maxNestingDepth all configured.

A February 2026 hardening commit added the equivalent overflow guard to the packed-array-length and message-length paths but left the string-length call sites unguarded. No privileges or user interaction beyond the ability to submit data for parsing are required.

出典: CVE.org (CVE Program・cvelistV5) NVD

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく