## Summary `RedisArrayAggregator` recently added `maxElements` and `maxNestedArrayDepth` limits to fix public Redis resource-exhaustion a
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
2주 이내 패치 — 우선 조치 대상
CVSS 벡터 · 메트릭
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H약점 (CWE)
- CWE-770
제한 없는 자원 할당 — 한도 없이 자원을 할당해 고갈(DoS) 유발.
상세 설명
Summary
RedisArrayAggregator recently added maxElements and maxNestedArrayDepth limits to fix public Redis resource-exhaustion advisories. The limits are independent, but the allocator remains eager: every positive nested RESP array header creates new ArrayList<RedisMessage>(length) before any child element exists.
With the default constructor, an attacker can send nested array headers with length 1,000,000 until the default nesting limit of 1024 is reached. This can reserve up to 1,024,000,000 child slots from roughly 12 KB of RESP input. This is backing capacity, not logical list size: ArrayList(int) constructs an empty list with the specified initial capacity.
Technical Details
Current decodeRedisArrayHeader(...) checks the two limits independently:
1if (header.length() > maxElements) { 2 throw new CodecException("this codec doesn't support longer length than " + maxElements); 3} 4 5if (depths.size() >= maxNestedArrayDepth) { 6 releaseAndClearDepths(); 7 throw new CodecException("max nested array depth exceeded: " + maxNestedArrayDepth); 8} 9depths.push(new AggregateState((int) header.length()));AggregateState i
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.