🔍 CVE-2026-74757

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

🇰🇷 한글 설명

Apache bRPC 1.18.0 미만 버전의 mcpack2pb 컴포넌트에서 제어되지 않은 리소스 할당 취약점이 발견되었습니다. 공격자가 조작된 mcpack 요청을 보내 배열 항목 수를 매우 크게 설정하면, 서버가 과도한 메모리를 할당하게 되어 프로세스가 중단될 수 있습니다.

💡 쉬운 설명

해커가 가짜 데이터를 보내 서버에게 엄청나게 큰 메모리를 미리 준비하라고 명령할 수 있는 문제입니다. 이로 인해 서버의 메모리가 순식간에 바닥나서 서비스가 멈출 수 있습니다.

🇺🇸 원문 (English)

Uncontrolled resource allocation in the mcpack2pb component in Apache bRPC (version < 1.18.0) on all platforms allows remote attackers to make the server allocate a large amount of memory via sending a crafted mcpack request with a huge array item count. Root Cause: The bRPC mcpack2pb parser trusts the item count stored in the mcpack array header without validating it against the actual payload size. The code generated by the mcpack2pb protoc plugin uses this count to preallocate memory for repeated protobuf fields via Reserve(). A malformed request declaring item_count = 0x7fffffff can force the server to preallocate about 16GB of virtual memory, which may abort the process (SIGABRT) on memory-constrained hosts. Affected Scenarios: Use a bRPC server that wires a NsheadService to UbrpcMcpack2Adaptor (the Baidu ubrpc deployment pattern) and parses requests with code generated by the mcpack2pb protoc plugin. The request body is parsed before authentication. How to Fix: (Choose one of the following options) 1. Upgrade bRPC to version 1.18.0, which fixes this issue. 2. Apply this patch: https://github.com/apache/brpc/pull/3451 Note: No matter which option you choose, you should know that the fix caps the array item count to the remaining bytes of the array payload.

📍 영향받는 시스템

Apache bRPC version < 1.18.0 (mcpack2pb를 사용하는 환경)

⚔️ 공격 벡터

조작된 mcpack 요청을 전송하여 서버의 메모리 할당을 유도하는 원격 공격

🛡️ 대응 방법

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

🔧 검증 코드

출력된 버전이 1.18.0 미만이면 취약한 상태입니다.

Shell / Script
brpc_version_check=$(pkg-config --modversion brpc 2>/dev/null || echo 'unknown'); echo $brpc_version_check

💻 영향받는 소프트웨어

Apache HTTP Server