CVE-2026-89425 jackson-core: UTF8DataInputJsonParser._reportInvalidToken() does not honor maxErrorTokenLength, allowing unbounded StringBuilder growth
설명
UTF8DataInputJsonParser._reportInvalidToken() in FasterXML jackson-core builds the offending-token text for its error message by appending Java identifier characters to a StringBuilder in a loop that has no upper bound. Unlike the three sibling parser implementations, including UTF8StreamJsonParser, it never consults ErrorReportConfiguration.getMaxErrorTokenLength() (default 256). A malformed token supplied to a parser created through JsonFactory.createParser(DataInput) is therefore accumulated in full. No StreamReadConstraints setting mitigates this: maxDocumentLength cannot be applied to DataInput sources at all, and maxStringLength does not cover this path because the accumulation bypasses ReadConstrainedTextBuffer. The reporter measured a 20,000,109-character exception message from a 20-million-character malformed token on the DataInput path, against 367 characters for identical input on the InputStream path. Scaling the payload drives the StringBuilder, which also incurs byte-to-char expansion and internal array doubling, to many times the raw payload size and can trigger OutOfMemoryError for the whole JVM. UTF8DataInputJsonParser was introduced in 2.8.0 together with createParser(DataInput); releases before 2.8.0 do not contain the affected class.
영향 받는 제품 제품 1개
-
FasterXML
jackson-core
영향 받는 버전
- 2.8.0 이상 2.18.10 이하
- 2.19.0 이상 2.21.6 이하
- 2.22.0 이상 2.22.2 이하
- 3.0.0 이상 3.1.6 이하
- 3.2.0 이상 3.2.2 이하
해결 버전
해결된 버전 정보가 없습니다.
패키지 기준 해결 버전 패키지 2개
-
해결 버전 있음
Maven · com.fasterxml.jackson.core:jackson-core
영향 받는 버전 · 해결 버전
- 영향 2.19.0 이상 2.21.7 미만 · 해결 2.21.7 이상
- 영향 2.22.0 이상 2.22.3 미만 · 해결 2.22.3 이상
- 영향 2.8.0 이상 2.18.11 미만 · 해결 2.18.11 이상
-
해결 버전 있음
Maven · tools.jackson.core:jackson-core
영향 받는 버전 · 해결 버전
- 영향 3.0.0 이상 3.1.7 미만 · 해결 3.1.7 이상
- 영향 3.2.0 이상 3.2.3 미만 · 해결 3.2.3 이상
출처: GitHub Advisory Database · CC-BY 4.0