🔍 CVE-2026-68494

0.0
CVSS Score
UNKNOWN
2026-08-04
2026-10-23 23:10
✅ 완료

🇰🇷 한글 설명

jackson-core의 비차단(non-blocking) 파서에서 숫자 길이 제한을 우회할 수 있는 취약점이 발견되었습니다. 공격자가 데이터를 작은 조각으로 나누어 스트리밍하면 숫자 길이 제한 검사가 실행되지 않아 메모리가 과도하게 할당될 수 있습니다. 이로 인해 JVM 힙 메모리가 고갈되어 서비스 거부(DoS) 상태에 빠질 수 있습니다.

💡 쉬운 설명

데이터를 아주 잘게 쪼개서 보내면 프로그램이 숫자의 길이를 제대로 체크하지 못하게 만드는 버그입니다. 이 방법을 사용하면 컴퓨터의 메모리를 순식간에 가득 채워 서비스를 멈추게 할 수 있습니다.

🇺🇸 원문 (English)

The fix released in jackson-core 2.18.6 and 2.21.1 for CVE-2026-18401 (GHSA-72hv-8253-57qq, number length constraint bypass in the non-blocking parser) is incomplete. This record covers the remaining bypass. The earlier fix wired validateIntegerLength() into a new _setIntLength() helper and invoked it wherever the integer portion of a number is decided: a terminator byte arrives, a '.' or 'e'/'E' is seen, or input ends inside a fully buffered value. It was not invoked on the attacker-relevant path where the parser runs out of input while still inside the MINOR_NUMBER_INTEGER_DIGITS minor state and returns NOT_AVAILABLE to the caller. As a result, an attacker who streams JSON to a non-blocking parser in many small chunks, without ever sending a terminator byte, keeps the parser inside MINOR_NUMBER_INTEGER_DIGITS indefinitely. _textBuffer.expandCurrentSegment() grows the accumulator on every chunk while validateIntegerLength() is never called. The accumulator is bounded only by maxStringLength (20 MiB by default) rather than by maxNumberLength (1000 by default), an amplification of roughly 20,000x over the documented limit. Because Java char values occupy two bytes, a single connection can be driven to approximately 40 MiB of heap before the validator finally fires when the value completes. The equivalent fraction-path code is correct: _finishFloatFraction() calls _setFractLength() before its NOT_AVAILABLE return. The missing call affects the integer-digit paths in _startPositiveNumber(), _startNegativeNumber() and _finishNumberIntegralPart() in NonBlockingUtf8JsonParserBase. Impact: reactive frameworks such as Spring WebFlux/Reactor, Quarkus, Helidon and Vert.x feed inbound HTTP or gRPC bytes to the async parser as they arrive, which is precisely the chunked-feed shape required. Operators who set StreamReadConstraints.maxNumberLength expecting it to cap memory per number value do not get that guarantee; memory accumulates per concurrent connection and attacker-controlled concurrency can exhaust the JVM heap. The synchronous parsers (UTF8StreamJsonParser, ReaderBasedJsonParser) and the async parser operating on complete input are not affected. Exploitation requires only the ability to stream data to a parsing endpoint; no privileges or user interaction are needed. This issue affects com.fasterxml.jackson.core:jackson-core from version 2.15.0 through 2.18.7, and from 2.19.0 through 2.21.3, and tools.jackson.core:jackson-core from 3.0.0 through 3.1.3. Versions prior to 2.15.0 are not affected, because StreamReadConstraints -- which defines the maxNumberLength setting -- was first introduced in jackson-core 2.15.0, so no such constraint exists to be bypassed in earlier releases. Note that GHSA-r7wm-3cxj-wff9 states the affected 2.x range without a lower bound. The 2.22.x and 3.2.x release lines are not affected: those branches were created after the fix commit landed on 2026-05-21 and therefore contain it from their initial releases (2.22.0, tagged 2026-06-03, and 3.2.0, tagged 2026-06-08).

📍 영향받는 시스템

jackson-core 2.15.0-2.18.7, 2.19.0-2.21.3, tools.jackson.core 3.0.0-3.1.3

⚔️ 공격 벡터

비차단 파서를 사용하는 환경에서 종료 문자 없이 작은 크기의 JSON 데이터 조각을 지속적으로 스트리밍함

🛡️ 대응 방법

jackson-core를 최신 보안 패치 버전(2.22.x 또는 3.2.x 이상)으로 업데이트하십시오.

🔧 검증 코드

출력된 jackson-core의 버전이 취약 범위(2.15.0~2.18.7, 2.19.0~2.21.3, 3.0.0~3.1.3)에 포함되는지 확인합니다.

Shell / Script
mvn dependency:list | grep jackson-core

💻 영향받는 소프트웨어

Spring Framework