jackson-dataformat-avroで細工されたデータにより大量のメモリを確保され、サービス停止のおそれがある脆弱性
Summary
jackson-dataformat-avroには、Avroのバイト列の長さの指定を検証せずにメモリを確保する脆弱性があります。約5バイトの細工されたデータで最大約2GBのメモリ確保が起き、OutOfMemoryErrorによるサービス停止につながるおそれがあります。影響するのは3.0.0〜3.1.7と3.2.0〜3.2.3で、修正版は3.1.8と3.2.4です。修正版への更新を進めてください。
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.
jackson-dataformat-avroには、Avroのバイト列の長さの指定を検証せずにメモリを確保する脆弱性があります。約5バイトの細工されたデータで最大約2GBのメモリ確保が起き、OutOfMemoryErrorによるサービス停止につながるおそれがあります。影響するのは3.0.0〜3.1.7と3.2.0〜3.2.3で、修正版は3.1.8と3.2.4です。修正版への更新を進めてください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| FasterXMLjackson-dataformat-avro |
3.0.0 – 3.1.7→ Not listed 3.2.0 – 3.2.3→ Not listed |
Not listed Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
In jackson-dataformat-avro, decodeBytes() in both the default native decoder (JacksonAvroParserImpl) and the Apache-decoder variant (ApacheAvroParserImpl) allocates a byte[] directly from the attacker-controlled length prefix of an Avro bytes value, without checking it against the remaining input or any limit. A payload of about 5 bytes can force an allocation of up to about 2 GB before any data is read, causing an OutOfMemoryError and denial of service. Decimal fields decoded through decodeBytesDecimal are affected the same way. This affects com.fasterxml.jackson.dataformat:jackson-dataformat-avro 2.9.0 through 2.18.11, 2.19.0 through 2.21.7 and 2.22.0 through 2.22.3, and tools.jackson.dataformat:jackson-dataformat-avro 3.0.0 through 3.1.7 and 3.2.0 through 3.2.3. It is fixed in 2.18.12, 2.21.8, 2.22.4, 3.1.8 and 3.2.4.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web herodevs.com