🇰🇷 한글 설명
Perl의 Protocol::HTTP2 1.14 미만 버전에서 닫힌 스트림이 연결 스트림 테이블에서 제거되지 않아 메모리 고갈이 발생하는 취약점입니다. 공격자가 스트림을 지속적으로 열고 닫으면 서버의 메모리가 누적되어 서비스 거부(DoS) 상태에 빠질 수 있습니다.
💡 쉬운 설명
서버가 통신이 끝난 데이터 통로를 제대로 치우지 않고 계속 쌓아두는 문제입니다. 공격자가 가짜 통로를 계속 만들었다가 닫기를 반복하면 서버의 메모리가 가득 차서 멈출 수 있습니다.
🇺🇸 원문 (English)
Protocol::HTTP2 versions before 1.14 for Perl allow memory exhaustion via closed streams that stream_state never removes from the connection stream table.
When a stream reaches the CLOSED state, stream_state returns the concurrency slot and clears most of the stream's keys, but the entry itself stays in the connection stream table and nothing in the distribution removes it. Stream identifiers increase monotonically, so a peer can open and close streams on one connection indefinitely, each close leaving a residual entry that is retained for the life of the connection.
SETTINGS_MAX_CONCURRENT_STREAMS does not bound this. That setting caps how many streams are live at once and is enforced, while the growth is made of streams the cap has already released, so it accumulates with concurrency never exceeding one. The client keeps the same table and grows the same way against a hostile server.
Measured against a server built on this module, roughly 920 bytes are retained per closed stream for about 19 bytes on the wire, so 100,000 sequential streams on one connection grow server resident memory by about 88 MiB. The streams are ordinary requests that the application accepts and completes.
📍 영향받는 시스템
Perl Protocol::HTTP2 versions before 1.14
⚔️ 공격 벡터
단일 HTTP/2 연결을 통해 스트림을 지속적으로 생성하고 종료하여 서버 메모리 누수 유도
🛡️ 대응 방법
Protocol::HTTP2 모듈을 1.14 버전 이상으로 업데이트
🔧 검증 코드
출력된 버전 번호가 1.14보다 낮으면 취약한 상태입니다.
perl -MProtocol::HTTP2 -e 'print $Protocol::HTTP2::VERSION . "\n"' 2>/dev/null
📊 CVSS Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
💻 영향받는 소프트웨어
IBM WebSphere Application Server