jackson-dataformat-protobufに8バイトの入力でメモリ不足を起こす脆弱性
概要
jackson-dataformat-protobufの3.1.6から3.1.7までと、3.2.2から3.2.3までに、整数オーバーフローによる脆弱性があります。8バイトの不正なメッセージで OutOfMemoryError が発生し、JVMが停止するおそれがあります。影響を受けるバージョンは3.1.8と3.2.4で修正されているため、これらへの更新をおすすめします。
AI要約
外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。
jackson-dataformat-protobufの3.1.6から3.1.7までと、3.2.2から3.2.3までに、整数オーバーフローによる脆弱性があります。8バイトの不正なメッセージで OutOfMemoryError が発生し、JVMが停止するおそれがあります。影響を受けるバージョンは3.1.8と3.2.4で修正されているため、これらへの更新をおすすめします。
影響パッケージ
| 種類 | パッケージ | 影響を受ける版 | 直った版 |
|---|---|---|---|
| FasterXML | jackson-dataformat-protobuf |
3.1.6 以上 3.1.8 未満 3.2.2 以上 3.2.4 未満 |
3.1.8 3.2.4 |
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。
ProtobufParser._readStringKey() reads the length prefix of a protobuf map entry's string key into an attacker-controlled int and then checks (_inputPtr + len) <= _inputEnd using signed arithmetic. For values near Integer.MAX_VALUE the addition overflows to a negative value and the check passes even when the input contains no key data. The parser then calls _finishShortText(len), which expands the text buffer to the declared length via TextBuffer.expandCurrentSegment and Arrays.copyOf, throwing OutOfMemoryError: Requested array size exceeds VM limit.
An 8-byte malformed message containing a map entry with a declared key length of 0x7FFFFFFF is sufficient. Configured StreamReadConstraints, including maxStringLength, maxNameLength, maxDocumentLength and maxNestingDepth, do not prevent the failure. Applications running with -XX:+ExitOnOutOfMemoryError terminate the JVM.
This is the same integer-overflow pattern addressed for other call sites in the remediation associated with CVE-2026-104016 and CVE-2026-104017; the map-key call site was corrected on the 3.x branches only, leaving the corresponding 2.x branches unguarded. Release lines 2.18, 2.19 and 2.20 do not contain _readStringKey() and are not affected by this vector. No privileges or user interaction beyond the ability to submit data for parsing are required. The 3.0 release line and 3.1.0-3.1.5 / 3.2.0-3.2.1 do not contain _readStringKey() and are therefore not affected; the method first appears in 3.1.6 and 3.2.2, mirro…
出典: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
参照URL
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web repo.maven.apache.org