🔍 CVE-2026-86147

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

🇰🇷 한글 설명

Apache bRPC 1.18.0 미만 버전에서 내장 서비스 포트에 접근 가능한 원격 공격자가 파일 경로를 임의로 조작하거나 리소스를 과도하게 점유할 수 있는 취약점이 발견되었습니다. 공격자는 이를 통해 서버 권한으로 파일을 생성, 수정 또는 삭제하거나 CPU 프로파일러를 장시간 점유하여 서비스 거부(DoS)를 유발할 수 있습니다.

💡 쉬운 설명

해커가 서버의 설정값을 몰래 바꿔서 중요한 파일을 지우거나, 서버의 계산 능력을 독점하여 서비스를 멈추게 만들 수 있는 문제입니다. 서버가 제공하는 관리용 기능이 보안 검사 없이 외부로 노출되어 발생합니다.

🇺🇸 원문 (English)

External control of file name or path and uncontrolled resource consumption in Apache bRPC (version < 1.18.0) on all platforms allows remote attackers who can reach the builtin service port to create directories and truncate/overwrite files with the privileges of the server process, or to hold the process-wide CPU/contention profiler for an arbitrarily long time. Root Cause: 1. The builtin /flags service allows gflags carrying a validator to be modified at runtime via ?setvalue=. The bvar/mbvar dump path gflags (bvar_dump_file, bvar_dump_tabs, mbvar_dump_file) were registered with an accept-anything validator whose only purpose was to wake the dumping thread. A remote attacker could therefore repoint the dump path (e.g. GET /flags/bvar_dump_file?setvalue=/victim/dir/target followed by GET /flags/bvar_dump?setvalue=true, or the equivalent for mbvar_dump_file, which is used verbatim without a forced suffix), making the dumping thread recursively create directories and open/truncate files at attacker-chosen locations. Tab names in bvar_dump_tabs were appended to the path without sanitization, allowing '..' to escape the configured directory. 2. The /pprof builtin service did not clamp the ?seconds= parameter to FLAGS_max_profiling_seconds (a limit that /hotspots enforced). A single request such as ?seconds=2147483647 made the handler sleep for decades while holding the process-wide gperftools CPU profiler or bthread contention profiler, so /hotspots/cpu and /hotspots/contention returned 503 for everyone else during that time. Affected Scenarios: Any Apache bRPC server exposing the builtin services (enabled by default on the same port as normal RPC traffic) to untrusted networks. 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/3523 Note: After the fix, bvar_dump_file, bvar_dump_tabs and mbvar_dump_file can no longer be modified at runtime through the /flags builtin service. They can still be changed programmatically via google::SetCommandLineOption(), taking effect on the next dump cycle. The profiling duration of /pprof is now capped by the -max_profiling_seconds gflag (default 300 seconds), which can be adjusted by the server owner.

📍 영향받는 시스템

Apache bRPC version < 1.18.0

⚔️ 공격 벡터

내장된 /flags 및 /pprof 서비스 포트에 대한 원격 접근을 통한 파라미터 조작

🛡️ 대응 방법

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

🔧 검증 코드

출력된 bRPC 버전이 1.18.0 미만인 경우 취약한 상태입니다.

Shell / Script
brpc_version_check=$(brpc_version_command_here 2>/dev/null); echo $brpc_version_check

💻 영향받는 소프트웨어

Apache HTTP Server