🔍 CVE-2026-78058

0.0
CVSS Score
UNKNOWN
2026-10-21
2026-10-22 16:56
✅ 완료

🇰🇷 한글 설명

Apache bRPC 1.18.0 미만 버전의 HTTP/2 수신 경로에서 제어되지 않는 리소스 소비 취약점이 발견되었습니다. 공격자가 조작된 HTTP/2 프레임을 전송하면 서버를 충돌시키거나 메모리를 무제한으로 점유하여 서비스 거부(DoS) 상태를 유발할 수 있습니다.

💡 쉬운 설명

해커가 특수한 명령어를 담은 데이터를 보내면 서버의 메모리가 순식간에 가득 차거나 서버가 멈춰버리는 문제입니다. 이로 인해 정상적인 사용자가 서비스를 이용하지 못하게 될 수 있습니다.

🇺🇸 원문 (English)

Uncontrolled resource consumption in the HTTP/2 (h2) receive path of Apache bRPC (version < 1.18.0) on all platforms allows a remote unauthenticated attacker to crash the server or grow its memory without bound by sending crafted HTTP/2 frames. Root Cause: The h2 parser, enabled by default on every bRPC server port and used by h2/gRPC clients, trusts the peer to respect receive-side limits that bRPC advertises but never enforces: 1. SETTINGS_MAX_CONCURRENT_STREAMS defaulted to unlimited and was never checked on the server, letting a peer pin an unbounded number of pending streams per connection (~100x memory amplification). 2. SETTINGS_MAX_HEADER_LIST_SIZE defaulted to unlimited and was never enforced; 1-byte HPACK indexed references amplify a small HEADERS frame ~4000x into an unbounded decoded header list ("HPACK bomb"), and a never-completed HEADERS/CONTINUATION block accumulates memory without limit. 3. Control-frame acks (PING/SETTINGS acks, RST_STREAM, GOAWAY, WINDOW_UPDATE) unconditionally bypassed the -socket_max_unwritten_bytes write cap, so a PING flood combined with withheld TCP reads grew the connection buffer without the documented bound. 4. The HPACK dynamic table size update was validated against the protocol default (4096) instead of the advertised SETTINGS_HEADER_TABLE_SIZE, which together with the dynamic-table queue/accounting issue can desynchronize the decoder and dereference NULL (crash). Affected scenarios: Any bRPC server serving HTTP/h2/gRPC to an untrusted network, and any bRPC h2/gRPC client connecting to an untrusted backend. The h2 parser runs before any Authenticator check on the shared port. How to fix: Upgrade bRPC, or apply the patch in https://github.com/apache/brpc/pull/3474. Note: After applying the fix the following limits are enforced by default: - max_concurrent_streams: 1024 per connection (4294967295 restores unlimited). - max_header_list_size: 1 MiB decoded size per stream (4294967295 restores unlimited; -h2_client_max_header_list_size for clients). - h2 control-frame acks respect -socket_max_unwritten_bytes (-h2_ack_ignore_eovercrowded restores the old behavior). Requests exceeding these limits are rejected (RST_STREAM(REFUSED_STREAM) or a connection error).

📍 영향받는 시스템

Apache bRPC version < 1.18.0

⚔️ 공격 벡터

조작된 HTTP/2 프레임(SETTINGS, HEADERS, PING 등)을 전송하여 서버 리소스를 고갈시키는 방식

🛡️ 대응 방법

bRPC를 1.18.0 이상 버전으로 업그레이드하거나 제공된 패치(PR #3474)를 적용하십시오.

🔧 검증 코드

명령어 실행 결과로 출력되는 버전이 1.18.0 미만(예: 1.17.x)이면 취약한 상태입니다.

Shell / Script
brpc_version_check() { brpc_version_cmd 2>/dev/null | grep -E '1\.[0-1][7-8]\.'; }; brpc_version_check

💻 영향받는 소프트웨어

Apache HTTP Server