Skip to content
High 7.5

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

CVE-2026-104016 First seen on SecPulse

Summary

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 summary

Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.

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

Affected packages

EcosystemPackageAffectedFixed
FasterXML jackson-dataformat-protobuf
≥ 3.0.0, < 3.1.8
≥ 3.2.0, < 3.2.4
3.1.8
3.2.4
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details